[BACK]Return to channels.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Annotation of src/usr.bin/ssh/channels.h, Revision 1.1

1.1     ! markus      1: #ifndef CHANNELS_H
        !             2: #define CHANNELS_H
        !             3:
        !             4: /* Definitions for channel types. */
        !             5: #define SSH_CHANNEL_FREE               0 /* This channel is free (unused). */
        !             6: #define SSH_CHANNEL_X11_LISTENER       1 /* Listening for inet X11 conn. */
        !             7: #define SSH_CHANNEL_PORT_LISTENER      2 /* Listening on a port. */
        !             8: #define SSH_CHANNEL_OPENING            3 /* waiting for confirmation */
        !             9: #define SSH_CHANNEL_OPEN               4 /* normal open two-way channel */
        !            10: #define SSH_CHANNEL_CLOSED             5 /* waiting for close confirmation */
        !            11: /*     SSH_CHANNEL_AUTH_FD             6    authentication fd */
        !            12: #define SSH_CHANNEL_AUTH_SOCKET                7 /* authentication socket */
        !            13: /*     SSH_CHANNEL_AUTH_SOCKET_FD      8    connection to auth socket */
        !            14: #define SSH_CHANNEL_X11_OPEN           9 /* reading first X11 packet */
        !            15: #define SSH_CHANNEL_INPUT_DRAINING     10 /* sending remaining data to conn */
        !            16: #define SSH_CHANNEL_OUTPUT_DRAINING    11 /* sending remaining data to app */
        !            17:
        !            18:
        !            19: /* Data structure for channel data.  This is iniailized in channel_allocate
        !            20:    and cleared in channel_free. */
        !            21:
        !            22: typedef struct
        !            23: {
        !            24:   int type;            /* channel type/state */
        !            25:   int self;            /* my own channel identifier */
        !            26:   int remote_id;       /* channel identifier for remote peer */
        !            27:                        /* peer can be reached over encrypted connection, via packet-sent */
        !            28:   int flags;           /* flags for close in proto 1.5 */
        !            29:   int sock;            /* data socket, linked to this channel */
        !            30:   Buffer input;                /* data read from socket, to be sent over encrypted connection */
        !            31:   Buffer output;       /* data received over encrypted connection for send on socket */
        !            32:   char path[200];      /* path for unix domain sockets, or host name for forwards */
        !            33:   int listening_port;  /* port being listened for forwards */
        !            34:   int host_port;       /* remote port to connect for forwards */
        !            35:   char *remote_name;   /* remote hostname */
        !            36: } Channel;
        !            37:
        !            38: #endif