Mercurial > dropbear
comparison netio.h @ 1054:c71df09bc610 nocircbuffer
Avoid copying data into circular buffer
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 01 Mar 2015 00:44:45 +0800 |
parents | c2a50c9f509e |
children | 686cd3e8e13e |
comparison
equal
deleted
inserted
replaced
1053:fd3712d1ff7f | 1054:c71df09bc610 |
---|---|
25 | 25 |
26 /* result is DROPBEAR_SUCCESS or DROPBEAR_FAILURE. | 26 /* result is DROPBEAR_SUCCESS or DROPBEAR_FAILURE. |
27 errstring is only set on DROPBEAR_FAILURE, returns failure message for the last attempted socket */ | 27 errstring is only set on DROPBEAR_FAILURE, returns failure message for the last attempted socket */ |
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 /* Always returns a progress connection, if it fails it will call the callback at a later point */ | |
30 struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport, | 31 struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport, |
31 connect_callback cb, void *cb_data); | 32 connect_callback cb, void *cb_data); |
32 | 33 |
33 /* Sets up for select() */ | 34 /* Sets up for select() */ |
34 void set_connect_fds(fd_set *writefd); | 35 void set_connect_fds(fd_set *writefd); |