Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- a/netio.h Sat Feb 28 23:49:39 2015 +0800 +++ b/netio.h Sun Mar 01 00:44:45 2015 +0800 @@ -27,6 +27,7 @@ errstring is only set on DROPBEAR_FAILURE, returns failure message for the last attempted socket */ typedef void(*connect_callback)(int result, int sock, void* data, const char* errstring); +/* Always returns a progress connection, if it fails it will call the callback at a later point */ struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport, connect_callback cb, void *cb_data);