add configuiration to bind to specific IP

This commit is contained in:
Jason D. McCormick 2020-06-12 13:16:53 -04:00
parent 815165141c
commit 0cfd041de9
7 changed files with 33 additions and 9 deletions

View file

@ -40,7 +40,7 @@ public:
CUDPSocket(unsigned int port = 0U);
~CUDPSocket();
bool open();
bool open(const char* bindaddr);
int read(unsigned char* buffer, unsigned int length, in_addr& address, unsigned int& port);
bool write(const unsigned char* buffer, unsigned int length, const in_addr& address, unsigned int port);