SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros
InternalEvents.h File Reference
#include "CRUDP_Protocol/CRUDP_Protocol.h"
#include "EventProcessor.h"
#include <ace/INET_Addr.h>
#include <ace/Time_Value.h>
#include <QtCore/QString>
#include <QtCore/QDateTime>
Include dependency graph for InternalEvents.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Internal_EventTypes
 
class  InternalEvent
 
struct  ExpectClientRequestData
 
struct  ExpectClientResponseData
 
struct  ExpectMapClientRequestData
 
struct  ExpectMapClientResponseData
 
struct  ReloadConfigData
 
struct  GameServerStatusData
 
struct  ServiceStatusData
 The following messages are put on the global Message Bus, and published there for all subscribers to see. More...
 
struct  ClientConnectedData
 
struct  ClientDisconnectedData
 

Macros

#define ONE_WAY_MESSAGE(name)
 
#define SIMPLE_TWO_WAY_MESSAGE(name)
 A message without Request having additional data. More...
 
#define TWO_WAY_MESSAGE(name)
 A message with Request having additional data. More...
 

Macro Definition Documentation

#define ONE_WAY_MESSAGE (   name)
Value:
struct name ## Message final : public InternalEvent\
{\
name ## Data m_data;\
explicit name ## Message() : InternalEvent(Internal_EventTypes::ev ## name) {}\
name ## Message(name ## Data &&d) : InternalEvent(Internal_EventTypes::ev ## name),m_data(d) {}\
};
Definition: InternalEvents.h:18
Definition: InternalEvents.h:39
#define SIMPLE_TWO_WAY_MESSAGE (   name)
Value:
struct name ## Request final : public InternalEvent\
{\
name ## Message(int token) : InternalEvent(Internal_EventTypes::ev ## name ## Request) {session_token(token);}\
};\
struct name ## Response final : public InternalEvent\
{\
name ## Data m_data;\
name ## Response(name ## Data &&d,uint64_t token) : InternalEvent(Internal_EventTypes::ev ## name ## Response),m_data(d) {session_token(token);}\
};
Definition: InternalEvents.h:18
Definition: InternalEvents.h:39
uint64_t session_token() const
Definition: InternalEvents.h:46

A message without Request having additional data.

#define TWO_WAY_MESSAGE (   name)
Value:
struct name ## Request final : public InternalEvent\
{\
name ## RequestData m_data;\
name ## Request(name ## RequestData &&d,uint64_t token) : InternalEvent(Internal_EventTypes::ev ## name ## Request),m_data(d) {session_token(token);}\
};\
struct name ## Response final : public InternalEvent\
{\
name ## ResponseData m_data;\
name ## Response(name ## ResponseData &&d,uint64_t token) : InternalEvent(Internal_EventTypes::ev ## name ## Response),m_data(d) {session_token(token);}\
};
Definition: InternalEvents.h:18
Definition: InternalEvents.h:39
uint64_t session_token() const
Definition: InternalEvents.h:46

A message with Request having additional data.