ManaPlus
|
Functions | |
void | initPacketLimiter () |
void | writePacketLimits (const std::string &packetLimitsName) |
bool | limitPackets (const PacketTypeT type) |
bool | checkPackets (const PacketTypeT type) |
bool PacketLimiter::checkPackets | ( | const PacketTypeT | type | ) |
Definition at line 248 of file packetlimiter.cpp.
References CAST_SIZE, PacketLimit::cnt, PacketLimit::cntLimit, ConfigurationObject::getValueBool(), PacketLimit::lastTime, mPacketLimits, PacketType::PACKET_SIZE, serverConfig, tick_time, and PacketLimit::timeLimit.
Referenced by ActorManager::pickUpAll().
void PacketLimiter::initPacketLimiter | ( | ) |
Definition at line 48 of file packetlimiter.cpp.
References CAST_S32, CAST_SIZE, PacketLimit::cnt, PacketLimit::cntLimit, PacketLimit::lastTime, mPacketLimits, PacketType::PACKET_ATTACK, PacketType::PACKET_CHAT, PacketType::PACKET_DIRECTION, PacketType::PACKET_DROP, PacketType::PACKET_EMOTE, PacketType::PACKET_NPC_INPUT, PacketType::PACKET_NPC_NEXT, PacketType::PACKET_NPC_TALK, PacketType::PACKET_ONLINELIST, PacketType::PACKET_PICKUP, PacketType::PACKET_SIT, PacketType::PACKET_SIZE, PacketType::PACKET_STOPATTACK, PacketType::PACKET_WHISPER, Settings::serverConfigDir, settings, PacketLimit::timeLimit, and writePacketLimits().
Referenced by Client::stateConnectServer1().
bool PacketLimiter::limitPackets | ( | const PacketTypeT | type | ) |
Definition at line 288 of file packetlimiter.cpp.
References CAST_S32, CAST_SIZE, PacketLimit::cnt, PacketLimit::cntLimit, ConfigurationObject::getValueBool(), PacketLimit::lastTime, mPacketLimits, PacketType::PACKET_SIZE, serverConfig, tick_time, and PacketLimit::timeLimit.
Referenced by NpcDialog::action(), WhoIsOnline::action(), LocalPlayer::attack(), CrazyMoves::crazyMoveAe(), WhoIsOnline::download(), DropShortcut::dropFirst(), DropShortcut::dropItems(), LocalPlayer::emote(), ActorManager::heal(), LocalPlayer::imitateDirection(), ActorManager::itenplz(), LocalPlayer::pickUp(), GuildManager::requestGuildInfo(), GuildManager::slowLogic(), LocalPlayer::stopAttack(), Being::talkTo(), LocalPlayer::toggleSit(), LocalPlayer::tryMagic(), and LocalPlayer::updateSit().
void PacketLimiter::writePacketLimits | ( | const std::string & | packetLimitsName | ) |
Definition at line 227 of file packetlimiter.cpp.
References CAST_S32, mPacketLimits, PacketType::PACKET_SIZE, reportAlways, PacketLimit::timeLimit, and Catch::toString().
Referenced by initPacketLimiter().