Asynchronous operation.

Carlo Wood <[email protected]>
Newsgroups gmane.network.gnutls.general
Message-ID <20190804181738.757d14a1@hikaru>
Is it possible to use gnutls with a library that does all the socket
I/O?

Assuming TCP, data being sent and received is merely a stream.
Shouldn't it be possible to make gnutls oblivious of network
layers and sockets and merely put it in between a stream of data?

Aka,

[Application] <---> [gnutls] <---> [async I/O library]

Where the application takes care of setting up the TCP connection
and uses call backs from gnutls to write data an output
buffer that the I/O library writes to a socket, while data
from the socket is written to a buffer and from there passed
on to gnutls.

On the other side would then just be plain data going
back and forth.

If this is possible, is there client example code that uses
this method?

-- 
Carlo Wood <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.