tcpsocket: add option to bind to specific ip

Fixes #218
This commit is contained in:
rany 2023-05-13 23:52:41 +03:00 committed by Nick Hainke
parent be63ed4e64
commit f8cdae3f29
7 changed files with 13 additions and 5 deletions

View file

@ -30,7 +30,7 @@ int add_tcp_connection(char *ipv4, int port);
* @param port
* @return
*/
int run_server(int port);
int run_server(char *ipv4, int port);
/**
* Send message via tcp to all other hosts.