EvEmu
0.8.4
11 September 2021
|
#include "PyPacket.h"
Public Types | |
enum | AddrType { Node = 1, Client = 2, Broadcast = 4, Any = 8, Invalid = 'I' } |
Public Member Functions | |
PyAddress () | |
void | Dump (FILE *into, const char *pfx) const |
void | Dump (LogType type, const char *pfx) const |
bool | Decode (PyRep *&object) |
PyRep * | Encode () |
void | operator= (const PyAddress &right) |
Public Attributes | |
AddrType | type |
int64 | objectID |
int64 | callID |
std::string | service |
std::string | bcast_idtype |
Protected Member Functions | |
bool | _DecodeService (PyRep *rep) |
bool | _DecodeCallID (PyRep *rep) |
bool | _DecodeObjectID (PyRep *rep) |
Definition at line 36 of file PyPacket.h.
enum PyAddress::AddrType |
Enumerator | |
---|---|
Node | |
Client | |
Broadcast | |
Any | |
Invalid |
Definition at line 57 of file PyPacket.h.
PyAddress::PyAddress | ( | ) |
Definition at line 275 of file PyPacket.cpp.
|
protected |
Definition at line 542 of file PyPacket.cpp.
References callID, and PyRep::IntegerValue().
Referenced by Decode().
|
protected |
Definition at line 547 of file PyPacket.cpp.
References PyRep::IntegerValue(), and objectID.
Referenced by Decode().
|
protected |
Definition at line 537 of file PyPacket.cpp.
References service, and PyRep::StringContent().
Referenced by Decode().
bool PyAddress::Decode | ( | PyRep *& | object | ) |
Definition at line 332 of file PyPacket.cpp.
References _DecodeCallID(), _DecodeObjectID(), _DecodeService(), Any, PyObject::arguments(), PyRep::AsObject(), PyRep::AsTuple(), bcast_idtype, Broadcast, Client, codelog, PyRep::Dump(), PyRep::IntegerValue(), PyRep::IsObject(), PyTuple::items, Node, PyDecRef, PySafeDecRef, service, PyRep::StringContent(), type, and PyRep::TypeString().
Referenced by PyPacket::Decode().
void PyAddress::Dump | ( | FILE * | into, |
const char * | pfx | ||
) | const |
Definition at line 284 of file PyPacket.cpp.
References Any, bcast_idtype, Broadcast, callID, Invalid, Node, objectID, service, and type.
Referenced by PyPacket::Dump(), EVECollectDispatcher::Handle_CallReq(), Client::Handle_CallReq(), EVECollectDispatcher::Handle_CallRsp(), EVECollectDispatcher::Handle_Notify(), and EVECollectDispatcher::Handle_Other().
void PyAddress::Dump | ( | LogType | type, |
const char * | pfx | ||
) | const |
Definition at line 304 of file PyPacket.cpp.
References _log, Any, bcast_idtype, Broadcast, callID, Invalid, Node, objectID, service, and type.
PyRep * PyAddress::Encode | ( | ) |
Definition at line 467 of file PyPacket.cpp.
References Any, bcast_idtype, Broadcast, callID, Invalid, PyTuple::items, new_tuple(), Node, objectID, PyStatic, service, and type.
Referenced by PyPacket::Encode().
void PyAddress::operator= | ( | const PyAddress & | right | ) |
Definition at line 324 of file PyPacket.cpp.
References bcast_idtype, callID, objectID, service, and type.
std::string PyAddress::bcast_idtype |
Definition at line 93 of file PyPacket.h.
Referenced by EntityList::Broadcast(), Decode(), Dump(), Encode(), operator=(), and Client::SendNotification().
int64 PyAddress::callID |
Definition at line 90 of file PyPacket.h.
Referenced by _DecodeCallID(), Client::_SendCallReturn(), Client::_SendException(), Client::_SendPingRequest(), Client::_SendPingResponse(), Dump(), Encode(), EVECollectDispatcher::Handle_CallReq(), Client::Handle_CallReq(), EVECollectDispatcher::Handle_CallRsp(), Client::Handle_PingReq(), operator=(), Client::ProcessNet(), Client::SendInitialSessionStatus(), and Client::SendSessionChange().
int64 PyAddress::objectID |
Definition at line 89 of file PyPacket.h.
Referenced by _DecodeObjectID(), Client::_SendCallReturn(), Client::_SendException(), Client::_SendPingRequest(), Client::_SendPingResponse(), Dump(), Encode(), operator=(), Client::SendInitialSessionStatus(), Client::SendNotification(), and Client::SendSessionChange().
std::string PyAddress::service |
Definition at line 92 of file PyPacket.h.
Referenced by _DecodeService(), Client::_SendPingRequest(), EntityList::Broadcast(), Decode(), Dump(), Encode(), EVECollectDispatcher::Handle_CallReq(), Client::Handle_CallReq(), EVECollectDispatcher::Handle_CallRsp(), EVECollectDispatcher::Handle_Notify(), operator=(), and Client::SendNotification().
AddrType PyAddress::type |
Definition at line 88 of file PyPacket.h.
Referenced by Client::_SendCallReturn(), Client::_SendException(), Client::_SendPingRequest(), Client::_SendPingResponse(), EntityList::Broadcast(), Decode(), Dump(), Encode(), operator=(), Client::SendInitialSessionStatus(), Client::SendNotification(), and Client::SendSessionChange().