Various UDP socket fixes

This commit is contained in:
Thulinma 2017-01-19 21:05:20 +01:00
parent e8995f2457
commit dd8eed7920
2 changed files with 63 additions and 30 deletions

View file

@ -142,7 +142,7 @@ namespace Socket{
~UDPConnection();
void close();
int getSock();
int bind(int port, std::string iface = "", const std::string &multicastAddress = "");
uint16_t bind(int port, std::string iface = "", const std::string &multicastAddress = "");
void setBlocking(bool blocking);
void SetDestination(std::string hostname, uint32_t port);
void GetDestination(std::string &hostname, uint32_t &port);