|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Attribute controller for components providing an IPSocketManager
interface, using TCP/IP connection.
Field Summary | |
static int |
CNX_RETRY_DEFAULT
Default value of cnxRetry attribute. |
Method Summary | |
int |
getCnxRetry()
Returns the number of connection retry before abording. |
int |
getSoLinger()
Returns the SO_LINGER parameter setted on created sockets. |
int |
getSoTimeout()
Returns the SO_TIMEOUT parameter setted on created sockets. |
boolean |
getTcpNoDelay()
Returns true if the Nagle's algorithm is disabled on created
sockets. |
void |
setCnxRetry(int cnxRetry)
Sets the cnxRetry attribute's value. |
void |
setSoLinger(int timeout)
Sets the soLinger attribute's value. |
void |
setSoTimeout(int timeout)
Sets the soTimeout attribute's value. |
void |
setTcpNoDelay(boolean tcpNoDelay)
Sets the tcpNoDelay attribute's value. |
Field Detail |
public static final int CNX_RETRY_DEFAULT
cnxRetry
attribute.
Method Detail |
public int getCnxRetry()
CNX_RETRY_DEFAULT
by default, or the value setted by
setCnxRetry(int)
.public void setCnxRetry(int cnxRetry)
cnxRetry
attribute's value.
cnxRetry
- the number of connection retry before abording.public boolean getTcpNoDelay()
true
if the Nagle's algorithm is disabled on created
sockets.
tcpNoDelay
attribute's value.Socket.setTcpNoDelay(boolean)
public void setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay
attribute's value.
tcpNoDelay
- the new tcpNoDelay
attribute's value.getTcpNoDelay()
public int getSoTimeout()
SO_TIMEOUT
parameter setted on created sockets.
soTimeout
attribute's value.Socket.setSoTimeout(int)
public void setSoTimeout(int timeout)
soTimeout
attribute's value.
timeout
- the new soTimeout
attribute's value.getSoTimeout()
public int getSoLinger()
SO_LINGER
parameter setted on created sockets. A
negative value disable the linger on close.
soLinger
attribute's value.Socket.setSoLinger(boolean, int)
public void setSoLinger(int timeout)
soLinger
attribute's value.
timeout
- the new soLinger
attribute's value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |