net/SocketDescriptor: add method SetKeepAlive()

This commit is contained in:
Max Kellermann
2017-08-10 19:25:02 +02:00
parent 9a5bcc6db0
commit 1f47dc990d
5 changed files with 8 additions and 13 deletions

View File

@@ -141,6 +141,7 @@ public:
return SetOption(level, name, &value, sizeof(value));
}
bool SetKeepAlive(bool value=true);
bool SetReuseAddress(bool value=true);
#ifdef __linux__