Mercurial > dropbear
comparison netio.h @ 1465:f7a53832501d
cli_bind_address_connect
* replaces -b dummy option in dbclient to be similar with openssh -b option
* useful in multi-wan connections
author | houseofkodai <karthik@houseofkodai.in> |
---|---|
date | Mon, 01 May 2017 08:26:15 +0530 |
parents | ad637c9e0f6f |
children | f787f60f8e45 |
comparison
equal
deleted
inserted
replaced
1464:ad637c9e0f6f | 1465:f7a53832501d |
---|---|
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, char* bind_address); |
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); |