mirror of
https://github.com/bjango/istatserverlinux.git
synced 2025-10-28 02:09:42 +00:00
Fixed issue with OpenSSL 1.1+ (#4)
Process monitoring changes for Open/Net/Dragonfly BSD Version bump to 3.02 (104)
This commit is contained in:
@@ -126,11 +126,13 @@ int Socket::listen()
|
||||
timeout.tv_sec = 10;
|
||||
timeout.tv_usec = 0;
|
||||
|
||||
if (setsockopt (socket, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout)) < 0)
|
||||
if (setsockopt (socket, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout)) < 0) {
|
||||
cout << "setsockopt failed" << endl;
|
||||
}
|
||||
|
||||
if (setsockopt (socket, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout, sizeof(timeout)) < 0)
|
||||
if (setsockopt (socket, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout, sizeof(timeout)) < 0){
|
||||
cout << "setsockopt failed" << endl;
|
||||
}
|
||||
|
||||
sockaddr_in myAddress;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user