Skip to content

Commit

Permalink
[REMOVED] Socket REUSEADDR flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
eminfedar committed May 10, 2020
1 parent 72bf96c commit 12a14b9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions easysocket/src/tcpserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

TCPServer::TCPServer(std::function<void(int, std::string)> onError) : BaseSocket(onError, TCP)
{
int opt = 1;
setsockopt(this->sock,SOL_SOCKET,SO_REUSEADDR,&opt,sizeof(int));
setsockopt(this->sock,SOL_SOCKET,SO_REUSEPORT,&opt,sizeof(int));
}

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

0 comments on commit 12a14b9

Please sign in to comment.