diff --git a/lib/socket.cpp b/lib/socket.cpp index da5f9580..6be58ad4 100644 --- a/lib/socket.cpp +++ b/lib/socket.cpp @@ -1162,3 +1162,7 @@ bool Socket::UDPConnection::Receive(){ return false; } } + +int Socket::UDPConnection::getSock(){ + return sock; +} diff --git a/lib/socket.h b/lib/socket.h index 7434467e..172009ce 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -137,6 +137,7 @@ namespace Socket { UDPConnection(const UDPConnection & o); UDPConnection(bool nonblock = false); ~UDPConnection(); + int getSock(); int bind(int port); void setBlocking(bool blocking); void SetDestination(std::string hostname, uint32_t port);