127 #include "net/eathena/recvpackets.inc"
136 const size_t id = (*it).first;
148 const int32_t len = (*it).second;
162 const size_t id = *it;
200 const unsigned int msgId =
readWord(0);
218 "Wrong packet %u 0x%x received. Exiting.",
229 logger->
log(
"Unhandled packet: %u 0x%x", msgId, msgId);
#define reportAlways(...)
void registerFakeHandlers()
static Network * mInstance
static Network * instance()
uint16_t readWord(const int pos) const
void log(const char *const log_text,...)
void safeError(const std::string &error_text) __attribute__((noreturn))
#define FOR_EACH(type, iter, array)
bool msg(InputEvent &event)
static const unsigned int packet_lengths_size
static const unsigned int messagesSize
const NetworkRemovePacketInfos & getRemovePackets()
const NetworkInPacketInfos & getFakePackets()
NetworkInPacketInfos::const_iterator NetworkInPacketInfosIter
std::map< int32_t, int32_t > NetworkInPacketInfos
std::vector< int > NetworkRemovePacketInfos
NetworkRemovePacketInfos::const_iterator NetworkRemovePacketInfosIter
void(* PacketFuncPtr)(Net::MessageIn &msg)
std::string strprintf(const char *const format,...)