org.objectweb.dream.channel
Interface SocketState

All Superinterfaces:
CodecInputOutput, Recyclable
All Known Implementing Classes:
SocketStateImpl

public interface SocketState
extends CodecInputOutput, Recyclable

Interface used by ChannelOut to identify a ChannelIn and to send it message.


Method Summary
 void close()
          Closes the connection.
 boolean isClosed()
          Returns true if the socket is closed or is deconnected.
 void setSocket(Socket socket)
          Sets the socket to be used as input and output.
 
Methods inherited from interface org.objectweb.dream.message.codec.CodecInputOutput
getInput, getOutput, setInput, setOutput
 
Methods inherited from interface org.objectweb.dream.pool.Recyclable
recycle
 

Method Detail

setSocket

public void setSocket(Socket socket)
Sets the socket to be used as input and output.

Parameters:
socket - a socket.

isClosed

public boolean isClosed()
Returns true if the socket is closed or is deconnected.

Returns:
true if the socket is closed or is deconnected.

close

public void close()
Closes the connection.



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