comparison channel.h @ 367:c046b66b76cd channel-fix

propagate from branch 'au.asn.ucc.matt.dropbear' (head 31dcd7a22983ef19d6c63248e415e71d292dd0ec) to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head 7559a8cc4f6abe2338636f2aced3a395a79c172c)
author Matt Johnston <matt@ucc.asn.au>
date Thu, 12 Oct 2006 03:01:10 +0000
parents 78518751cb82
children a01c0c8e543a
comparison
equal deleted inserted replaced
366:59531221b846 367:c046b66b76cd
71 Doesn't exactly belong here, but is cleaner here */ 71 Doesn't exactly belong here, but is cleaner here */
72 circbuffer *writebuf; /* data from the wire, for local consumption */ 72 circbuffer *writebuf; /* data from the wire, for local consumption */
73 circbuffer *extrabuf; /* extended-data for the program - used like writebuf 73 circbuffer *extrabuf; /* extended-data for the program - used like writebuf
74 but for stderr */ 74 but for stderr */
75 75
76 int sentclosed, recvclosed; 76 /* whether close/eof messages have been exchanged */
77 77 int sent_close, recv_close;
78 /* this is set when we receive/send a channel eof packet */ 78 int recv_eof, sent_eof;
79 int recveof, senteof;
80 79
81 int initconn; /* used for TCP forwarding, whether the channel has been 80 int initconn; /* used for TCP forwarding, whether the channel has been
82 fully initialised */ 81 fully initialised */
83 82
84 int await_open; /* flag indicating whether we've sent an open request 83 int await_open; /* flag indicating whether we've sent an open request
92 struct ChanType { 91 struct ChanType {
93 92
94 int sepfds; /* Whether this channel has seperate pipes for in/out or not */ 93 int sepfds; /* Whether this channel has seperate pipes for in/out or not */
95 char *name; 94 char *name;
96 int (*inithandler)(struct Channel*); 95 int (*inithandler)(struct Channel*);
97 int (*checkclose)(struct Channel*); 96 int (*check_close)(struct Channel*);
98 void (*reqhandler)(struct Channel*); 97 void (*reqhandler)(struct Channel*);
99 void (*closehandler)(struct Channel*); 98 void (*closehandler)(struct Channel*);
100 99
101 }; 100 };
102 101