Commit 4926f5f5 authored by Jan Kuri's avatar Jan Kuri Committed by Alex Hultman

make clear to call bind() from global namespace (#756)

parent bdea5fd1
...@@ -172,7 +172,7 @@ public: ...@@ -172,7 +172,7 @@ public:
int enabled = true; int enabled = true;
setsockopt(listenFd, SOL_SOCKET, SO_REUSEADDR, &enabled, sizeof(enabled)); setsockopt(listenFd, SOL_SOCKET, SO_REUSEADDR, &enabled, sizeof(enabled));
if (bind(listenFd, listenAddr->ai_addr, listenAddr->ai_addrlen) || ::listen(listenFd, 512)) { if (::bind(listenFd, listenAddr->ai_addr, listenAddr->ai_addrlen) || ::listen(listenFd, 512)) {
netContext->closeSocket(listenFd); netContext->closeSocket(listenFd);
freeaddrinfo(result); freeaddrinfo(result);
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment