version 1.5, 1999/11/24 00:26:01 |
version 1.6, 1999/11/24 19:53:45 |
|
|
#define CHANNELS_H |
#define CHANNELS_H |
|
|
/* Definitions for channel types. */ |
/* Definitions for channel types. */ |
#define SSH_CHANNEL_FREE 0 /* This channel is free |
#define SSH_CHANNEL_FREE 0 /* This channel is free (unused). */ |
* (unused). */ |
#define SSH_CHANNEL_X11_LISTENER 1 /* Listening for inet X11 conn. */ |
#define SSH_CHANNEL_X11_LISTENER 1 /* Listening for inet X11 |
|
* conn. */ |
|
#define SSH_CHANNEL_PORT_LISTENER 2 /* Listening on a port. */ |
#define SSH_CHANNEL_PORT_LISTENER 2 /* Listening on a port. */ |
#define SSH_CHANNEL_OPENING 3 /* waiting for confirmation */ |
#define SSH_CHANNEL_OPENING 3 /* waiting for confirmation */ |
#define SSH_CHANNEL_OPEN 4 /* normal open two-way channel */ |
#define SSH_CHANNEL_OPEN 4 /* normal open two-way channel */ |
#define SSH_CHANNEL_CLOSED 5 /* waiting for close |
#define SSH_CHANNEL_CLOSED 5 /* waiting for close confirmation */ |
* confirmation */ |
/* SSH_CHANNEL_AUTH_FD 6 authentication fd */ |
/* SSH_CHANNEL_AUTH_FD 6 authentication fd */ |
|
#define SSH_CHANNEL_AUTH_SOCKET 7 /* authentication socket */ |
#define SSH_CHANNEL_AUTH_SOCKET 7 /* authentication socket */ |
/* SSH_CHANNEL_AUTH_SOCKET_FD 8 connection to auth socket */ |
/* SSH_CHANNEL_AUTH_SOCKET_FD 8 connection to auth socket */ |
#define SSH_CHANNEL_X11_OPEN 9 /* reading first X11 packet */ |
#define SSH_CHANNEL_X11_OPEN 9 /* reading first X11 packet */ |
#define SSH_CHANNEL_INPUT_DRAINING 10 /* sending remaining data to |
#define SSH_CHANNEL_INPUT_DRAINING 10 /* sending remaining data to conn */ |
* conn */ |
#define SSH_CHANNEL_OUTPUT_DRAINING 11 /* sending remaining data to app */ |
#define SSH_CHANNEL_OUTPUT_DRAINING 11 /* sending remaining data to |
|
* app */ |
|
|
|
/* Data structure for channel data. This is iniailized in channel_allocate |
/* |
and cleared in channel_free. */ |
* Data structure for channel data. This is iniailized in channel_allocate |
|
* and cleared in channel_free. |
|
*/ |
|
|
typedef struct Channel { |
typedef struct Channel { |
int type; /* channel type/state */ |
int type; /* channel type/state */ |