18#include "hazelcast/util/export.h"
20#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
22#pragma warning(disable : 4251)
31class HAZELCAST_API socket_options
148#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
socket_options & set_tcp_no_delay(bool tcp_no_delay)
Enable/disable TCP_NODELAY socket option.
socket_options & set_reuse_address(bool reuse_address)
Enable/disable the SO_REUSEADDR socket option.
socket_options & set_linger_seconds(int linger_seconds)
Enable/disable SO_LINGER with the specified linger time in seconds.
static const int DEFAULT_BUFFER_SIZE_BYTE
default buffer size of Bytes
bool is_keep_alive() const
SO_KEEPALIVE socket option.
socket_options & set_keep_alive(bool keep_alive)
Enable/disable SO_KEEPALIVE socket option.
bool is_reuse_address() const
SO_REUSEADDR socket option.
bool is_tcp_no_delay() const
TCP_NODELAY socket option.
int get_buffer_size_in_bytes() const
If set to 0 or less, then it is not set on the socket.
socket_options & set_buffer_size_in_bytes(int buffer_size)
If set to 0 or less, then it is not set on the socket.
static const int KILO_BYTE
constant for kilobyte
int get_linger_seconds() const
Gets SO_LINGER with the specified linger time in seconds.