Removed the reuse socket option.
This commit is contained in:
parent
f815889d15
commit
dbb1883420
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
// use the setsockopt function to make the socket accept different configurations
|
||||
// allow for the reuse of the address/bind.
|
||||
setsockopt(socketEchoFD, SOL_SOCKET, SO_REUSEADDR, &reuseAddrOpt, sizeof(reuseAddrOpt));
|
||||
// setsockopt(socketEchoFD, SOL_SOCKET, SO_REUSEADDR, &reuseAddrOpt, sizeof(reuseAddrOpt));
|
||||
// also need to set the socket to keepalive using setsockopt
|
||||
setsockopt(socketEchoFD, SOL_SOCKET, SO_KEEPALIVE, &keepAliveOpt, sizeof(keepAliveOpt));
|
||||
// CODE HERE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue