public interface PacketHandler<T extends Client<Connection<T>>>
| Modifier and Type | Method and Description |
|---|---|
ReadablePacket<T> |
handlePacket(java.nio.ByteBuffer buffer,
T client)
Convert the data into a packet.
|
ReadablePacket<T> handlePacket(java.nio.ByteBuffer buffer, T client)
buffer - - the buffer with data to be converted.client - - the client who sends the data