Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.server.server.ServerConnection Interface Reference

Performs most of the network-related work. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.server.server.ServerConnection:
+ Collaboration diagram for com.realtime.crossfire.jxclient.server.server.ServerConnection:

Public Member Functions

void addClientSocketListener (@NotNull ClientSocketListener clientSocketListener)
 Adds a ClientSocketListener to notify. More...
 
void connect (@NotNull String hostname, int port)
 Attempts to connect the client to a server. More...
 
void disconnect (@NotNull String reason)
 Disconnects from the server. More...
 
void removeClientSocketListener (@NotNull ClientSocketListener clientSocketListener)
 Removes a ClientSocketListener to notify. More...
 

Detailed Description

Performs most of the network-related work.

Author
Andreas Kirschbaum

Definition at line 31 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: