org.gudy.azureus2.core3.peer.impl.transport
Class PEPeerTransportDebugger

java.lang.Object
  extended by org.gudy.azureus2.core3.peer.impl.transport.PEPeerTransportDebugger

public class PEPeerTransportDebugger
extends Object


Field Summary
protected static int BT_READING_LENGTH_AND_TYPE
           
protected  byte[] data_read
           
protected  int data_read_pos
           
protected  int piece_length
           
protected  int state
           
 
Constructor Summary
protected PEPeerTransportDebugger(PEPeerTransportProtocol transport)
           
 
Method Summary
protected  void analyse(ByteBuffer buffer, int length)
           
 int write(SocketChannel chan, ByteBuffer buffer)
           
 long write(SocketChannel chan, ByteBuffer[] buffers, int array_offset, int array_length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

piece_length

protected int piece_length

BT_READING_LENGTH_AND_TYPE

protected static final int BT_READING_LENGTH_AND_TYPE
See Also:
Constant Field Values

state

protected int state

data_read

protected byte[] data_read

data_read_pos

protected int data_read_pos
Constructor Detail

PEPeerTransportDebugger

protected PEPeerTransportDebugger(PEPeerTransportProtocol transport)
Method Detail

write

public int write(SocketChannel chan,
                 ByteBuffer buffer)
          throws IOException
Throws:
IOException

write

public long write(SocketChannel chan,
                  ByteBuffer[] buffers,
                  int array_offset,
                  int array_length)
           throws IOException
Throws:
IOException

analyse

protected void analyse(ByteBuffer buffer,
                       int length)