ConnectionOptions
, I2PSocketOptionsImpl
public interface I2PSocketOptions
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static java.lang.String |
PROP_BUFFER_SIZE |
How much data will we accept that hasn't been written out yet.
|
static java.lang.String |
PROP_CONNECT_TIMEOUT |
How long wait for the ACK from a SYN, in milliseconds.
|
static java.lang.String |
PROP_READ_TIMEOUT |
How long to block on read.
|
static java.lang.String |
PROP_WRITE_TIMEOUT |
How long to block on write/flush
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
long |
getConnectTimeout() |
How long we will wait for the ACK from a SYN, in milliseconds.
|
int |
getLocalPort() |
The local port.
|
int |
getMaxBufferSize() |
How much data will we accept that hasn't been written out yet.
|
int |
getPort() |
The remote port.
|
long |
getReadTimeout() |
What is the longest we'll block on the input stream while waiting
for more data.
|
long |
getWriteTimeout() |
What is the longest we'll block on the output stream while waiting
for the data to flush.
|
void |
setConnectTimeout(long ms) |
Define how long we will wait for the ACK from a SYN, in milliseconds.
|
void |
setLocalPort(int port) |
The local port.
|
void |
setMaxBufferSize(int numBytes) |
How much data will we accept that hasn't been written out yet.
|
void |
setPort(int port) |
The remote port.
|
void |
setReadTimeout(long ms) |
What is the longest we'll block on the input stream while waiting
for more data.
|
void |
setWriteTimeout(long ms) |
What is the longest we'll block on the output stream while waiting
for the data to flush.
|
static final java.lang.String PROP_BUFFER_SIZE
static final java.lang.String PROP_CONNECT_TIMEOUT
static final java.lang.String PROP_READ_TIMEOUT
static final java.lang.String PROP_WRITE_TIMEOUT
long getConnectTimeout()
void setConnectTimeout(long ms)
ms
- timeout in mslong getReadTimeout()
void setReadTimeout(long ms)
ms
- timeout in ms, 0 for nonblocking, -1 for foreverint getMaxBufferSize()
void setMaxBufferSize(int numBytes)
numBytes
- How much data will we accept that hasn't been written out yet.long getWriteTimeout()
void setWriteTimeout(long ms)
ms
- wait time to block on the output stream while waiting for the data to flush.int getPort()
void setPort(int port)
port
- 0 - 65535int getLocalPort()
void setLocalPort(int port)
port
- 0 - 65535