1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-02 10:53:16 +03:00

converted listeners to the linked list functions

This commit is contained in:
Daniel Stenberg
2009-08-19 14:33:13 +02:00
parent 08cad8e14c
commit a871f0b214
4 changed files with 17 additions and 26 deletions

View File

@@ -437,6 +437,8 @@ struct _LIBSSH2_CHANNEL_BRIGADE
struct _LIBSSH2_LISTENER
{
struct list_node node; /* linked list header */
LIBSSH2_SESSION *session;
char *host;
@@ -446,8 +448,6 @@ struct _LIBSSH2_LISTENER
int queue_size;
int queue_maxsize;
LIBSSH2_LISTENER *prev, *next;
/* State variables used in libssh2_channel_forward_cancel() */
libssh2_nonblocking_states chanFwdCncl_state;
unsigned char *chanFwdCncl_data;
@@ -724,7 +724,7 @@ struct _LIBSSH2_SESSION
LIBSSH2_CHANNEL_BRIGADE channels;
unsigned long next_channel;
LIBSSH2_LISTENER *listeners;
struct list_head listeners; /* list of LIBSSH2_LISTENER structs */
/* Actual I/O socket */
int socket_fd;