diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-27 23:22:12 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-27 23:22:12 +0100 |
commit | 20b6e0d68429c97c8b44feb7ada0ecbf0521e000 (patch) | |
tree | 08a4b0ad9ddd32b99a229d0d0e0a57c5258416da /src/net/SocketDescriptor.hxx | |
parent | 713c1f2ba9c18a97a4e1f12642e59e87b62e9080 (diff) |
net/SocketDescriptor: add SetTcpUserTimeout()
Diffstat (limited to 'src/net/SocketDescriptor.hxx')
-rw-r--r-- | src/net/SocketDescriptor.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net/SocketDescriptor.hxx b/src/net/SocketDescriptor.hxx index 3f0c284ae..99643acbb 100644 --- a/src/net/SocketDescriptor.hxx +++ b/src/net/SocketDescriptor.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2017 Max Kellermann <max.kellermann@gmail.com> + * Copyright 2012-2019 Max Kellermann <max.kellermann@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -188,6 +188,12 @@ public: bool SetCork(bool value=true) noexcept; bool SetTcpDeferAccept(const int &seconds) noexcept; + + /** + * Setter for TCP_USER_TIMEOUT. + */ + bool SetTcpUserTimeout(const unsigned &milliseconds) noexcept; + bool SetV6Only(bool value) noexcept; /** |