public interface I2PSocketOptions
Modifier and Type | Field and Description |
---|---|
static String |
PROP_BUFFER_SIZE
How much data will we accept that hasn't been written out yet.
|
static String |
PROP_CONNECT_TIMEOUT
How long wait for the ACK from a SYN, in milliseconds.
|
static String |
PROP_READ_TIMEOUT
How long to block on read.
|
static String |
PROP_WRITE_TIMEOUT
How long to block on write/flush
|
Modifier and Type | Method and Description |
---|---|
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 String PROP_BUFFER_SIZE
static final String PROP_CONNECT_TIMEOUT
static final String PROP_READ_TIMEOUT
static final 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