summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/UdpSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/UdpSocket.cpp b/lib/UdpSocket.cpp
index 570da5f..e711577 100644
--- a/lib/UdpSocket.cpp
+++ b/lib/UdpSocket.cpp
@@ -88,7 +88,7 @@ int UdpSocket::reinit(int port, const std::string& name)
address.setAddress(name);
address.setPort(port);
- if (bind(listenSocket, address.getAddress(), sizeof(sockaddr_in)) == SOCKET_ERROR) {
+ if (::bind(listenSocket, address.getAddress(), sizeof(sockaddr_in)) == SOCKET_ERROR) {
setInetError("Can't bind socket");
::close(listenSocket);
listenSocket = INVALID_SOCKET;