Avoid copying data into circular buffer

--HG--
branch : nocircbuffer
This commit is contained in:
Matt Johnston
2015-03-01 00:44:45 +08:00
parent 3113932151
commit 989c5c1436
4 changed files with 95 additions and 12 deletions

View File

@@ -27,6 +27,7 @@ struct dropbear_progress_connection;
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);