#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()
References CSE_Disconnect, CSE_SetClientReady, CSE_SetDenied, event(), m_clients, m_clients_mutex, and UpdatePlayerList().
Referenced by Server::acceptAuth(), Server::deletingPeer(), Server::DenyAccess(), event(), Server::handleCommand_ClientReady(), Server::handleCommand_FirstSrp(), Server::handleCommand_Init(), and Server::handleCommand_Init2().
◆ getClientIDs()
References m_clients, and m_clients_mutex.
Referenced by Server::DeleteClient(), Server::handleCommand_Init(), isUserLimitReached(), Server::kickAllPlayers(), Server::playSound(), Server::reportPrivsModified(), Server::SendAddParticleSpawner(), Server::SendBlocks(), Server::sendMetadataChanged(), Server::sendNodeChangePkt(), Server, Server::setIpBanned(), and UpdatePlayerList().
◆ 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()
References m_clients.
Referenced by Server::getClientDynamicInfo(), Server::getClientInfo(), getClientNoEx(), Server::handleCommand_DeletedBlocks(), Server::handleCommand_GotBlocks(), Server::SendBlock(), Server::SendBlocks(), Server::sendMetadataChanged(), Server::sendNodeChangePkt(), Server::StageTwoClientInit(), and UpdatePlayerList().
◆ markBlocksNotSent()
| void ClientInterface::markBlocksNotSent |
( |
const std::vector< v3s16 > & | positions, |
|
|
bool | low_priority = false ) |
◆ send()
◆ sendCustom()
◆ sendToAll()
References clientCommandFactoryTable, FATAL_ERROR_IF, NetworkPacket::getCommand(), m_clients, m_clients_mutex, m_con, and con::IConnection::Send().
Referenced by Server::DeleteClient(), Server::SendChatMessage(), Server::SendDeleteParticleSpawner(), Server::sendDetachedInventory(), Server::SendTimeOfDay(), and Server::StageTwoClientInit().
◆ setEnv()
◆ state2Name()
| const char * ClientInterface::state2Name |
( |
ClientState | state | ) |
|
|
static |
◆ step()
| void ClientInterface::step |
( |
float | dtime | ) |
|
References CS_Denied, CS_Disconnecting, CS_InitDone, con::IConnection::DisconnectPeer(), con::IConnection::GetPeerAddress(), infostream, LINGER_TIMEOUT, m_check_linger_timer, m_clients, m_clients_mutex, m_con, m_print_info_timer, Address::serializeString(), state2Name(), UpdatePlayerList(), and warningstream.
Referenced by Server::AsyncRunStep(), and Server.
◆ 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: