Method | Description | |
---|---|---|
Main ( ) : void |
Starts up the server
|
Method | Description | |
---|---|---|
HandleConnectionWithClient ( object client ) : void |
Child thread function. Handles a connection with a single client.
|
|
IsAlive ( ) : bool |
Checks the health of the server
|
|
ListenForClients ( ) : void |
Main server thread function. Accepts clients over TCP and uses ThreadPool to support multiple connections at the same time.
|
|
Log ( string message, |
Logs a message and the IP of the connected client
|
|
Log ( string message, int level ) : void |
Logs a message
|
|
Restart ( ) : void |
Restarts the server thread
|
|
Server ( int port, |
Creates a new server object that listens on the specified port
|
|
Start ( ) : int |
Starts the server thread.
|
|
Stop ( ) : void |
Stops the server thread
|
|
Timestamp ( ) : string |
Gets the current time as a string
|