public abstract class SentPacket extends Object
Constructor and Description |
---|
SentPacket() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
encode() |
protected ByteBuffer |
getBuffer() |
protected abstract int |
length()
Returns the length of this packet excluding the packet ID
|
abstract byte |
pid() |
protected void |
putAddress(InetSocketAddress address) |
protected void |
putByte(byte value) |
protected void |
putBytes(byte[] value) |
protected void |
putDouble(double value) |
protected void |
putFloat(float value) |
protected void |
putInt(int value) |
protected void |
putLong(long value) |
protected void |
putLTriad(int value) |
protected void |
putShort(short value) |
protected void |
putString(String value) |
ByteBuffer |
write() |
public ByteBuffer write()
public abstract byte pid()
protected abstract int length()
protected abstract void encode()
protected void putByte(byte value)
protected void putShort(short value)
protected void putInt(int value)
protected void putLong(long value)
protected void putFloat(float value)
protected void putDouble(double value)
protected void putBytes(byte[] value)
protected void putString(String value)
protected void putAddress(InetSocketAddress address)
protected void putLTriad(int value)
protected ByteBuffer getBuffer()
Copyright © 2016. All rights reserved.