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

@ -124,6 +124,7 @@ struct network_config_s {
char broadcast_ip[MAX_IP_LENGTH + 1];
int broadcast_port;
char server_ip[MAX_IP_LENGTH + 1];
char tcp_ip[MAX_IP_LENGTH + 1];
int tcp_port;
int network_option; // 0:Broadcast; 1:Multicast; 2:TCP+UMDNS; 3:TCP
char shared_key[MAX_KEY_LENGTH + 1];