Bind to address

Allow binding to address before sending UDP packets.
This commit is contained in:
llorx
2019-11-04 22:46:41 +01:00
parent ecc90928d3
commit 79dccfd697
7 changed files with 22 additions and 7 deletions

3
misc.h
View File

@@ -39,7 +39,8 @@ extern int fix_latency;
//extern char local_ip[100], remote_ip[100];
//extern int local_port, remote_port;
extern address_t local_addr,remote_addr;
extern bool has_b;
extern address_t local_addr,remote_addr,bind_addr;
extern conn_manager_t conn_manager;
extern delay_manager_t delay_manager;