Crossfire JXClient, Trunk
Public Member Functions | List of all members
com.realtime.crossfire.jxclient.server.socket.ClientSocketListener Interface Reference
Inheritance diagram for com.realtime.crossfire.jxclient.server.socket.ClientSocketListener:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.server.socket.ClientSocketListener:
Collaboration graph

Public Member Functions

void connected ()
 
void connecting ()
 
void disconnected (@NotNull String reason)
 
void packetReceived (@NotNull ByteBuffer packet) throws UnknownCommandException
 
void packetSent (@NotNull ClientSocketMonitorCommand monitor)
 

Detailed Description

Interface for listeners interested in ClientSocket related events.

Author
Andreas Kirschbaum

Definition at line 33 of file ClientSocketListener.java.

Member Function Documentation

◆ 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
reasonthe 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
packetthe packet contents
Exceptions
UnknownCommandExceptionif the packet cannot be processed

◆ packetSent()

void com.realtime.crossfire.jxclient.server.socket.ClientSocketListener.packetSent ( @NotNull ClientSocketMonitorCommand  monitor)

Called whenever a packet has been sent to the Crossfire server.

Parameters
monitorthe monitor command to send to script processes

The documentation for this interface was generated from the following file: