libssh2.h: on Windows, a socket is of type SOCKET, not int
Этот коммит содержится в:
родитель
fc94046e6e
Коммит
23dec383f7
@ -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? */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user