Mercurial > dropbear
comparison channel.h @ 402:173a5f89666c channel-fix
propagate from branch 'au.asn.ucc.matt.dropbear' (head b1dd3b94e60a07a176dba2b035ac79968595990a)
to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head fc77c3dea87a7c0f374e738d055f0b455495cbc3)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 03 Feb 2007 08:22:58 +0000 |
parents | 78518751cb82 |
children | a01c0c8e543a |
comparison
equal
deleted
inserted
replaced
399:a707e6148060 | 402:173a5f89666c |
---|---|
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 |