Added GetDestination UDPConnection call, changed behaviour to automatically set destination to source of last received packet.

This commit is contained in:
Thulinma 2014-02-18 16:57:03 +01:00
parent 3bf7fead7d
commit 069ae2c855
2 changed files with 35 additions and 10 deletions

View file

@ -137,6 +137,7 @@ namespace Socket {
int bind(int port);
void setBlocking(bool blocking);
void SetDestination(std::string hostname, uint32_t port);
void GetDestination(std::string & hostname, uint32_t & port);
bool Receive();
void SendNow(const std::string & data);
void SendNow(const char * data);