#include <connection.h>
Definition at line 34 of file connection.h.
◆ State
◆ ~Connection()
ManaServ::Connection::~Connection |
( |
| ) |
|
◆ Connection()
ManaServ::Connection::Connection |
( |
ENetHost * |
client | ) |
|
|
private |
◆ connect()
bool ManaServ::Connection::connect |
( |
const std::string & |
address, |
|
|
enet_uint16 |
port |
|
) |
| |
Connects to the given server with the specified address and port.
This method is non-blocking, use isConnected to check whether the server is connected.
Definition at line 45 of file connection.cpp.
◆ disconnect()
void ManaServ::Connection::disconnect |
( |
| ) |
|
Disconnects from the given server.
Definition at line 78 of file connection.cpp.
◆ getState()
State ManaServ::Connection::getState |
( |
| ) |
|
|
inline |
◆ isConnected()
bool ManaServ::Connection::isConnected |
( |
| ) |
|
Returns whether the server is connected.
Definition at line 90 of file connection.cpp.
◆ send()
◆ ManaServ::getConnection
◆ mClient
ENetHost* ManaServ::Connection::mClient |
|
private |
◆ mConnection
ENetPeer* ManaServ::Connection::mConnection = nullptr |
|
private |
◆ mPort
short ManaServ::Connection::mPort = 0 |
|
private |
◆ mState
State ManaServ::Connection::mState = OK |
|
private |
The documentation for this class was generated from the following files: