summaryrefslogtreecommitdiffhomepage
path: root/netio.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-02-28 23:15:23 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-02-28 23:15:23 +0800
commit89c0b2a6d863e54bd0253355146f09b92edeccda (patch)
tree8bbc278b055fd573a9d40ba171d9031626551371 /netio.h
parent31e379c300c69f1a628c74a3226346a48416e568 (diff)
Add cleanup
--HG-- branch : fastopen
Diffstat (limited to 'netio.h')
-rw-r--r--netio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/netio.h b/netio.h
index 280ccaf..1bf08ce 100644
--- a/netio.h
+++ b/netio.h
@@ -30,8 +30,12 @@ typedef void(*connect_callback)(int result, int sock, void* data, const char* er
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);