summaryrefslogtreecommitdiffstats
path: root/libssh/init.c
diff options
context:
space:
mode:
authorAleksandar Kanchev <aleksandar.kanchev@googlemail.com>2009-06-24 16:44:31 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-07-03 21:53:53 +0200
commit3659e8c04ac1684fa73aecc7005c2e6da9f53c3e (patch)
treee734125ea3c520c823e3d216d0120ff11fe5f36f /libssh/init.c
parentc4cf349729899b666b97728c3c66d31b2f4de4e6 (diff)
downloadlibssh-3659e8c04ac1684fa73aecc7005c2e6da9f53c3e.tar.gz
libssh-3659e8c04ac1684fa73aecc7005c2e6da9f53c3e.tar.xz
libssh-3659e8c04ac1684fa73aecc7005c2e6da9f53c3e.zip
Add a generic way to handle sockets asynchronously.
It's based on poll objects, each of which store a socket, it's events and a callback, which gets called whenever an event is set. The poll objects are attached to a poll context, which should be allocated on per thread basis. Polling the poll context will poll all the attached poll objects and call their callbacks (handlers) if any of the socket events are set. This should be done within the main loop of an application. This is intended as a ground work for making libssh asynchronous. Signed-off-by: Aleksandar Kanchev <aleksandar.kanchev@googlemail.com>
Diffstat (limited to 'libssh/init.c')
0 files changed, 0 insertions, 0 deletions