Interface for listeners interested in ClientSocket related events.
- Author
- Andreas Kirschbaum
Definition at line 33 of file ClientSocketListener.java.
◆ connected()
void com.realtime.crossfire.jxclient.server.socket.ClientSocketListener.connected |
( |
| ) |
|
Called after a connection to a Crossfire server has been established.
◆ connecting()
void com.realtime.crossfire.jxclient.server.socket.ClientSocketListener.connecting |
( |
| ) |
|
Called when connecting to a Crossfire server.
◆ disconnected()
void com.realtime.crossfire.jxclient.server.socket.ClientSocketListener.disconnected |
( |
@NotNull String |
reason | ) |
|
Called after the connection has been closed.
- Parameters
-
reason | the disconnect reason |
◆ packetReceived()
void com.realtime.crossfire.jxclient.server.socket.ClientSocketListener.packetReceived |
( |
@NotNull ByteBuffer |
packet | ) |
throws UnknownCommandException |
Called whenever a packet is received from the Crossfire server.
- Parameters
-
packet | the packet contents |
- Exceptions
-
◆ packetSent()
Called whenever a packet has been sent to the Crossfire server.
- Parameters
-
monitor | the monitor command to send to script processes |
The documentation for this interface was generated from the following file: