JavaServer

Undocumented in source.

Constructors

this
this(ServerInfo info, uint[] protocols, Handler handler)
Undocumented in source.
this
this(ServerInfo info, Handler handler)
Undocumented in source.

Members

Functions

acceptClients
void acceptClients(Socket _socket)

Accepts new connection and handle in a new thread.

acceptQueries
void acceptQueries(Socket _socket, Query query)

Starts an UDP socket that is only used for the external query protocol.

getPingResponse
JSONValue[string] getPingResponse(Socket client, uint protocol, string ip, ushort port)

Gets the JSON informations that the client will use to display the server in its servers list. This method can be overridden by custom implementations of the server.

handleNewClient
void handleNewClient(Socket _client)
Undocumented in source. Be warned that the author may not have intended to support it.
handleNewPlayer
void handleNewPlayer(Stream stream, Handshake handshake)

Handles a new player connection after the handshake packet with the status set to "login". At this state the socket should be blocking with the timeout set to 8 seconds.

startImpl
void startImpl(Address address, Query query)

Starts the server in a new thread.

validatePlayer
string validatePlayer(string username, Address address, uint protocol, string usedIp, ushort usedPort)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

defaultPort
ushort defaultPort [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From GenericGameServer

_protocols
immutable(uint)[] _protocols;
Undocumented in source.
handler
Handler handler;
Undocumented in source.
protocols
immutable(uint)[] protocols [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
protocols
uint[] protocols [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
onClientJoin
void onClientJoin(Client client)
Undocumented in source. Be warned that the author may not have intended to support it.
onClientLeft
void onClientLeft(Client client)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta