APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.net

public Class ServerSocketHints

extends Object
Class Inheritance

Options for ServerSocket instances.
Authors
mzechner, noblemaster

Field Summary

Modifier and TypeField and Description
public int
acceptTimeout

The SO_TIMEOUT in milliseconds for how long to wait during server.accept().

public int
backlog

The listen backlog length.

public int
performancePrefBandwidth

See performancePrefConnectionTime for details.

public int
performancePrefConnectionTime

Performance preferences are described by three integers whose values indicate the relative importance of short connection time, low latency, and high bandwidth.

public int
performancePrefLatency

See performancePrefConnectionTime for details.

public int
receiveBufferSize

The SO_RCVBUF (receive buffer) size in bytes for server.accept().

public boolean
reuseAddress

Enable/disable the SO_REUSEADDR socket option.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

acceptTimeoutback to summary
public int acceptTimeout

The SO_TIMEOUT in milliseconds for how long to wait during server.accept(). Enter 0 for infinite wait.

backlogback to summary
public int backlog

The listen backlog length. Needs to be greater than 0, otherwise the system default is used. backlog is the maximum queue length for incoming connection, i.e. maximum number of connections waiting for accept(...). If a connection indication arrives when the queue is full, the connection is refused.

performancePrefBandwidthback to summary
public int performancePrefBandwidth

See performancePrefConnectionTime for details.

performancePrefConnectionTimeback to summary
public int performancePrefConnectionTime

Performance preferences are described by three integers whose values indicate the relative importance of short connection time, low latency, and high bandwidth. The absolute values of the integers are irrelevant; in order to choose a protocol the values are simply compared, with larger values indicating stronger preferences. Negative values represent a lower priority than positive values. If the application prefers short connection time over both low latency and high bandwidth, for example, then it could invoke this method with the values (1, 0, 0). If the application prefers high bandwidth above low latency, and low latency above short connection time, then it could invoke this method with the values (0, 1, 2).

performancePrefLatencyback to summary
public int performancePrefLatency

See performancePrefConnectionTime for details.

receiveBufferSizeback to summary
public int receiveBufferSize

The SO_RCVBUF (receive buffer) size in bytes for server.accept().

reuseAddressback to summary
public boolean reuseAddress

Enable/disable the SO_REUSEADDR socket option.

Constructor Detail

ServerSocketHintsback to summary
public ServerSocketHints()