[gnutls-dev] Re: non-blocking sockets in GNUTLS-1.4.0

Simon Josefsson jas at extundo.com
Sat Jul 29 12:37:03 CEST 2006

satyakumar <satyam_kkd at hyd.hellosoft.com> writes:

> Hi,
> Does GNUTLS- 1.4.0 works on non-blocking sockets.
> How to set it to work on non-blocking sockets.

See the node "The transport layer" in the manual.  Specifically, I
believe setting the sockets to non-blocking mode, and making sure to
call GnuTLS functions again for `GNUTLS_E_INTERRUPTED' and
`GNUTLS_E_AGAIN' errors is sufficient.  You may want to look at
gnutls_transport_set_lowat() too.


More information about the Gnutls-devel mailing list