LINUX.ORG.RU

История изменений

Исправление anonymous2, (текущая версия) :

потому что нужно использовать gnutls который для сокетов и создан.

size_t
gnutls_record_check_pending (gnutls_session_t session);

This function checks if there are unread data in the gnutls buffers. If the return value is non-zero the next call to gnutls_record_recv() is guaranteed not to block.

Исходная версия anonymous2, :

потому что нужно использовать gnutls который для этого и создан.

size_t
gnutls_record_check_pending (gnutls_session_t session);

This function checks if there are unread data in the gnutls buffers. If the return value is non-zero the next call to gnutls_record_recv() is guaranteed not to block.