Mercurial > dropbear
comparison netio.h @ 1466:f787f60f8e45
bind to port as well with -b
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 26 Jan 2018 00:27:48 +0800 |
parents | f7a53832501d |
children | 1d86a58fb52d |
comparison
equal
deleted
inserted
replaced
1465:f7a53832501d | 1466:f787f60f8e45 |
---|---|
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, char* bind_address); | 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); |