BesterInformerClient

Represents a handler's connection to the Bester informer socket, runs as a seperate thread with a read, dispatch, write loop to handle commands and responses to the handler from the server.

Constructors

this
this(BesterServer server, Socket handlerSocket)

Constructs a new BesterInformerClient with the associated BesterServer, server, and handler socket, handlerSocket.

Members

Functions

shutdown
void shutdown()

Shutdown the informer client.

Static functions

getServerInfo
JSONValue getServerInfo(BesterServer server)

This function returns server information.

isClient
bool isClient(BesterServer server, string username)

This function returns true if the provided username matches a locally connected client, false otherwise.

listClients
string[] listClients(BesterServer server)

This functions returns string[] where each element contains the username of the locally connected client.

Meta