Displaying 1 result from an estimated 1 matches for "inet_any".
2007 May 15
0
Setting explicitly the source of slaves connections
...gh I had to modify a few
things regarding net/sock.c:
I mainly took the code from sock_get_server_socket and removed the
reference to the port setting, in order to modify sock_connect_wto.
Then I changed a few things to not care too much about not being given a
source hostname (falling back to an INET_ANY or whatever connect uses
while not being bound to a specific IP).
The "problem" is that the sock_connect_wto must now be given another
parameter, the source hostname sock_t sock_connect_wto(const char
*source, const char *hostname, int port, int timeout).
It's only called in slave.c...