public interface I2PSocketOptions| Modifier and Type | Field and Description |
|---|---|
static int | PROFILE_BULKDescription. |
static int | PROFILE_INTERACTIVEDescription. |
static String | PROP_BUFFER_SIZEHow much data will we accept that hasn't been written out yet. |
static String | PROP_CONNECT_TIMEOUTHow long wait for the ACK from a SYN, in milliseconds. |
static String | PROP_PROFILEDescription. |
static String | PROP_READ_TIMEOUTHow long to block on read. |
static String | PROP_WRITE_TIMEOUTHow 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 int PROFILE_BULK
static final int PROFILE_INTERACTIVE
static final String PROP_BUFFER_SIZE
static final String PROP_CONNECT_TIMEOUT
static final String PROP_PROFILE
static final String PROP_READ_TIMEOUT
static final String PROP_WRITE_TIMEOUT
long getConnectTimeout()
int getLocalPort()
int getMaxBufferSize()
int getPort()
long getReadTimeout()
long getWriteTimeout()
void setConnectTimeout(long ms)
ms - timeout in msvoid setLocalPort(int port)
port - 0 - 65535void setMaxBufferSize(int numBytes)
numBytes - How much data will we accept that hasn't been written out yet.void setPort(int port)
port - 0 - 65535void setReadTimeout(long ms)
ms - timeout in ms, 0 for nonblocking, -1 for forevervoid setWriteTimeout(long ms)
ms - wait time to block on the output stream while waiting for the data to flush.