Args to setsockopt changed. Now matches what HP wants.
This commit is contained in:
@@ -213,7 +213,7 @@ char *message; /* O message from server (dimension of 80 assumed) */
|
||||
*pServerSock = socket(AF_INET, SOCK_STREAM, 0);
|
||||
if (*pServerSock < 0)
|
||||
return -1;
|
||||
if (setsockopt(*pServerSock, SOL_SOCKET, SO_REUSEADDR, NULL, 0) != 0) {
|
||||
if (setsockopt(*pServerSock, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)) != 0) {
|
||||
close(*pServerSock);
|
||||
*pServerSock = -1;
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user