From 54c31922f7c234219a83bda38ea7996dc7b12f01 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 4 May 2014 01:25:36 +0200 Subject: [PATCH] Implemented UDPConnection::getSock() --- lib/socket.cpp | 4 ++++ lib/socket.h | 1 + 2 files changed, 5 insertions(+) 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);