|
Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
#include <client.h>
Public Member Functions | |
| Client (const ClientSocket &sock) | |
| Construct a new Client object. | |
| ~Client () | |
| Destroy the Client object. | |
| void | start () |
| Starts the client, blocking. | |
| void | close (const std::string &reason="") |
| Stops the client. | |
Client class.
Class that wraps around a socket and does all of the client handling.
| Client::Client | ( | const ClientSocket & | sock | ) |
Construct a new Client object.
Wraps around a client socket to handle it.
| sock | the socket to wrap around |
Stops the client.
Tells the client to exit on the next packet loop. Also, if in ClientState::LOGIN or ClientState::PLAY, sends a disconnect packet.
| reason | the reason for closing the connection |