org.objectweb.dream.protocol.channel
Interface TCPIPProtocolAttributeController

All Superinterfaces:
AttributeController
All Known Implementing Classes:
TCPIPProtocolImpl

public interface TCPIPProtocolAttributeController
extends AttributeController

Attribute controller for TCP/IP protocol. Defines default values for export and bind hints.

See Also:
TCPIPProtocol

Field Summary
static int CONNECTION_RETRY_DEFAULT
          Default value of connectionRetry attribute.
 
Method Summary
 int getConnectionRetry()
          Returns the default value of the TCPIPProtocol.CONNECTION_RETRY hint.
 int getPort()
          Returns the default value of the TCPIPProtocol.PORT hint.
 int getSoLinger()
          Returns the default value of the TCPIPProtocol.SO_LINGER hint.
 int getSoTimeout()
          Returns the default value of the TCPIPProtocol.SO_TIMEOUT hint.
 boolean getTcpNoDelay()
          Returns the default value of the TCPIPProtocol.TCP_NO_DELAY hint.
 void setConnectionRetry(int connectionRetry)
          Sets the default value of the TCPIPProtocol.CONNECTION_RETRY hint.
 void setPort(int port)
          Sets the default value of the TCPIPProtocol.PORT hint.
 void setSoLinger(int timeout)
          Sets the default value of the TCPIPProtocol.SO_LINGER hint.
 void setSoTimeout(int timeout)
          Sets the default value of the TCPIPProtocol.SO_TIMEOUT hint.
 void setTcpNoDelay(boolean tcpNoDelay)
          Sets the default value of the TCPIPProtocol.TCP_NO_DELAY hint.
 

Field Detail

CONNECTION_RETRY_DEFAULT

static final int CONNECTION_RETRY_DEFAULT
Default value of connectionRetry attribute.

See Also:
Constant Field Values
Method Detail

getPort

int getPort()
Returns the default value of the TCPIPProtocol.PORT hint.

Returns:
the port attribute's value.
See Also:
TCPIPProtocol.PORT, setPort(int)

setPort

void setPort(int port)
Sets the default value of the TCPIPProtocol.PORT hint.

Parameters:
port - the new port attribute's value.
See Also:
TCPIPProtocol.PORT, getPort()

getConnectionRetry

int getConnectionRetry()
Returns the default value of the TCPIPProtocol.CONNECTION_RETRY hint.

Returns:
CONNECTION_RETRY_DEFAULT by default, or the value set by setConnectionRetry(int).
See Also:
TCPIPProtocol.CONNECTION_RETRY, setConnectionRetry(int)

setConnectionRetry

void setConnectionRetry(int connectionRetry)
Sets the default value of the TCPIPProtocol.CONNECTION_RETRY hint.

Parameters:
connectionRetry - the new connectionRetry attribute's value.
See Also:
TCPIPProtocol.CONNECTION_RETRY, getConnectionRetry()

getTcpNoDelay

boolean getTcpNoDelay()
Returns the default value of the TCPIPProtocol.TCP_NO_DELAY hint.

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

setTcpNoDelay

void setTcpNoDelay(boolean tcpNoDelay)
Sets the default value of the TCPIPProtocol.TCP_NO_DELAY hint.

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

getSoTimeout

int getSoTimeout()
Returns the default value of the TCPIPProtocol.SO_TIMEOUT hint.

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

setSoTimeout

void setSoTimeout(int timeout)
Sets the default value of the TCPIPProtocol.SO_TIMEOUT hint.

Parameters:
timeout - the new soTimeout attribute's value.
See Also:
TCPIPProtocol.SO_TIMEOUT, Socket.setSoTimeout(int), getSoTimeout()

getSoLinger

int getSoLinger()
Returns the default value of the TCPIPProtocol.SO_LINGER hint.

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

setSoLinger

void setSoLinger(int timeout)
Sets the default value of the TCPIPProtocol.SO_LINGER hint.

Parameters:
timeout - the new soLinger attribute's value.
See Also:
TCPIPProtocol.SO_LINGER, Socket.setSoLinger(boolean, int), getSoLinger()


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