Mercurial > dropbear
comparison channel.h @ 1025:02baa0b334e8 fastopen
async connections working
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 18 Feb 2015 22:46:15 +0800 |
parents | 0bb16232e7c4 |
children | 01eea88963f3 |
comparison
equal
deleted
inserted
replaced
1024:aac0095dc3b4 | 1025:02baa0b334e8 |
---|---|
71 | 71 |
72 /* Set after running the ChanType-specific close hander | 72 /* Set after running the ChanType-specific close hander |
73 * to ensure we don't run it twice (nor type->checkclose()). */ | 73 * to ensure we don't run it twice (nor type->checkclose()). */ |
74 int close_handler_done; | 74 int close_handler_done; |
75 | 75 |
76 struct dropbear_progress_connection *conn_pending; | |
76 int initconn; /* used for TCP forwarding, whether the channel has been | 77 int initconn; /* used for TCP forwarding, whether the channel has been |
77 fully initialised */ | 78 fully initialised */ |
78 | 79 |
79 int await_open; /* flag indicating whether we've sent an open request | 80 int await_open; /* flag indicating whether we've sent an open request |
80 for this channel (and are awaiting a confirmation | 81 for this channel (and are awaiting a confirmation |
97 int (*inithandler)(struct Channel*); | 98 int (*inithandler)(struct Channel*); |
98 int (*check_close)(struct Channel*); | 99 int (*check_close)(struct Channel*); |
99 void (*reqhandler)(struct Channel*); | 100 void (*reqhandler)(struct Channel*); |
100 void (*closehandler)(struct Channel*); | 101 void (*closehandler)(struct Channel*); |
101 }; | 102 }; |
103 | |
104 /* Callback for connect_remote */ | |
105 void channel_connect_done(int result, int sock, void* user_data, const char* errstring); | |
102 | 106 |
103 void chaninitialise(const struct ChanType *chantypes[]); | 107 void chaninitialise(const struct ChanType *chantypes[]); |
104 void chancleanup(); | 108 void chancleanup(); |
105 void setchannelfds(fd_set *readfd, fd_set *writefd); | 109 void setchannelfds(fd_set *readfd, fd_set *writefd); |
106 void channelio(fd_set *readfd, fd_set *writefd); | 110 void channelio(fd_set *readfd, fd_set *writefd); |