com.caucho.server.connection
Interface TcpDuplexHandler

All Known Implementing Classes:
ServerBrokerStream, XmppBrokerStream

public interface TcpDuplexHandler

Application handler for a bidirectional tcp stream The read stream should only be read by the serviceRead method. The write stream must be synchronized if it's every written by a thread other than the serviceRead


Method Summary
 boolean serviceRead(ReadStream is, TcpDuplexController controller)
          services a read packet
 

Method Detail

serviceRead

boolean serviceRead(ReadStream is,
                    TcpDuplexController controller)
                    throws java.io.IOException
services a read packet

Returns:
true to continue the connection, false to kill it
Throws:
java.io.IOException