public class ClientListener extends SessionAdapter
| Constructor and Description |
|---|
ClientListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
connected(ConnectedEvent event)
Called when a session connects.
|
void |
packetReceived(Session session,
Packet packet)
Called when a session receives a packet.
|
void |
packetSent(Session session,
Packet packet)
Called when a session sends a packet.
|
disconnected, disconnecting, packetError, packetSendingpublic void packetReceived(Session session, Packet packet)
SessionListenerpacketReceived in interface SessionListenerpacketReceived in class SessionAdapterpacket - the packet that was just received.public void packetSent(Session session, Packet packet)
SessionListenerpacketSent in interface SessionListenerpacketSent in class SessionAdapterpacket - Packet just sent.public void connected(ConnectedEvent event)
SessionListenerconnected in interface SessionListenerconnected in class SessionAdapterevent - Data relating to the event.Copyright © 2023. All rights reserved.