summaryrefslogtreecommitdiffstats
path: root/src/TcpSocket.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-08 10:21:05 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-08 10:21:05 +0100
commitb46e85e5678e06ec10eea69cacf11bb57eeb1fcf (patch)
tree98e8ff94695ef7fcba81788ef48be5e09c1c738a /src/TcpSocket.cpp
parent041b82e6ce6c7c5af945211c267f179da4bd298d (diff)
downloaddabmux-b46e85e5678e06ec10eea69cacf11bb57eeb1fcf.tar.gz
dabmux-b46e85e5678e06ec10eea69cacf11bb57eeb1fcf.tar.bz2
dabmux-b46e85e5678e06ec10eea69cacf11bb57eeb1fcf.zip
Explicity call ::bind()
Diffstat (limited to 'src/TcpSocket.cpp')
-rw-r--r--src/TcpSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TcpSocket.cpp b/src/TcpSocket.cpp
index b233c9f..76e9c2e 100644
--- a/src/TcpSocket.cpp
+++ b/src/TcpSocket.cpp
@@ -66,7 +66,7 @@ TcpSocket::TcpSocket(int port, const string& name) :
m_own_address.setAddress(name);
m_own_address.setPort(port);
- if (bind(m_sock, m_own_address.getAddress(), sizeof(sockaddr_in)) == SOCKET_ERROR) {
+ if (::bind(m_sock, m_own_address.getAddress(), sizeof(sockaddr_in)) == SOCKET_ERROR) {
::close(m_sock);
m_sock = INVALID_SOCKET;
throw std::runtime_error("Can't bind socket");