[gnutls-devel] Waiting for input data

Jaak Ristioja jaak.ristioja at cyber.ee
Fri Feb 8 15:08:48 CET 2013

On 08.02.2013 15:54, Tim Ruehsen wrote:
> Maybe this code snippet/example from libmget (License LGPL3+) may help you:
> It assumes a non-blocking socket descriptor set by 
> 	gnutls_transport_set_ptr(session, (void *)(ssize_t)sockfd);

Well I have used (void *)(intptr_t) sockfd, but it doesn't solve the
real issue here, it just silences the compiler. When converted back
using (int)(intptr_t), it might not compare equal to the original.

Best regards,

More information about the Gnutls-devel mailing list