EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
EVEPktDispatch.h
Go to the documentation of this file.
1 /*
2  ------------------------------------------------------------------------------------
3  LICENSE:
4  ------------------------------------------------------------------------------------
5  This file is part of EVEmu: EVE Online Server Emulator
6  Copyright 2006 - 2021 The EVEmu Team
7  For the latest information visit https://evemu.dev
8  ------------------------------------------------------------------------------------
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU Lesser General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13 
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License along with
19  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20  Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21  http://www.gnu.org/copyleft/lesser.txt.
22  ------------------------------------------------------------------------------------
23  Author: Zhur
24 */
25 
26 #ifndef __EVEDISPATCHERS_H_INCL__
27 #define __EVEDISPATCHERS_H_INCL__
28 
29 class PyPacket;
30 class PyRep;
31 class PyTuple;
32 class AuthenticationReq;
33 class AuthenticationRsp;
34 class PyCallStream;
35 class SessionChangeNotification;
36 class ErrorResponse;
37 
39 {
40 public:
41  bool DispatchPacket( PyPacket* packet );
42 
43 protected:
44  virtual bool Handle_AuthenticationReq( PyPacket* packet, AuthenticationReq& req );
45  virtual bool Handle_AuthenticationRsp( PyPacket* packet, AuthenticationRsp& rsp );
46 
47  virtual bool Handle_CallReq( PyPacket* packet, PyCallStream& req );
48  virtual bool Handle_CallRsp( PyPacket* packet );
49  virtual bool Handle_ErrorResponse( PyPacket* packet, ErrorResponse& error );
50 
51  virtual bool Handle_Notify( PyPacket* packet );
52  virtual bool Handle_SessionChange( PyPacket* packet, SessionChangeNotification& sessionChange );
53 
54  virtual bool Handle_PingReq( PyPacket* packet );
55  virtual bool Handle_PingRsp( PyPacket* packet );
56 
57  virtual bool Handle_Other( PyPacket* packet );
58 };
59 
60 
61 
62 
63 
64 #endif
65 
66 
Base Python wire object.
Definition: PyRep.h:66
virtual bool Handle_AuthenticationReq(PyPacket *packet, AuthenticationReq &req)
virtual bool Handle_SessionChange(PyPacket *packet, SessionChangeNotification &sessionChange)
virtual bool Handle_ErrorResponse(PyPacket *packet, ErrorResponse &error)
Python tuple.
Definition: PyRep.h:567
virtual bool Handle_AuthenticationRsp(PyPacket *packet, AuthenticationRsp &rsp)
virtual bool Handle_PingRsp(PyPacket *packet)
virtual bool Handle_Other(PyPacket *packet)
virtual bool Handle_CallRsp(PyPacket *packet)
virtual bool Handle_PingReq(PyPacket *packet)
virtual bool Handle_Notify(PyPacket *packet)
bool DispatchPacket(PyPacket *packet)
virtual bool Handle_CallReq(PyPacket *packet, PyCallStream &req)