#include <clientiface.h>
◆ ClientInterface()
| ClientInterface::ClientInterface |
( |
const std::shared_ptr< con::IConnection > & | con | ) |
|
◆ ~ClientInterface()
| ClientInterface::~ClientInterface |
( |
| ) |
|
◆ CreateClient()
| void ClientInterface::CreateClient |
( |
session_t | peer_id | ) |
|
◆ DeleteClient()
| void ClientInterface::DeleteClient |
( |
session_t | peer_id | ) |
|
◆ event()
◆ getClientIDs()
◆ getClientList()
◆ getClientNoEx()
◆ getClientState()
◆ getPlayerNames()
| const std::vector< std::string > & ClientInterface::getPlayerNames |
( |
| ) |
const |
|
inline |
◆ getProtocolVersion()
| u16 ClientInterface::getProtocolVersion |
( |
session_t | peer_id | ) |
|
◆ isUserLimitReached()
| bool ClientInterface::isUserLimitReached |
( |
| ) |
|
◆ lockedGetClientNoEx()
◆ markBlocksNotSent()
| void ClientInterface::markBlocksNotSent |
( |
const std::vector< v3s16 > & | positions, |
|
|
bool | low_priority = false ) |
◆ send()
◆ sendCustom()
◆ sendToAll()
◆ setEnv()
◆ state2Name()
| const char * ClientInterface::state2Name |
( |
ClientState | state | ) |
|
|
static |
◆ step()
| void ClientInterface::step |
( |
float | dtime | ) |
|
References CS_Denied, CS_Disconnecting, CS_InitDone, infostream, LINGER_TIMEOUT, m_check_linger_timer, m_clients, m_clients_mutex, m_con, m_print_info_timer, Address::serializeString(), state2Name(), UpdatePlayerList(), and warningstream.
◆ UpdatePlayerList()
| void ClientInterface::UpdatePlayerList |
( |
| ) |
|
|
private |
◆ Server
◆ LINGER_TIMEOUT
| int ClientInterface::LINGER_TIMEOUT = 12 |
|
staticconstexprprivate |
◆ m_check_linger_timer
| float ClientInterface::m_check_linger_timer = 0 |
|
private |
◆ m_clients
Referenced by ~ClientInterface(), CreateClient(), DeleteClient(), event(), getClientIDs(), getClientList(), getClientState(), getProtocolVersion(), lockedGetClientNoEx(), markBlocksNotSent(), sendToAll(), and step().
◆ m_clients_mutex
| std::recursive_mutex ClientInterface::m_clients_mutex |
|
private |
Referenced by ClientInterface::AutoLock::AutoLock(), ~ClientInterface(), CreateClient(), DeleteClient(), event(), getClientIDs(), getClientNoEx(), getClientState(), getProtocolVersion(), markBlocksNotSent(), sendToAll(), step(), and UpdatePlayerList().
◆ m_clients_names
| std::vector<std::string> ClientInterface::m_clients_names |
|
private |
◆ m_con
◆ m_env
◆ m_print_info_timer
| float ClientInterface::m_print_info_timer = 0 |
|
private |
◆ statenames
| const char * ClientInterface::statenames |
|
staticprivate |
Initial value: = {
"Invalid",
"Disconnecting",
"Denied",
"Created",
"HelloSent",
"AwaitingInit2",
"InitDone",
"DefinitionsSent",
"Active",
"SudoMode",
}
Referenced by state2Name().
The documentation for this class was generated from the following files: