Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1049:01eea88963f3 | 1050:c2a50c9f509e |
---|---|
28 typedef void(*connect_callback)(int result, int sock, void* data, const char* errstring); | 28 typedef void(*connect_callback)(int result, int sock, void* data, const char* errstring); |
29 | 29 |
30 struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport, | 30 struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport, |
31 connect_callback cb, void *cb_data); | 31 connect_callback cb, void *cb_data); |
32 | 32 |
33 /* Sets up for select() */ | |
33 void set_connect_fds(fd_set *writefd); | 34 void set_connect_fds(fd_set *writefd); |
35 /* Handles ready sockets after select() */ | |
34 void handle_connect_fds(fd_set *writefd); | 36 void handle_connect_fds(fd_set *writefd); |
37 /* Cleanup */ | |
38 void remove_connect_pending(); | |
35 | 39 |
36 /* Doesn't actually stop the connect, but adds a dummy callback instead */ | 40 /* Doesn't actually stop the connect, but adds a dummy callback instead */ |
37 void cancel_connect(struct dropbear_progress_connection *c); | 41 void cancel_connect(struct dropbear_progress_connection *c); |
38 | 42 |
39 void connect_set_writequeue(struct dropbear_progress_connection *c, struct Queue *writequeue); | 43 void connect_set_writequeue(struct dropbear_progress_connection *c, struct Queue *writequeue); |