We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72bf96c commit 12a14b9Copy full SHA for 12a14b9
easysocket/src/tcpserver.cpp
@@ -2,9 +2,6 @@
2
3
TCPServer::TCPServer(std::function<void(int, std::string)> onError) : BaseSocket(onError, TCP)
4
{
5
- int opt = 1;
6
- setsockopt(this->sock,SOL_SOCKET,SO_REUSEADDR,&opt,sizeof(int));
7
- setsockopt(this->sock,SOL_SOCKET,SO_REUSEPORT,&opt,sizeof(int));
8
}
9
10
void TCPServer::Bind(int port, std::function<void(int, std::string)> onError)
0 commit comments