Mercurial > dropbear
diff netio.h @ 1050:c2a50c9f509e fastopen
Add cleanup
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 28 Feb 2015 23:15:23 +0800 |
parents | ca71904cf3ee |
children | c71df09bc610 |
line wrap: on
line diff
--- a/netio.h Sat Feb 28 09:06:40 2015 +0800 +++ b/netio.h Sat Feb 28 23:15:23 2015 +0800 @@ -30,8 +30,12 @@ struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport, connect_callback cb, void *cb_data); +/* Sets up for select() */ void set_connect_fds(fd_set *writefd); +/* Handles ready sockets after select() */ void handle_connect_fds(fd_set *writefd); +/* Cleanup */ +void remove_connect_pending(); /* Doesn't actually stop the connect, but adds a dummy callback instead */ void cancel_connect(struct dropbear_progress_connection *c);