aboutsummaryrefslogtreecommitdiff
path: root/libssh/poll.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-06misc: Rename libssh/ to src/Andreas Schneider1-692/+0
2010-09-01poll: Fixed the Windows build on Vista and newer.Andreas Schneider1-2/+2
2010-08-28Added missing /** in doxygen @}'sAris Adamantiadis1-1/+1
2010-08-25poll: Fixed the ssh_poll_(init/cleanup) functions.Andreas Schneider1-3/+5
2010-08-25poll: Fixed the usage of WSAPoll() on Windows.Andreas Schneider1-10/+28
This should fix ticket #101.
2010-07-06poll: FD_SETSIZE is only for the count value of FD_SET on Windows.Andreas Schneider1-0/+2
2010-06-24poll: Another attempt to get bsd_poll() working correctly.Andreas Schneider1-2/+6
2010-06-24poll: Fixed building with poll-emulation on UNIX.Andreas Schneider1-6/+8
2010-06-22poll: Added a comment to the bsd_poll() implementation.Andreas Schneider1-0/+10
2010-06-22poll: Handle FD_SETSIZE in bsd_poll().Andreas Schneider1-1/+1
2010-06-22poll: Fixed a comparsion.Andreas Schneider1-1/+1
2010-06-21poll: Fixed a typo.Andreas Schneider1-1/+1
2010-06-20poll: Check if maxfd has been set.Andreas Schneider1-2/+3
2010-06-17poll: Fixed type of the fd variables and use SSH_INVALID_SOCKET.Andreas Schneider1-4/+4
2010-06-17poll: Fixed brackets.Andreas Schneider1-2/+2
2010-06-17poll: Fixed another wrong invalid fd check in bsd_poll.Andreas Schneider1-1/+1
2010-06-17poll: Some code cleanup for easier debugging.Andreas Schneider1-2/+4
2010-06-17poll: Fixed a malfunction with wrong max fd value check.Andreas Schneider1-2/+2
2010-06-01doc: Group the poll functions and add a description.Andreas Schneider1-0/+21
2010-05-17poll: Added a cleanup function to free the ws2_32 library.Andreas Schneider1-0/+12
2010-05-12Added runtime detection of WSAPoll().Andreas Schneider1-8/+30
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2010-05-12Fixed Windows build warnings.Andreas Schneider1-1/+8
2010-05-10Fix style in ssh_poll_ctx_dopollAris Adamantiadis1-19/+26
Also do a rescan of polled events when a poll object has been deleted.
2010-05-09ssh_socket support for 2 fd + Proxyhost commandAris Adamantiadis1-3/+11
2010-04-04Added a select(2) based poll-emulation if poll(2) is not available.Andreas Schneider1-137/+94
2009-12-13ssh_poll_handle detaches from context before freeAris Adamantiadis1-0/+4
2009-12-11Added a global poll contextAris Adamantiadis1-0/+31
2009-12-06struct socket -> struct ssh_socket_struct +typedefAris Adamantiadis1-1/+1
2009-11-30Some brain surgery to add event-based socketsAris Adamantiadis1-0/+32
chapter 1- SSH Socket Connections. I would like to be able to -Have a ssh_poll_ctx object -Add a ssh socket over it -launch the socket connection (using socket functions) -ssh_poll_ctx_dopoll() -Wait for the timeout or have the "connected" callback called
2009-11-09Always use the poll-emulation on Windows.Andreas Schneider1-1/+2
Until we we have a solution to use WSAPoll only on Vista and newer.
2009-11-06Update structures name to new conventionAris Adamantiadis1-28/+28
SSH_POLL* -> ssh_poll_handle, SSH_POLL_CTX* -> ssh_poll_ctx
2009-09-25Fixed including of config.h.Andreas Schneider1-1/+2
If there is some option to modify libc behaviour (like if there was some off_t usage to be modified by some flag to make that 64 bit) that needs to be done before the first libc header. one could still do -D there, though (unless cmake wants to do something automatically and puts that in config.h)
2009-09-23Moved lots of declaration out of priv.hAris Adamantiadis1-0/+1
2009-08-25Fix poll sturct, ISO C doesn't allow unnamed unions.Andreas Schneider1-13/+13
2009-08-25Fix typedef collisons on Solaris.Andreas Schneider1-9/+9
2009-07-30Fix build with MSVC.Andreas Schneider1-0/+1
2009-07-13Fix build on windows, missing include.Andreas Schneider1-0/+2
2009-07-13Fixed copyright noticesAris Adamantiadis1-1/+2
2009-07-04fix int -> socket_t in SSH_POLLAris Adamantiadis1-1/+1
2009-07-04Move doxygen tags into C filesAris Adamantiadis1-1/+114
2009-07-03Add a generic way to handle sockets asynchronously.Aleksandar Kanchev1-0/+226
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>
2009-06-04Make use of poll() and add a poll-emulation for win32.Andreas Schneider1-0/+204
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@772 7dcaeef0-15fb-0310-b436-a5af3365683c