org.objectweb.dream.channel
Interface IPChannelDestinationChunk

All Known Implementing Classes:
IPChannelDestinationChunkImpl

public interface IPChannelDestinationChunk

Chunk interface used to identify the IP channel a message is destinated. It can by used by a ChannelOut to identify the ChannelIn to which a message is destinated.


Field Summary
static String DEFAULT_NAME
          The default name of chunks of this type.
static ChunkType TYPE
          The Chunk type of chunks that implements this interface.
 
Method Summary
 InetAddress getChannelDestinationAddr()
          Returns the inet address of the ChannelIn.
 int getChannelDestinationPort()
          Returns the listening port of the ChannelIn.
 void setChannelDestinationAddr(InetAddress addr)
          Sets the inet address of the ChannelIn.
 void setChannelDestinationPort(int port)
          Sets the listening port of the ChannelIn.
 

Field Detail

DEFAULT_NAME

public static final String DEFAULT_NAME
The default name of chunks of this type.

See Also:
Constant Field Values

TYPE

public static final ChunkType TYPE
The Chunk type of chunks that implements this interface.

Method Detail

getChannelDestinationAddr

public InetAddress getChannelDestinationAddr()
Returns the inet address of the ChannelIn.

Returns:
the inet address of the ChannelIn.

setChannelDestinationAddr

public void setChannelDestinationAddr(InetAddress addr)
Sets the inet address of the ChannelIn.

Parameters:
addr - the inet address.

getChannelDestinationPort

public int getChannelDestinationPort()
Returns the listening port of the ChannelIn.

Returns:
the listening port of the ChannelIn.

setChannelDestinationPort

public void setChannelDestinationPort(int port)
Sets the listening port of the ChannelIn.

Parameters:
port - the listening port


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