ServerSocket instances.
| Modifier and Type | Field 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. |
| Access | Constructor and Description |
|---|---|
| public |
| acceptTimeout | back to summary |
|---|---|
| public int acceptTimeout The SO_TIMEOUT in milliseconds for how long to wait during server.accept(). Enter 0 for infinite wait. | |
| backlog | back 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. | |
| performancePrefBandwidth | back to summary |
|---|---|
| public int performancePrefBandwidth See performancePrefConnectionTime for details. | |
| performancePrefConnectionTime | back 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). | |
| performancePrefLatency | back to summary |
|---|---|
| public int performancePrefLatency See performancePrefConnectionTime for details. | |
| receiveBufferSize | back to summary |
|---|---|
| public int receiveBufferSize The SO_RCVBUF (receive buffer) size in bytes for server.accept(). | |
| reuseAddress | back to summary |
|---|---|
| public boolean reuseAddress Enable/disable the SO_REUSEADDR socket option. | |
| ServerSocketHints | back to summary |
|---|---|
| public ServerSocketHints() | |