[Help-gnutls] gnutls_record_check_pending

Rich Fought whatever at fsrz.net
Tue Jan 24 22:05:03 CET 2006


Nikos Mavrogiannopoulos wrote:
>
>> Is it possible to use gnutls_record_check_pending to determine if
>> gnutls_record_recv should be called?
>> I am trying it currently and always get zero ... even when I know
>> that data is being sent from the remote client.
>>     
>
> The purpose of gnutls_record_check_pending is to check if there
> are data in the gnutls buffers. It will not check the TCP buffers.
> You can check TCP buffers using select() and then call 
> gnutls_record_recv() in a non-blocking way.
>
> regards,
> Nikos
>
>   
So the data does not get moved from the TCP buffers to the gnutls 
buffers until
gnutls_record_recv() is called?

Rich







More information about the Gnutls-help mailing list