choose ip by interface
This commit is contained in:
parent
87864b9975
commit
5544792bfb
4 changed files with 20 additions and 7 deletions
|
|
@ -22,6 +22,7 @@ public:
|
|||
void init(short, short);
|
||||
void send(bytes);
|
||||
void listen();
|
||||
void setHostIp(bytes);
|
||||
int (*callback)(Packet)=[](Packet a) {
|
||||
return 0;
|
||||
};
|
||||
|
|
@ -35,6 +36,7 @@ private:
|
|||
asio::ip::udp::endpoint wildcard_endpoint_;
|
||||
asio::ip::udp::endpoint local_endpoint_;
|
||||
bytes data = bytes(MAX_LENGTH);
|
||||
bytes local_ip = bytes(4);
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue