- 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.