[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnutls] gnutls_record_check_pending
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: [Help-gnutls] gnutls_record_check_pending |
Date: |
Tue, 24 Jan 2006 18:20:41 +0100 |
User-agent: |
KMail/1.8.3 |
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