comparison channel.h @ 359:78518751cb82 channel-fix

just shuffle some variables names about, a brief comment about the "bad writefd" problem
author Matt Johnston <matt@ucc.asn.au>
date Sun, 01 Oct 2006 16:35:13 +0000
parents 84925eceeb13
children a01c0c8e543a
comparison
equal deleted inserted replaced
358:e81d3bc1dc78 359:78518751cb82
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