Skip to content

Commit 12a14b9

Browse files
committed
[REMOVED] Socket REUSEADDR flag.
1 parent 72bf96c commit 12a14b9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

easysocket/src/tcpserver.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
TCPServer::TCPServer(std::function<void(int, std::string)> onError) : BaseSocket(onError, TCP)
44
{
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));
85
}
96

107
void TCPServer::Bind(int port, std::function<void(int, std::string)> onError)

0 commit comments

Comments
 (0)