Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
#include <server.h>
Public Member Functions | |
Server () | |
Construct a new Server object. | |
~Server () | |
Destroy the Server object. | |
void | start () |
Starts the server, blocking. | |
void | stop () |
Stops the server. | |
bool | isRunning () const |
Static Public Member Functions | |
static Server * | inst () |
Get the instance of the server. | |
Server Class.
Class that handles mainly networking and batches everything together. The server is a singleton.
Get the instance of the server.
Simple singleton implementation.
void Server::start | ( | ) |
Starts the server, blocking.
Starts the client loop, binding to the config's port and address.
void Server::stop | ( | ) |
Stops the server.
Stops the server on the next client loop (eg when a client connects).