[Help-gnutls] gnutls_record_check_pending

Nikos Mavrogiannopoulos nmav at gnutls.org
Tue Jan 24 18:20:41 CET 2006


On Monday 23 January 2006 23:11, Rich Fought wrote:
> Hello,

> 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





More information about the Gnutls-help mailing list