libssh2.h: on Windows, a socket is of type SOCKET, not int

This commit is contained in:
Bob Kast 2014-03-20 14:43:33 -04:00 committed by Marc Hoersken
parent fc94046e6e
commit 23dec383f7

View File

@ -281,7 +281,8 @@ typedef struct _LIBSSH2_POLLFD {
unsigned char type; /* LIBSSH2_POLLFD_* below */ unsigned char type; /* LIBSSH2_POLLFD_* below */
union { union {
int socket; /* File descriptors -- examined with system select() call */ libssh2_socket_t socket; /* File descriptors -- examined with
system select() call */
LIBSSH2_CHANNEL *channel; /* Examined by checking internal state */ LIBSSH2_CHANNEL *channel; /* Examined by checking internal state */
LIBSSH2_LISTENER *listener; /* Read polls only -- are inbound LIBSSH2_LISTENER *listener; /* Read polls only -- are inbound
connections waiting to be accepted? */ connections waiting to be accepted? */