diff options
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/channels.h b/channels.h index 7d981479b..f8dc8249c 100644 --- a/channels.h +++ b/channels.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: channels.h,v 1.71 2003/09/23 20:41:11 markus Exp $ */ | 1 | /* $OpenBSD: channels.h,v 1.74 2004/08/11 21:43:04 avsm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -76,6 +76,7 @@ struct Channel { | |||
76 | int wfd; /* write fd */ | 76 | int wfd; /* write fd */ |
77 | int efd; /* extended fd */ | 77 | int efd; /* extended fd */ |
78 | int sock; /* sock fd */ | 78 | int sock; /* sock fd */ |
79 | int ctl_fd; /* control fd (client sharing) */ | ||
79 | int isatty; /* rfd is a tty */ | 80 | int isatty; /* rfd is a tty */ |
80 | int wfd_isatty; /* wfd is a tty */ | 81 | int wfd_isatty; /* wfd is a tty */ |
81 | int force_drain; /* force close on iEOF */ | 82 | int force_drain; /* force close on iEOF */ |
@@ -105,6 +106,7 @@ struct Channel { | |||
105 | /* callback */ | 106 | /* callback */ |
106 | channel_callback_fn *confirm; | 107 | channel_callback_fn *confirm; |
107 | channel_callback_fn *detach_user; | 108 | channel_callback_fn *detach_user; |
109 | void *confirm_ctx; | ||
108 | 110 | ||
109 | /* filter */ | 111 | /* filter */ |
110 | channel_filter_fn *input_filter; | 112 | channel_filter_fn *input_filter; |
@@ -161,10 +163,11 @@ void channel_stop_listening(void); | |||
161 | void channel_send_open(int); | 163 | void channel_send_open(int); |
162 | void channel_request_start(int, char *, int); | 164 | void channel_request_start(int, char *, int); |
163 | void channel_register_cleanup(int, channel_callback_fn *); | 165 | void channel_register_cleanup(int, channel_callback_fn *); |
164 | void channel_register_confirm(int, channel_callback_fn *); | 166 | void channel_register_confirm(int, channel_callback_fn *, void *); |
165 | void channel_register_filter(int, channel_filter_fn *); | 167 | void channel_register_filter(int, channel_filter_fn *); |
166 | void channel_cancel_cleanup(int); | 168 | void channel_cancel_cleanup(int); |
167 | int channel_close_fd(int *); | 169 | int channel_close_fd(int *); |
170 | void channel_send_window_changes(void); | ||
168 | 171 | ||
169 | /* protocol handler */ | 172 | /* protocol handler */ |
170 | 173 | ||
@@ -181,7 +184,7 @@ void channel_input_window_adjust(int, u_int32_t, void *); | |||
181 | 184 | ||
182 | /* file descriptor handling (read/write) */ | 185 | /* file descriptor handling (read/write) */ |
183 | 186 | ||
184 | void channel_prepare_select(fd_set **, fd_set **, int *, int*, int); | 187 | void channel_prepare_select(fd_set **, fd_set **, int *, u_int*, int); |
185 | void channel_after_select(fd_set *, fd_set *); | 188 | void channel_after_select(fd_set *, fd_set *); |
186 | void channel_output_poll(void); | 189 | void channel_output_poll(void); |
187 | 190 | ||
@@ -200,8 +203,10 @@ void channel_input_port_forward_request(int, int); | |||
200 | int channel_connect_to(const char *, u_short); | 203 | int channel_connect_to(const char *, u_short); |
201 | int channel_connect_by_listen_address(u_short); | 204 | int channel_connect_by_listen_address(u_short); |
202 | void channel_request_remote_forwarding(u_short, const char *, u_short); | 205 | void channel_request_remote_forwarding(u_short, const char *, u_short); |
206 | void channel_request_rforward_cancel(u_short port); | ||
203 | int channel_setup_local_fwd_listener(u_short, const char *, u_short, int); | 207 | int channel_setup_local_fwd_listener(u_short, const char *, u_short, int); |
204 | int channel_setup_remote_fwd_listener(const char *, u_short, int); | 208 | int channel_setup_remote_fwd_listener(const char *, u_short, int); |
209 | int channel_cancel_rport_listener(const char *, u_short); | ||
205 | 210 | ||
206 | /* x11 forwarding */ | 211 | /* x11 forwarding */ |
207 | 212 | ||