org.ow2.petals.transport.platform.nio.selector
Class InputSocketChannelContext

java.lang.Object
  extended by org.ow2.petals.transport.platform.nio.selector.AbstractSocketChannelContext
      extended by org.ow2.petals.transport.platform.nio.selector.InputSocketChannelContext

public class InputSocketChannelContext
extends AbstractSocketChannelContext

The socket channel context of an input socket. It contains following information:

Author:
Christophe DENEUX (Capgemini Sud)

Field Summary
 
Fields inherited from class org.ow2.petals.transport.platform.nio.selector.AbstractSocketChannelContext
directBuffer, INTEGER_SIZE_BYTE, isIOPending, msgExRemainingBytes, socketChannel
 
Constructor Summary
InputSocketChannelContext(java.nio.channels.SocketChannel socketChannel, PipedDeserializer deserializer, NioServer nioServer)
          Constructor to use on server socket channel
 
Method Summary
 void read(java.nio.channels.SelectionKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputSocketChannelContext

public InputSocketChannelContext(java.nio.channels.SocketChannel socketChannel,
                                 PipedDeserializer deserializer,
                                 NioServer nioServer)
                          throws java.net.SocketException
Constructor to use on server socket channel

Parameters:
socketChannel - The socket channel on which a context must be created.
onReadCallback - The callback of the server agent to use when reading bytes.
Throws:
java.net.SocketException
Method Detail

read

public void read(java.nio.channels.SelectionKey key)
          throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.