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

Public Member Functions

void addClientSocketListener (@NotNull ClientSocketListener clientSocketListener)
 
void connect (@NotNull String hostname, int port)
 
void disconnect (@NotNull String reason)
 
void removeClientSocketListener (@NotNull ClientSocketListener clientSocketListener)
 

Detailed Description

Performs most of the network-related work.

Author
Andreas Kirschbaum

Definition at line 32 of file ServerConnection.java.

Member Function Documentation

◆ addClientSocketListener()

void com.realtime.crossfire.jxclient.server.server.ServerConnection.addClientSocketListener ( @NotNull ClientSocketListener  clientSocketListener)

◆ connect()

void com.realtime.crossfire.jxclient.server.server.ServerConnection.connect ( @NotNull String  hostname,
int  port 
)

Attempts to connect the client to a server.

Parameters
hostnamethe hostname to connect to
portthe port to connect to

Implemented in com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection, com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServerConnection, and com.realtime.crossfire.jxclient.server.server.DefaultServerConnection.

Referenced by com.realtime.crossfire.jxclient.window.JXCConnection.connect().

Here is the caller graph for this function:

◆ disconnect()

void com.realtime.crossfire.jxclient.server.server.ServerConnection.disconnect ( @NotNull String  reason)

◆ removeClientSocketListener()

void com.realtime.crossfire.jxclient.server.server.ServerConnection.removeClientSocketListener ( @NotNull ClientSocketListener  clientSocketListener)

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