path: root/spec
diff options
authorGustavo Sverzut Barbieri <>2016-11-25 17:18:34 -0200
committerGustavo Sverzut Barbieri <>2016-11-25 17:27:32 -0200
commit167ff29ea004f6d2d22e5f94a3b0b64fb19da44b (patch)
tree945137250f08304d48434262a92874ed57c0af05 /spec
parent46341b329d72736c1f1c47478f760ab8db76bbc8 (diff)
efl_net_{socket,dialer,server}_simple: easy to use, buffered network sockets.
The low level I/O primitives are powerful but adds some complexity to use, for bi-directional streaming communication one ends creating two Efl.Io.Queue and two Efl.Io.Copier to pipe data to socket when it can operate. Then encapsulate the socket using the new Efl.Io.Buffered_Stream, this will allow the socket, be a dialer or a server client, to be operated as a single handle that internally carries about the buffering for you. As one can see in the examples, compared to their "manual" alternatives they are very easy to use, ressembling Ecore_Con_Server/Ecore_Con_Client, but also offers line-based delimiters and the possibility to let the socket to handle queueing for you in case you received partial messages (just do not read/clear/discard the received data).
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions