channels.h (204917) | channels.h (215116) |
---|---|
1/* $OpenBSD: channels.h,v 1.103 2010/01/26 01:28:35 djm Exp $ */ | 1/* $OpenBSD: channels.h,v 1.104 2010/05/14 23:29:23 djm Exp $ */ |
2 3/* 4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6 * All rights reserved 7 * 8 * As far as I am concerned, the code I have written for this software 9 * can be used freely for any purpose. Any derived versions of this --- 45 unchanged lines hidden (view full) --- 55#define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */ 56#define SSH_CHANNEL_MUX_LISTENER 15 /* Listener for mux conn. */ 57#define SSH_CHANNEL_MUX_CLIENT 16 /* Conn. to mux slave */ 58#define SSH_CHANNEL_MAX_TYPE 17 59 60struct Channel; 61typedef struct Channel Channel; 62 | 2 3/* 4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6 * All rights reserved 7 * 8 * As far as I am concerned, the code I have written for this software 9 * can be used freely for any purpose. Any derived versions of this --- 45 unchanged lines hidden (view full) --- 55#define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */ 56#define SSH_CHANNEL_MUX_LISTENER 15 /* Listener for mux conn. */ 57#define SSH_CHANNEL_MUX_CLIENT 16 /* Conn. to mux slave */ 58#define SSH_CHANNEL_MAX_TYPE 17 59 60struct Channel; 61typedef struct Channel Channel; 62 |
63typedef void channel_open_fn(int, int, void *); |
|
63typedef void channel_callback_fn(int, void *); 64typedef int channel_infilter_fn(struct Channel *, char *, int); 65typedef void channel_filter_cleanup_fn(int, void *); 66typedef u_char *channel_outfilter_fn(struct Channel *, u_char **, u_int *); 67 68/* Channel success/failure callbacks */ 69typedef void channel_confirm_cb(int, struct Channel *, void *); 70typedef void channel_confirm_abandon_cb(struct Channel *, void *); --- 54 unchanged lines hidden (view full) --- 125 u_int local_consumed; 126 u_int local_maxpacket; 127 int extended_usage; 128 int single_connection; 129 130 char *ctype; /* type */ 131 132 /* callback */ | 64typedef void channel_callback_fn(int, void *); 65typedef int channel_infilter_fn(struct Channel *, char *, int); 66typedef void channel_filter_cleanup_fn(int, void *); 67typedef u_char *channel_outfilter_fn(struct Channel *, u_char **, u_int *); 68 69/* Channel success/failure callbacks */ 70typedef void channel_confirm_cb(int, struct Channel *, void *); 71typedef void channel_confirm_abandon_cb(struct Channel *, void *); --- 54 unchanged lines hidden (view full) --- 126 u_int local_consumed; 127 u_int local_maxpacket; 128 int extended_usage; 129 int single_connection; 130 131 char *ctype; /* type */ 132 133 /* callback */ |
133 channel_callback_fn *open_confirm; | 134 channel_open_fn *open_confirm; |
134 void *open_confirm_ctx; 135 channel_callback_fn *detach_user; 136 int detach_close; 137 struct channel_confirms status_confirms; 138 139 /* filter */ 140 channel_infilter_fn *input_filter; 141 channel_outfilter_fn *output_filter; --- 4 unchanged lines hidden (view full) --- 146 int datagram; 147 148 /* non-blocking connect */ 149 struct channel_connect connect_ctx; 150 151 /* multiplexing protocol hook, called for each packet received */ 152 mux_callback_fn *mux_rcb; 153 void *mux_ctx; | 135 void *open_confirm_ctx; 136 channel_callback_fn *detach_user; 137 int detach_close; 138 struct channel_confirms status_confirms; 139 140 /* filter */ 141 channel_infilter_fn *input_filter; 142 channel_outfilter_fn *output_filter; --- 4 unchanged lines hidden (view full) --- 147 int datagram; 148 149 /* non-blocking connect */ 150 struct channel_connect connect_ctx; 151 152 /* multiplexing protocol hook, called for each packet received */ 153 mux_callback_fn *mux_rcb; 154 void *mux_ctx; |
155 int mux_pause; |
|
154}; 155 156#define CHAN_EXTENDED_IGNORE 0 157#define CHAN_EXTENDED_READ 1 158#define CHAN_EXTENDED_WRITE 2 159 160/* default window/packet sizes for tcp/x11-fwd-channel */ 161#define CHAN_SES_PACKET_DEFAULT (32*1024) --- 41 unchanged lines hidden (view full) --- 203void channel_set_fds(int, int, int, int, int, int, int, u_int); 204void channel_free(Channel *); 205void channel_free_all(void); 206void channel_stop_listening(void); 207 208void channel_send_open(int); 209void channel_request_start(int, char *, int); 210void channel_register_cleanup(int, channel_callback_fn *, int); | 156}; 157 158#define CHAN_EXTENDED_IGNORE 0 159#define CHAN_EXTENDED_READ 1 160#define CHAN_EXTENDED_WRITE 2 161 162/* default window/packet sizes for tcp/x11-fwd-channel */ 163#define CHAN_SES_PACKET_DEFAULT (32*1024) --- 41 unchanged lines hidden (view full) --- 205void channel_set_fds(int, int, int, int, int, int, int, u_int); 206void channel_free(Channel *); 207void channel_free_all(void); 208void channel_stop_listening(void); 209 210void channel_send_open(int); 211void channel_request_start(int, char *, int); 212void channel_register_cleanup(int, channel_callback_fn *, int); |
211void channel_register_open_confirm(int, channel_callback_fn *, void *); | 213void channel_register_open_confirm(int, channel_open_fn *, void *); |
212void channel_register_filter(int, channel_infilter_fn *, 213 channel_outfilter_fn *, channel_filter_cleanup_fn *, void *); 214void channel_register_status_confirm(int, channel_confirm_cb *, 215 channel_confirm_abandon_cb *, void *); 216void channel_cancel_cleanup(int); 217int channel_close_fd(int *); 218void channel_send_window_changes(void); 219 --- 76 unchanged lines hidden --- | 214void channel_register_filter(int, channel_infilter_fn *, 215 channel_outfilter_fn *, channel_filter_cleanup_fn *, void *); 216void channel_register_status_confirm(int, channel_confirm_cb *, 217 channel_confirm_abandon_cb *, void *); 218void channel_cancel_cleanup(int); 219int channel_close_fd(int *); 220void channel_send_window_changes(void); 221 --- 76 unchanged lines hidden --- |