choose ip by interface

This commit is contained in:
/jdi/ 2015-09-27 23:41:23 +02:00
parent 87864b9975
commit 5544792bfb
4 changed files with 20 additions and 7 deletions

View file

@ -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);
};