version 1.82, 2005/12/12 13:46:18 |
version 1.83, 2005/12/30 15:56:37 |
|
|
typedef struct Channel Channel; |
typedef struct Channel Channel; |
|
|
typedef void channel_callback_fn(int, void *); |
typedef void channel_callback_fn(int, void *); |
typedef int channel_filter_fn(struct Channel *, char *, int); |
typedef int channel_infilter_fn(struct Channel *, char *, int); |
|
typedef u_char *channel_outfilter_fn(struct Channel *, u_char **, u_int *); |
|
|
struct Channel { |
struct Channel { |
int type; /* channel type/state */ |
int type; /* channel type/state */ |
|
|
int detach_close; |
int detach_close; |
|
|
/* filter */ |
/* filter */ |
channel_filter_fn *input_filter; |
channel_infilter_fn *input_filter; |
|
channel_outfilter_fn *output_filter; |
|
|
int datagram; /* keep boundaries */ |
int datagram; /* keep boundaries */ |
}; |
}; |
|
|
#define CHAN_EOF_SENT 0x04 |
#define CHAN_EOF_SENT 0x04 |
#define CHAN_EOF_RCVD 0x08 |
#define CHAN_EOF_RCVD 0x08 |
|
|
|
#define CHAN_RBUF 16*1024 |
|
|
/* check whether 'efd' is still in use */ |
/* check whether 'efd' is still in use */ |
#define CHANNEL_EFD_INPUT_ACTIVE(c) \ |
#define CHANNEL_EFD_INPUT_ACTIVE(c) \ |
(compat20 && c->extended_usage == CHAN_EXTENDED_READ && \ |
(compat20 && c->extended_usage == CHAN_EXTENDED_READ && \ |
|
|
void channel_request_start(int, char *, int); |
void channel_request_start(int, char *, int); |
void channel_register_cleanup(int, channel_callback_fn *, int); |
void channel_register_cleanup(int, channel_callback_fn *, int); |
void channel_register_confirm(int, channel_callback_fn *, void *); |
void channel_register_confirm(int, channel_callback_fn *, void *); |
void channel_register_filter(int, channel_filter_fn *); |
void channel_register_filter(int, channel_infilter_fn *, channel_outfilter_fn *); |
void channel_cancel_cleanup(int); |
void channel_cancel_cleanup(int); |
int channel_close_fd(int *); |
int channel_close_fd(int *); |
void channel_send_window_changes(void); |
void channel_send_window_changes(void); |