30 #include "packets/AccountPkts.h" 
   31 #include "packets/General.h" 
   38     switch(packet->
type) {
 
   41             if (packet->
type_string != 
"macho.AuthenticationReq") {
 
   42                 sLog.Error(
"EVEPacketDispatcher",
"Received AUTHENTICATION_RSP with invalid type string '%s'", packet->
type_string.c_str());
 
   46             AuthenticationReq req;
 
   47             if (!req.Decode(packet->
payload))  {
 
   48                 sLog.Error(
"EVEPacketDispatcher",
"Failed to decode AuthenticationReq");
 
   56             if (packet->
type_string != 
"macho.AuthenticationRsp") {
 
   57                 sLog.Error(
"EVEPacketDispatcher",
"Received AUTHENTICATION_RSP with invalid type string '%s'", packet->
type_string.c_str());
 
   61             AuthenticationRsp rsp;
 
   62             if (!rsp.Decode(packet->
payload)) {
 
   63                 sLog.Error(
"EVEPacketDispatcher",
"Failed to decode AuthenticationRsp");
 
   72                 sLog.Error(
"EVEPacketDispatcher",
"Received CALL_REQ with invalid type string '%s'", packet->
type_string.c_str());
 
   78                 sLog.Error(
"EVEPacketDispatcher",
"Failed to convert packet into a call stream");
 
   87                 sLog.Error(
"EVEPacketDispatcher",
"Received CALL_RSP with invalid type string '%s'", packet->
type_string.c_str());
 
   98                 sLog.Error(
"EVEPacketDispatcher",
"Received NOTIFICATION with invalid type string '%s'", packet->
type_string.c_str());
 
  106             if (packet->
type_string != 
"macho.ErrorResponse") {
 
  107                 sLog.Error(
"EVEPacketDispatcher",
"Received ERRORRESPONSE with invalid type string '%s'", packet->
type_string.c_str());
 
  112             if (!error.Decode(packet->
payload)) {
 
  113                 sLog.Error(
"EVEPacketDispatcher",
"Failed to decode Error Response");
 
  121             if (packet->
type_string != 
"macho.SessionChangeNotification") {
 
  122                 sLog.Error(
"EVEPacketDispatcher",
"Received SESSIONCHANGENOTIFICATION with invalid type string '%s'", packet->
type_string.c_str());
 
  126             SessionChangeNotification sessionChange;
 
  127             if (!sessionChange.Decode(packet->
payload)) {
 
  128                 sLog.Error(
"EVEPacketDispatcher",
"Failed to decode session change notification");
 
  137                 sLog.Error(
"EVEPacketDispatcher",
"Received PING_REQ with invalid type string '%s'", packet->
type_string.c_str());
 
  146                 sLog.Error(
"EVEPacketDispatcher",
"Received PING_RSP with invalid type string '%s'", packet->
type_string.c_str());
 
  160     sLog.Error(
"EVEPacketDispatcher",
"Unhandled Authentication Request");
 
  165     sLog.Error(
"EVEPacketDispatcher",
"Unhandled Authentication Response");
 
  171     sLog.Error(
"EVEPacketDispatcher",
"Unhandled Call Request");
 
  176     sLog.Error(
"EVEPacketDispatcher",
"Unhandled Call Response");
 
  181     sLog.Error(
"EVEPacketDispatcher",
"Unhandled Error Response");
 
  187     sLog.Error(
"EVEPacketDispatcher",
"Unhandled Notification");
 
  192     sLog.Error(
"EVEPacketDispatcher",
"Unhandled SessionChange");
 
  198     sLog.Error(
"EVEPacketDispatcher",
"Unhandled Ping Request.");
 
  203     sLog.Error(
"EVEPacketDispatcher",
"Unhandled Ping Response.");
 
virtual bool Handle_AuthenticationReq(PyPacket *packet, AuthenticationReq &req)
 
virtual bool Handle_SessionChange(PyPacket *packet, SessionChangeNotification &sessionChange)
 
virtual bool Handle_ErrorResponse(PyPacket *packet, ErrorResponse &error)
 
#define sLog
Evaluates to a NewLog instance. 
 
virtual bool Handle_AuthenticationRsp(PyPacket *packet, AuthenticationRsp &rsp)
 
const char * MACHONETMSG_TYPE_NAMES[MACHONETMSG_TYPE_COUNT]
 
virtual bool Handle_PingRsp(PyPacket *packet)
 
virtual bool Handle_Other(PyPacket *packet)
 
virtual bool Handle_CallRsp(PyPacket *packet)
 
bool Decode(const std::string &type, PyTuple *&payload)
 
virtual bool Handle_PingReq(PyPacket *packet)
 
virtual bool Handle_Notify(PyPacket *packet)
 
bool DispatchPacket(PyPacket *packet)
 
virtual bool Handle_CallReq(PyPacket *packet, PyCallStream &req)