comparison channel.h @ 13:db2c8e6fb284

Fixed stupid agentfwd error (using the listening FD, not the accepted on. gah)
author Matt Johnston <matt@ucc.asn.au>
date Thu, 03 Jun 2004 18:08:34 +0000
parents 7f77962de998
children b0316ce64e4b
comparison
equal deleted inserted replaced
12:7a37cff27258 13:db2c8e6fb284
47 #define CHAN_EXTEND_SIZE 3 /* how many extra slots to add when we need more */ 47 #define CHAN_EXTEND_SIZE 3 /* how many extra slots to add when we need more */
48 48
49 #define RECV_MAXWINDOW 6000 /* tweak */ 49 #define RECV_MAXWINDOW 6000 /* tweak */
50 #define RECV_MAXPACKET 1400 /* tweak */ 50 #define RECV_MAXPACKET 1400 /* tweak */
51 #define RECV_MINWINDOW 19000 /* when we get below this, we send a windowadjust */ 51 #define RECV_MINWINDOW 19000 /* when we get below this, we send a windowadjust */
52
53 /* a simpler way to define that we need code for listeners */
54 #if !defined(DISABLE_X11FWD) || !defined(DISABLE_AUTHFWD) || \
55 !defined(DISABLE_REMOTETCPFWD)
56 #define USE_LISTENERS
57 #endif
58 52
59 struct ChanType; 53 struct ChanType;
60 54
61 struct Channel { 55 struct Channel {
62 56
111 void recv_msg_channel_data(); 105 void recv_msg_channel_data();
112 void recv_msg_channel_window_adjust(); 106 void recv_msg_channel_window_adjust();
113 void recv_msg_channel_close(); 107 void recv_msg_channel_close();
114 void recv_msg_channel_eof(); 108 void recv_msg_channel_eof();
115 109
116 #ifdef USE_LISTENERS 110 #ifdef USING_LISTENERS
117 int send_msg_channel_open_init(int fd, const struct ChanType *type); 111 int send_msg_channel_open_init(int fd, const struct ChanType *type);
118 void recv_msg_channel_open_confirmation(); 112 void recv_msg_channel_open_confirmation();
119 void recv_msg_channel_open_failure(); 113 void recv_msg_channel_open_failure();
120 #endif 114 #endif
121 115