diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-08 10:21:05 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-08 10:21:05 +0100 |
commit | b46e85e5678e06ec10eea69cacf11bb57eeb1fcf (patch) | |
tree | 98e8ff94695ef7fcba81788ef48be5e09c1c738a /src/UdpSocket.cpp | |
parent | 041b82e6ce6c7c5af945211c267f179da4bd298d (diff) | |
download | dabmux-b46e85e5678e06ec10eea69cacf11bb57eeb1fcf.tar.gz dabmux-b46e85e5678e06ec10eea69cacf11bb57eeb1fcf.tar.bz2 dabmux-b46e85e5678e06ec10eea69cacf11bb57eeb1fcf.zip |
Explicity call ::bind()
Diffstat (limited to 'src/UdpSocket.cpp')
-rw-r--r-- | src/UdpSocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UdpSocket.cpp b/src/UdpSocket.cpp index 981d713..3d015ec 100644 --- a/src/UdpSocket.cpp +++ b/src/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; |