NetworkOptions

@author <a href="http://tfox.org">Tim Fox</a>

Constructors

this
this()

Default constructor

this
this(NetworkOptions other)

Copy constructor

Members

Functions

getDecoderBufferSize
int getDecoderBufferSize()

Return the decoder buffer size, in bytes

getEncoderBufferSize
int getEncoderBufferSize()

Return the encoder buffer size, in bytes

getLogActivity
bool getLogActivity()

@return true when network activity logging is enabled

getReceiveBufferSize
int getReceiveBufferSize()

Return the TCP receive buffer size, in bytes

getSendBufferSize
int getSendBufferSize()

Return the TCP send buffer size, in bytes.

getTrafficClass
int getTrafficClass()

@return the value of traffic class

isReuseAddress
bool isReuseAddress()

@return the value of reuse address

isReusePort
bool isReusePort()

@return the value of reuse address - only supported by native transports

opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
setDecoderBufferSize
NetworkOptions setDecoderBufferSize(int size)

Set the decoder buffer size

setEncoderBufferSize
NetworkOptions setEncoderBufferSize(int size)

Set the encoder buffer size

setLogActivity
NetworkOptions setLogActivity(bool logActivity)

Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.

setReceiveBufferSize
NetworkOptions setReceiveBufferSize(int receiveBufferSize)

Set the TCP receive buffer size

setReuseAddress
NetworkOptions setReuseAddress(bool reuseAddress)

Set the value of reuse address @param reuseAddress the value of reuse address @return a reference to this, so the API can be used fluently

setReusePort
NetworkOptions setReusePort(bool reusePort)

Set the value of reuse port. <p/> This is only supported by native transports.

setSendBufferSize
NetworkOptions setSendBufferSize(int sendBufferSize)

Set the TCP send buffer size

setTrafficClass
NetworkOptions setTrafficClass(int trafficClass)

Set the value of traffic class

toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

DEFAULT_DECODER_BUFFER_SIZE
enum int DEFAULT_DECODER_BUFFER_SIZE;

The default value of decoder buffer size

DEFAULT_ENCODER_BUFFER_SIZE
enum int DEFAULT_ENCODER_BUFFER_SIZE;

The default value of encoder buffer size

DEFAULT_LOG_ENABLED
enum bool DEFAULT_LOG_ENABLED;

The default log enabled = false

DEFAULT_RECEIVE_BUFFER_SIZE
enum int DEFAULT_RECEIVE_BUFFER_SIZE;

The default value of TCP receive buffer size

DEFAULT_REUSE_ADDRESS
enum bool DEFAULT_REUSE_ADDRESS;

The default value of reuse address

DEFAULT_REUSE_PORT
enum bool DEFAULT_REUSE_PORT;

The default value of reuse port

DEFAULT_SEND_BUFFER_SIZE
enum int DEFAULT_SEND_BUFFER_SIZE;

The default value of TCP send buffer size

DEFAULT_TRAFFIC_CLASS
enum int DEFAULT_TRAFFIC_CLASS;

The default value of traffic class

Meta