Class PEPeerTransportDebugger
- java.lang.Object
-
- com.biglybt.core.peer.impl.transport.PEPeerTransportDebugger
-
public class PEPeerTransportDebugger extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Modifier Constructor Description protected
PEPeerTransportDebugger(PEPeerTransportProtocol transport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
analyse(java.nio.ByteBuffer buffer, int length)
int
write(java.nio.channels.SocketChannel chan, java.nio.ByteBuffer buffer)
long
write(java.nio.channels.SocketChannel chan, java.nio.ByteBuffer[] buffers, int array_offset, int array_length)
-
-
-
Field Detail
-
piece_length
protected final 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(java.nio.channels.SocketChannel chan, java.nio.ByteBuffer buffer) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public long write(java.nio.channels.SocketChannel chan, java.nio.ByteBuffer[] buffers, int array_offset, int array_length) throws java.io.IOException
- Throws:
java.io.IOException
-
analyse
protected void analyse(java.nio.ByteBuffer buffer, int length)
-
-