|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Attribute controller for IP Accept Socket, It defines the listening port.
Field Summary | |
static int |
OPEN_RETRY_DEFAULT
Default value of openRetry attribute. |
Method Summary | |
int |
getListeningPort()
Returns the listening port. |
int |
getOpenRetry()
Returns the number of attempts to open a ServerSocket
before aborting. |
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 |
setListeningPort(int port)
Sets the listeningPort attribute's value. |
void |
setOpenRetry(int retry)
Sets the openRetry 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 OPEN_RETRY_DEFAULT
openRetry
attribute.
Method Detail |
public int getListeningPort()
listeningPort
attribute's value.public void setListeningPort(int port) throws IllegalLifeCycleException
listeningPort
attribute's value.
port
- the new listeningPort
attribute's value.
IllegalLifeCycleException
- cannot change port number if the
component is started.getListeningPort()
public int getOpenRetry()
ServerSocket
before aborting.
openRetry
attribute's value.public void setOpenRetry(int retry)
openRetry
attribute's value.
retry
- the new openRetry
attribute's value.getOpenRetry()
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 |