Buffer.BufferException, Buffer.PlainBuffer
Constructor and Description |
---|
SSHPacket() |
SSHPacket(byte[] data) |
SSHPacket(int size) |
SSHPacket(Message msg)
Constructs new buffer for the specified SSH packet and reserves the needed space (5 bytes) for the packet
header.
|
SSHPacket(SSHPacket p) |
Modifier and Type | Method and Description |
---|---|
SSHPacket |
putMessageID(Message msg)
Writes a byte indicating the SSH message identifier
|
Message |
readMessageID()
Reads an SSH byte and returns it as
Message |
array, available, clear, compact, ensureAvailable, ensureCapacity, getCompactData, getNextPowerOf2, printHex, putBoolean, putBuffer, putByte, putBytes, putBytes, putMPInt, putPublicKey, putRawBytes, putRawBytes, putSensitiveString, putSignature, putString, putString, putString, putUInt32, putUInt64, readBoolean, readByte, readBytes, readMPInt, readPublicKey, readRawBytes, readRawBytes, readString, readStringAsBytes, readUInt32, readUInt32AsInt, readUInt64, rpos, rpos, toString, wpos, wpos
public SSHPacket()
public SSHPacket(int size)
public SSHPacket(byte[] data)
public SSHPacket(Message msg)
msg
- the SSH commandpublic SSHPacket(SSHPacket p)
public Message readMessageID() throws Buffer.BufferException
Message
Buffer.BufferException