EvEmu
0.8.4
11 September 2021
|
#include "PyPacket.h"
Public Member Functions | |
PyPacket () | |
~PyPacket () | |
void | Dump (LogType type, PyVisitor &dumper) |
bool | Decode (PyRep **packet) |
PyRep * | Encode () |
PyPacket * | Clone () const |
Public Attributes | |
std::string | type_string |
MACHONETMSG_TYPE | type |
PyAddress | source |
PyAddress | dest |
uint32 | userid |
PyTuple * | payload |
PyDict * | named_payload |
PyRep * | contextKey |
Definition at line 101 of file PyPacket.h.
PyPacket::PyPacket | ( | ) |
Definition at line 62 of file PyPacket.cpp.
Referenced by Clone().
PyPacket::~PyPacket | ( | ) |
PyPacket * PyPacket::Clone | ( | ) | const |
Definition at line 79 of file PyPacket.cpp.
References PyRep::AsDict(), PyRep::AsTuple(), PyTuple::Clone(), PyDict::Clone(), dest, named_payload, payload, PyPacket(), source, type, type_string, and userid.
bool PyPacket::Decode | ( | PyRep ** | packet | ) |
Definition at line 115 of file PyPacket.cpp.
References PyObject::arguments(), PyRep::AsChecksumedStream(), PyRep::AsObject(), PyRep::AsSubStream(), PyRep::AsTuple(), AUTHENTICATION_REQ, AUTHENTICATION_RSP, CALL_REQ, CALL_RSP, codelog, PyString::content(), PyAddress::Decode(), PySubStream::decoded(), PySubStream::DecodeData(), dest, ERRORRESPONSE, IDENTIFICATION_REQ, IDENTIFICATION_RSP, PyRep::IntegerValue(), PyRep::IsChecksumedStream(), PyRep::IsObject(), PyRep::IsSubStream(), PyRep::IsTuple(), PyTuple::items, named_payload, NOTIFICATION, payload, PING_REQ, PING_RSP, PyDecRef, PySafeDecRef, RESOLVE_REQ, RESOLVE_RSP, SESSIONCHANGENOTIFICATION, SESSIONINITIALSTATENOTIFICATION, source, PyChecksumedStream::stream(), TRANSPORTCLOSED, type, PyObject::type(), type_string, PyRep::TypeString(), and userid.
Referenced by EVEClientSession::_HandlePacket(), and tcp_callback().
Definition at line 95 of file PyPacket.cpp.
References _log, dest, PyAddress::Dump(), MACHONETMSG_TYPE_NAMES, named_payload, payload, source, type, type_string, userid, PyTuple::visit(), and PyDict::visit().
Referenced by Client::_SendCallReturn(), EVECollectDispatcher::Handle_Other(), Client::SendInitialSessionStatus(), Client::SendNotification(), Client::SendSessionChange(), and tcp_callback().
PyRep * PyPacket::Encode | ( | ) |
Definition at line 240 of file PyPacket.cpp.
References contextKey, dest, PyAddress::Encode(), PyTuple::items, named_payload, payload, PyStatic, source, type, type_string, and userid.
Referenced by EVEClientSession::QueuePacket().
PyRep* PyPacket::contextKey |
Definition at line 121 of file PyPacket.h.
Referenced by Encode().
PyAddress PyPacket::dest |
Definition at line 117 of file PyPacket.h.
Referenced by Client::_SendCallReturn(), Client::_SendException(), Client::_SendPingRequest(), Client::_SendPingResponse(), Clone(), Decode(), Dump(), Encode(), EVECollectDispatcher::Handle_CallReq(), Client::Handle_CallReq(), EVECollectDispatcher::Handle_CallRsp(), EVECollectDispatcher::Handle_Notify(), EVECollectDispatcher::Handle_Other(), Client::Handle_PingReq(), Client::ProcessNet(), Client::SendInitialSessionStatus(), Client::SendNotification(), and Client::SendSessionChange().
PyDict* PyPacket::named_payload |
Definition at line 120 of file PyPacket.h.
Referenced by Client::_SendCallReturn(), Client::_SendPingRequest(), Clone(), Decode(), Dump(), Encode(), Client::SendInitialSessionStatus(), Client::SendNotification(), Client::SendSessionChange(), and ~PyPacket().
PyTuple* PyPacket::payload |
Definition at line 119 of file PyPacket.h.
Referenced by Client::_SendCallReturn(), Client::_SendException(), Client::_SendPingRequest(), Client::_SendPingResponse(), Clone(), Decode(), EVEPacketDispatcher::DispatchPacket(), Dump(), Encode(), Client::Handle_Notify(), EVECollectDispatcher::Handle_Other(), Client::SendInitialSessionStatus(), Client::SendNotification(), Client::SendSessionChange(), tcp_callback(), and ~PyPacket().
PyAddress PyPacket::source |
Definition at line 116 of file PyPacket.h.
Referenced by Client::_SendCallReturn(), Client::_SendException(), Client::_SendPingRequest(), Client::_SendPingResponse(), Clone(), Decode(), Dump(), Encode(), EVECollectDispatcher::Handle_CallReq(), Client::Handle_CallReq(), EVECollectDispatcher::Handle_CallRsp(), EVECollectDispatcher::Handle_Notify(), EVECollectDispatcher::Handle_Other(), Client::Handle_PingReq(), Client::ProcessNet(), Client::SendInitialSessionStatus(), Client::SendNotification(), and Client::SendSessionChange().
MACHONETMSG_TYPE PyPacket::type |
Definition at line 115 of file PyPacket.h.
Referenced by Client::_SendCallReturn(), Client::_SendException(), Client::_SendPingRequest(), Client::_SendPingResponse(), Clone(), Decode(), EVEPacketDispatcher::DispatchPacket(), Dump(), Encode(), EVEPacketDispatcher::Handle_Other(), Client::ProcessNet(), Client::SendInitialSessionStatus(), Client::SendNotification(), and Client::SendSessionChange().
std::string PyPacket::type_string |
Definition at line 112 of file PyPacket.h.
Referenced by Client::_SendCallReturn(), Client::_SendException(), Client::_SendPingRequest(), Client::_SendPingResponse(), Clone(), Decode(), EVEPacketDispatcher::DispatchPacket(), Dump(), Encode(), Client::SendInitialSessionStatus(), Client::SendNotification(), and Client::SendSessionChange().
uint32 PyPacket::userid |
Definition at line 118 of file PyPacket.h.
Referenced by Client::_SendCallReturn(), Client::_SendException(), Client::_SendPingRequest(), Client::_SendPingResponse(), Clone(), Decode(), Dump(), Encode(), Client::SendInitialSessionStatus(), Client::SendNotification(), and Client::SendSessionChange().