comparison netio.h @ 1467:7279a633cc50

Merge branch 'houseofkodai-cli_bind_address_connect'
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 Jan 2018 00:32:39 +0800
parents f787f60f8e45
children 1d86a58fb52d
comparison
equal deleted inserted replaced
1464:ad637c9e0f6f 1467:7279a633cc50
28 errstring is only set on DROPBEAR_FAILURE, returns failure message for the last attempted socket */ 28 errstring is only set on DROPBEAR_FAILURE, returns failure message for the last attempted socket */
29 typedef void(*connect_callback)(int result, int sock, void* data, const char* errstring); 29 typedef void(*connect_callback)(int result, int sock, void* data, const char* errstring);
30 30
31 /* Always returns a progress connection, if it fails it will call the callback at a later point */ 31 /* Always returns a progress connection, if it fails it will call the callback at a later point */
32 struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport, 32 struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport,
33 connect_callback cb, void *cb_data); 33 connect_callback cb, void *cb_data, const char* bind_address, const char* bind_port);
34 34
35 /* Sets up for select() */ 35 /* Sets up for select() */
36 void set_connect_fds(fd_set *writefd); 36 void set_connect_fds(fd_set *writefd);
37 /* Handles ready sockets after select() */ 37 /* Handles ready sockets after select() */
38 void handle_connect_fds(const fd_set *writefd); 38 void handle_connect_fds(const fd_set *writefd);