summaryrefslogtreecommitdiffhomepage
path: root/channel.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-08-19 23:08:56 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-08-19 23:08:56 +0800
commit6d2d3669f39f12182b79a0067f477b58948897f6 (patch)
tree710285eb2899e8dc49108f0d690edceb811d0644 /channel.h
parent1387654cc8ac3f14b1c144f838fee5d0f51921c0 (diff)
Make keepalive handling more robust, this should now match what OpenSSH does
Diffstat (limited to 'channel.h')
-rw-r--r--channel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/channel.h b/channel.h
index 7008eff..a310d44 100644
--- a/channel.h
+++ b/channel.h
@@ -105,6 +105,9 @@ void chancleanup();
void setchannelfds(fd_set *readfd, fd_set *writefd);
void channelio(fd_set *readfd, fd_set *writefd);
struct Channel* getchannel();
+/* Returns an arbitrary channel that is in a ready state - not
+being initialised and no EOF in either direction. NULL if none. */
+struct Channel* get_any_ready_channel();
void recv_msg_channel_open();
void recv_msg_channel_request();
@@ -128,8 +131,10 @@ int send_msg_channel_open_init(int fd, const struct ChanType *type);
void recv_msg_channel_open_confirmation();
void recv_msg_channel_open_failure();
#endif
+void start_send_channel_request(struct Channel *channel, unsigned char *type);
void send_msg_request_success();
void send_msg_request_failure();
+
#endif /* _CHANNEL_H_ */