com.mindbright.ssh2
public class SSH2TransportPDUPool extends SSH2TransportPDU
Modifier and Type | Class and Description |
---|---|
protected class |
SSH2TransportPDUPool.PoolPDU |
Modifier and Type | Field and Description |
---|---|
protected static int |
POOL_SIZE |
factoryInstance, PACKET_DEFAULT_SIZE, PACKET_MAX_SIZE, PACKET_MIN_SIZE, padSize, pktDefaultSize, pktSize, pktType, totSizeCompressed, totSizeUncompressed
BOOLEAN_FALSE, BOOLEAN_TRUE, data, rPos, wPos
Modifier | Constructor and Description |
---|---|
protected |
SSH2TransportPDUPool() |
Modifier and Type | Method and Description |
---|---|
protected SSH2TransportPDU |
createPDU(int pktType,
int bufSize)
Create a new PDU for a packet.
|
protected void |
releasePDU(SSH2TransportPDUPool.PoolPDU pdu)
Internal class which releases an incoming PDU.
|
checkMac, createIncomingPacket, createIncomingPacket, createInPDU, createOutgoingPacket, createOutgoingPacket, createOutPDU, createTransceiverContext, createTransceiverContextImpl, fillData, getCompressedSize, getNeededBytes, getPayloadLength, getPayloadOffset, getType, getUncompressedSize, initReceive, makeCopy, processData, release, setFactoryInstance, setType, toString, writeByte, writeRaw, writeString, writeTo
getData, getMaxReadSize, getMaxSize, getMaxWriteSize, getRPos, getWPos, readBigInt, readBigIntBits, readBoolean, readByte, readInt, readJavaString, readLong, readRaw, readRaw, readRestRaw, readString, readString, readUInt, reset, resize, setData, setRPos, setWPos, writeBigInt, writeBigIntBits, writeBoolean, writeInt, writeInt, writeLong, writeRaw, writeString, writeString, writeUTF8String
protected SSH2TransportPDU createPDU(int pktType, int bufSize)
SSH2TransportPDU
createPDU
in class SSH2TransportPDU
pktType
- Type of packet to create.bufSize
- How many bytes it should have room for.protected void releasePDU(SSH2TransportPDUPool.PoolPDU pdu)