[gnutls-help] Problems with async read on a tls session
nicolas at babelouest.org
Sun Oct 7 14:18:10 CEST 2018
I'm implementing a websocket client library over https, so I need to run
asynchronous read on the gnutls session to be able to send messages
while I'm receiving them.
I'm having trouble detecting if the socket has incoming activity,
gnutls_record_check_pending, it always return 0.
I'm based on the "Client example with X.509 certificate support" to make
my http connection, so the tcp socket is basically initiated like that
tcp_sock = socket(AF_INET, SOCK_STREAM, 0);
connect(tcp_sock, (struct sockaddr *)&server , sizeof(server));
What do I miss to have a working async connection?
Thanks in advance
More information about the Gnutls-help