diff options
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/channels.h b/channels.h index 5851257ca..f8bca5c9a 100644 --- a/channels.h +++ b/channels.h | |||
@@ -1,29 +1,26 @@ | |||
1 | /* RCSID("$Id: channels.h,v 1.3 1999/11/24 13:26:22 damien Exp $"); */ | 1 | /* RCSID("$Id: channels.h,v 1.4 1999/11/25 00:54:58 damien Exp $"); */ |
2 | 2 | ||
3 | #ifndef CHANNELS_H | 3 | #ifndef CHANNELS_H |
4 | #define CHANNELS_H | 4 | #define CHANNELS_H |
5 | 5 | ||
6 | /* Definitions for channel types. */ | 6 | /* Definitions for channel types. */ |
7 | #define SSH_CHANNEL_FREE 0 /* This channel is free | 7 | #define SSH_CHANNEL_FREE 0 /* This channel is free (unused). */ |
8 | * (unused). */ | 8 | #define SSH_CHANNEL_X11_LISTENER 1 /* Listening for inet X11 conn. */ |
9 | #define SSH_CHANNEL_X11_LISTENER 1 /* Listening for inet X11 | ||
10 | * conn. */ | ||
11 | #define SSH_CHANNEL_PORT_LISTENER 2 /* Listening on a port. */ | 9 | #define SSH_CHANNEL_PORT_LISTENER 2 /* Listening on a port. */ |
12 | #define SSH_CHANNEL_OPENING 3 /* waiting for confirmation */ | 10 | #define SSH_CHANNEL_OPENING 3 /* waiting for confirmation */ |
13 | #define SSH_CHANNEL_OPEN 4 /* normal open two-way channel */ | 11 | #define SSH_CHANNEL_OPEN 4 /* normal open two-way channel */ |
14 | #define SSH_CHANNEL_CLOSED 5 /* waiting for close | 12 | #define SSH_CHANNEL_CLOSED 5 /* waiting for close confirmation */ |
15 | * confirmation */ | 13 | /* SSH_CHANNEL_AUTH_FD 6 authentication fd */ |
16 | /* SSH_CHANNEL_AUTH_FD 6 authentication fd */ | ||
17 | #define SSH_CHANNEL_AUTH_SOCKET 7 /* authentication socket */ | 14 | #define SSH_CHANNEL_AUTH_SOCKET 7 /* authentication socket */ |
18 | /* SSH_CHANNEL_AUTH_SOCKET_FD 8 connection to auth socket */ | 15 | /* SSH_CHANNEL_AUTH_SOCKET_FD 8 connection to auth socket */ |
19 | #define SSH_CHANNEL_X11_OPEN 9 /* reading first X11 packet */ | 16 | #define SSH_CHANNEL_X11_OPEN 9 /* reading first X11 packet */ |
20 | #define SSH_CHANNEL_INPUT_DRAINING 10 /* sending remaining data to | 17 | #define SSH_CHANNEL_INPUT_DRAINING 10 /* sending remaining data to conn */ |
21 | * conn */ | 18 | #define SSH_CHANNEL_OUTPUT_DRAINING 11 /* sending remaining data to app */ |
22 | #define SSH_CHANNEL_OUTPUT_DRAINING 11 /* sending remaining data to | ||
23 | * app */ | ||
24 | 19 | ||
25 | /* Data structure for channel data. This is iniailized in channel_allocate | 20 | /* |
26 | and cleared in channel_free. */ | 21 | * Data structure for channel data. This is iniailized in channel_allocate |
22 | * and cleared in channel_free. | ||
23 | */ | ||
27 | 24 | ||
28 | typedef struct Channel { | 25 | typedef struct Channel { |
29 | int type; /* channel type/state */ | 26 | int type; /* channel type/state */ |