Fix ambiguous function call to bind()
The call to bind() can actually resolve to std::bind() instead of libc's bind(). Ensure that we're definitely calling the correct one.
This commit is contained in:
parent
79e2ae248b
commit
ec31ed30cf
|
@ -82,7 +82,7 @@ public:
|
|||
memset(serverAddr.sin_zero, '\0', sizeof serverAddr.sin_zero);
|
||||
|
||||
//---- Bind the address struct to the socket ----//
|
||||
bind(serverSocket, (struct sockaddr *) &serverAddr, sizeof(serverAddr));
|
||||
::bind(serverSocket, (struct sockaddr *) &serverAddr, sizeof(serverAddr));
|
||||
|
||||
//---- Listen on the socket, with 5 max connection requests queued ----//
|
||||
listen(serverSocket,1);
|
||||
|
|
Loading…
Reference in New Issue