#include <clientiface.h>
◆ RemoteClient()
RemoteClient::RemoteClient |
( |
| ) |
|
◆ ~RemoteClient()
RemoteClient::~RemoteClient |
( |
| ) |
|
|
default |
◆ confirmSerializationVersion()
void RemoteClient::confirmSerializationVersion |
( |
| ) |
|
|
inline |
◆ getAddress()
const Address& RemoteClient::getAddress |
( |
| ) |
const |
|
inline |
◆ getFullVer()
const std::string& RemoteClient::getFullVer |
( |
| ) |
const |
|
inline |
◆ getLangCode()
const std::string& RemoteClient::getLangCode |
( |
| ) |
const |
|
inline |
◆ getMajor()
u8 RemoteClient::getMajor |
( |
| ) |
const |
|
inline |
◆ getMinor()
u8 RemoteClient::getMinor |
( |
| ) |
const |
|
inline |
◆ getName()
std::string RemoteClient::getName |
( |
| ) |
const |
|
inline |
◆ GetNextBlocks()
References adjustDist(), BLOCK_SEND_DISABLE_LIMITS_MAX_D, blockpos_over_max_limit(), BS, EmergeManager::enqueueBlockEmerge(), floatToInt(), getAttachedObject(), ServerActiveObject::getBasePosition(), Map::getBlockNoCreateNoEx(), MapBlock::getDayNightDiff(), PlayerSAO::getEyePosition(), FacePositionCache::getFacePositions(), PlayerSAO::getFov(), MapBlock::getIsUnderground(), PlayerSAO::getLookPitch(), ServerEnvironment::getMap(), getNodeBlockPos(), ServerEnvironment::getPlayer(), RemotePlayer::getPlayerSAO(), UnitSAO::getRotation(), Player::getSpeed(), LuaEntitySAO::getVelocity(), PlayerSAO::getWantedRange(), PlayerSAO::getZoomFOV(), isBlockInSight(), Map::isBlockOccluded(), MapBlock::isDummy(), MapBlock::isGenerated(), LIMITED_MAX_SIMULTANEOUS_BLOCK_SENDS, m_block_optimize_distance, m_blocks_modified, m_blocks_sending, m_blocks_sent, m_last_camera_dir, m_last_center, m_max_gen_distance, m_max_send_distance, m_max_simul_sends, m_min_time_from_building, m_nearest_unsent_d, m_nothing_to_send_pause_timer, m_occ_cull, m_time_from_building, MAP_BLOCKSIZE, p(), peer_id, rangelim, and MapBlock::resetUsageTimer().
◆ getPatch()
u8 RemoteClient::getPatch |
( |
| ) |
const |
|
inline |
◆ getSendingCount()
u32 RemoteClient::getSendingCount |
( |
| ) |
const |
|
inline |
◆ getState()
◆ GotBlock()
void RemoteClient::GotBlock |
( |
v3s16 |
p | ) |
|
◆ isBlockSent()
bool RemoteClient::isBlockSent |
( |
v3s16 |
p | ) |
const |
|
inline |
◆ isMechAllowed()
◆ isSudoMechAllowed()
◆ notifyEvent()
References auth_data, AUTH_MECHANISM_LEGACY_PASSWORD, AUTH_MECHANISM_NONE, AUTH_MECHANISM_SRP, chosen_mech, confirmSerializationVersion(), CS_Active, CS_AwaitingInit2, CS_Created, CS_DefinitionsSent, CS_Denied, CS_Disconnecting, CS_HelloSent, CS_InitDone, CS_Invalid, CS_SudoMode, CSE_AuthAccept, CSE_Disconnect, CSE_GotInit2, CSE_Hello, CSE_SetClientReady, CSE_SetDefinitionsSent, CSE_SetDenied, CSE_SudoLeave, CSE_SudoSuccess, m_state, and srp_verifier_delete().
◆ PrintInfo()
void RemoteClient::PrintInfo |
( |
std::ostream & |
o | ) |
|
|
inline |
◆ ResendBlockIfOnWire()
void RemoteClient::ResendBlockIfOnWire |
( |
v3s16 |
p | ) |
|
tell client about this block being modified right now.
this information is required to requeue the block in case it's "on wire" while modification is processed by server
- Parameters
-
p | position of modified block |
References m_blocks_sending, p(), and SetBlockNotSent().
◆ SentBlock()
void RemoteClient::SentBlock |
( |
v3s16 |
p | ) |
|
◆ SetBlockNotSent()
void RemoteClient::SetBlockNotSent |
( |
v3s16 |
p | ) |
|
◆ SetBlocksNotSent()
void RemoteClient::SetBlocksNotSent |
( |
std::map< v3s16, MapBlock * > & |
blocks | ) |
|
◆ setCachedAddress()
void RemoteClient::setCachedAddress |
( |
const Address & |
addr | ) |
|
|
inline |
◆ setDeployedCompressionMode()
void RemoteClient::setDeployedCompressionMode |
( |
u16 |
byteFlag | ) |
|
|
inline |
◆ setLangCode()
void RemoteClient::setLangCode |
( |
const std::string & |
code | ) |
|
|
inline |
◆ setName()
void RemoteClient::setName |
( |
const std::string & |
name | ) |
|
|
inline |
◆ setPendingSerializationVersion()
void RemoteClient::setPendingSerializationVersion |
( |
u8 |
version | ) |
|
|
inline |
◆ setVersionInfo()
void RemoteClient::setVersionInfo |
( |
u8 |
major, |
|
|
u8 |
minor, |
|
|
u8 |
patch, |
|
|
const std::string & |
full |
|
) |
| |
|
inline |
◆ uptime()
u64 RemoteClient::uptime |
( |
| ) |
const |
◆ allowed_auth_mechs
u32 RemoteClient::allowed_auth_mechs = 0 |
◆ allowed_sudo_mechs
u32 RemoteClient::allowed_sudo_mechs = 0 |
◆ auth_data
void* RemoteClient::auth_data = nullptr |
◆ chosen_mech
◆ create_player_on_auth_success
bool RemoteClient::create_player_on_auth_success = false |
◆ enc_pwd
std::string RemoteClient::enc_pwd = "" |
◆ m_addr
◆ m_block_optimize_distance
const s16 RemoteClient::m_block_optimize_distance |
|
private |
◆ m_blocks_modified
std::set<v3s16> RemoteClient::m_blocks_modified |
|
private |
◆ m_blocks_sending
std::map<v3s16, float> RemoteClient::m_blocks_sending |
|
private |
◆ m_blocks_sent
std::set<v3s16> RemoteClient::m_blocks_sent |
|
private |
◆ m_connection_time
◆ m_deployed_compression
u16 RemoteClient::m_deployed_compression = 0 |
|
private |
◆ m_excess_gotblocks
u32 RemoteClient::m_excess_gotblocks = 0 |
|
private |
◆ m_full_version
std::string RemoteClient::m_full_version = "unknown" |
|
private |
◆ m_known_objects
std::set<u16> RemoteClient::m_known_objects |
◆ m_lang_code
std::string RemoteClient::m_lang_code |
|
private |
◆ m_last_camera_dir
v3f RemoteClient::m_last_camera_dir |
|
private |
◆ m_last_center
v3s16 RemoteClient::m_last_center |
|
private |
◆ m_max_gen_distance
const s16 RemoteClient::m_max_gen_distance |
|
private |
◆ m_max_send_distance
const s16 RemoteClient::m_max_send_distance |
|
private |
◆ m_max_simul_sends
const u16 RemoteClient::m_max_simul_sends |
|
private |
◆ m_min_time_from_building
const float RemoteClient::m_min_time_from_building |
|
private |
◆ m_name
std::string RemoteClient::m_name = "" |
|
private |
◆ m_nearest_unsent_d
s16 RemoteClient::m_nearest_unsent_d = 0 |
|
private |
◆ m_nothing_to_send_pause_timer
float RemoteClient::m_nothing_to_send_pause_timer = 0.0f |
|
private |
◆ m_occ_cull
const bool RemoteClient::m_occ_cull |
|
private |
◆ m_pending_serialization_version
◆ m_state
◆ m_time_from_building
float RemoteClient::m_time_from_building = 9999 |
◆ m_version_major
u8 RemoteClient::m_version_major = 0 |
|
private |
◆ m_version_minor
u8 RemoteClient::m_version_minor = 0 |
|
private |
◆ m_version_patch
u8 RemoteClient::m_version_patch = 0 |
|
private |
◆ net_proto_version
u16 RemoteClient::net_proto_version = 0 |
◆ peer_id
◆ serialization_version
The documentation for this class was generated from the following files: