public interface IPayload
UtpPacket| Modifier and Type | Method and Description |
|---|---|
int |
getSize()
Gets the payload size in bytes.
|
byte |
getType()
Gets the type of this payload as defined in
UtpProtocol |
void |
process(UtpPacket packet,
UtpSocketImpl socket)
Process the packet.
|
void |
read(InStream inStream)
Reads the payload.
|
void |
write(OutStream outStream)
Writes the payload.
|
byte getType()
UtpProtocolvoid read(InStream inStream)
inStream - void write(OutStream outStream)
outStream - The stream to write on.void process(UtpPacket packet, UtpSocketImpl socket) throws IOException
packet - The packet header associated to this payload.socket - The socket which received the packet.IOExceptionint getSize()
Copyright © 2016. All rights reserved.