Implemented UDPConnection::getSock()

This commit is contained in:
Thulinma 2014-05-04 01:25:36 +02:00
parent 0fa40bb373
commit 54c31922f7
2 changed files with 5 additions and 0 deletions

View file

@ -1162,3 +1162,7 @@ bool Socket::UDPConnection::Receive(){
return false; return false;
} }
} }
int Socket::UDPConnection::getSock(){
return sock;
}

View file

@ -137,6 +137,7 @@ namespace Socket {
UDPConnection(const UDPConnection & o); UDPConnection(const UDPConnection & o);
UDPConnection(bool nonblock = false); UDPConnection(bool nonblock = false);
~UDPConnection(); ~UDPConnection();
int getSock();
int bind(int port); int bind(int port);
void setBlocking(bool blocking); void setBlocking(bool blocking);
void SetDestination(std::string hostname, uint32_t port); void SetDestination(std::string hostname, uint32_t port);