comparison netio.h @ 1062:210982935887 coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Mon, 02 Mar 2015 21:17:41 +0800
parents c71df09bc610
children 686cd3e8e13e
comparison
equal deleted inserted replaced
1052:e40d1b63b6a6 1062:210982935887
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);