struct
#include <eckit/net/SocketOptions.h>
SocketOptions
Public static functions
- static auto none() -> SocketOptions
- static auto server() -> SocketOptions
- static auto control() -> SocketOptions
- static auto data() -> SocketOptions
Public functions
-
auto bindAddress(const std::
string& addr) -> SocketOptions& - auto listenBacklog(int backlog) -> SocketOptions&
- auto receiveBufferSize(int size) -> SocketOptions&
- auto sendBufferSize(int size) -> SocketOptions&
- auto reusePort(bool v) -> SocketOptions&
- auto reuseAddr(bool v) -> SocketOptions&
- auto noLinger(bool v) -> SocketOptions&
- auto keepAlive(bool v) -> SocketOptions&
- auto ipLowDelay(bool v) -> SocketOptions&
- auto tcpNoDelay(bool v) -> SocketOptions&
- auto reusePort() const -> bool
- auto reuseAddr() const -> bool
- auto keepAlive() const -> bool
- auto noLinger() const -> bool
- auto ipLowDelay() const -> bool
- auto tcpNoDelay() const -> bool
- auto listenBacklog() const -> int
- auto receiveBufferSize() const -> int
- auto sendBufferSize() const -> int
-
auto bindAddress() const -> std::
string -
void print(std::
ostream& s) const
Friends
-
auto operator<<(std::
ostream& s, const SocketOptions& socket) -> std:: ostream&