org.objectweb.dream.channel
Interface IPSocketManagerTCPAttributeController

All Superinterfaces:
AttributeController
All Known Implementing Classes:
IPSocketManagerTCPImpl

public interface IPSocketManagerTCPAttributeController
extends AttributeController

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

CNX_RETRY_DEFAULT

public static final int CNX_RETRY_DEFAULT
Default value of cnxRetry attribute.

See Also:
Constant Field Values
Method Detail

getCnxRetry

public int getCnxRetry()
Returns the number of connection retry before abording.

Returns:
CNX_RETRY_DEFAULTby default, or the value setted by setCnxRetry(int).

setCnxRetry

public void setCnxRetry(int cnxRetry)
Sets the cnxRetry attribute's value.

Parameters:
cnxRetry - the number of connection retry before abording.

getTcpNoDelay

public boolean getTcpNoDelay()
Returns true if the Nagle's algorithm is disabled on created sockets.

Returns:
the tcpNoDelay attribute's value.
See Also:
Socket.setTcpNoDelay(boolean)

setTcpNoDelay

public void setTcpNoDelay(boolean tcpNoDelay)
Sets the tcpNoDelay attribute's value.

Parameters:
tcpNoDelay - the new tcpNoDelay attribute's value.
See Also:
getTcpNoDelay()

getSoTimeout

public int getSoTimeout()
Returns the SO_TIMEOUT parameter setted on created sockets.

Returns:
the soTimeout attribute's value.
See Also:
Socket.setSoTimeout(int)

setSoTimeout

public void setSoTimeout(int timeout)
Sets the soTimeout attribute's value.

Parameters:
timeout - the new soTimeout attribute's value.
See Also:
getSoTimeout()

getSoLinger

public int getSoLinger()
Returns the SO_LINGER parameter setted on created sockets. A negative value disable the linger on close.

Returns:
the soLinger attribute's value.
See Also:
Socket.setSoLinger(boolean, int)

setSoLinger

public void setSoLinger(int timeout)
Sets the soLinger attribute's value.

Parameters:
timeout - the new soLinger attribute's value.


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.