2 #include "../../DCS_Utils/include/DCS_ModuleUtils.h" 3 #include "../../DCS_Core/include/DCS_ModuleCore.h" 5 #include "../config/registry.h" 7 #define _WINSOCK_DEPRECATED_NO_WARNINGS 29 #define _GET_F_NAME() __FUNCTION__ 34 #define GET_F_NAME() _GET_F_NAME() 41 #define DCS_EMIT_NAMED_EVT(name, data, size) DCS::Network::Message::EmitEvent(name, data, size) 48 #define DCS_EMIT_EVT(data, size) DCS::Network::Message::EmitEvent(DCS::Registry::GetEvent(GET_F_NAME()), data, size) 63 inline static bool is_inited =
false;
146 #define MESSAGE_XTRA_SPACE 9 147 #pragma pack(push, 1) 161 extern std::mutex message_m;
162 extern std::condition_variable lsync;
221 DCS_INTERNAL_TEST void SetCopyId(DefaultMessage &msg, u8 opcode, u64
id, u8 *data);
SYNC_REQUEST
Request a synchronous function call to the server, waiting for the result.
Definition: internal.h:172
SYNC_RESPONSE
Send back a sync response to the client.
Definition: internal.h:174
CON_VALID
Server connection validity message.
Definition: internal.h:178
NO_OP
Ping the server only.
Definition: internal.h:171
Definition: internal.h:152
EVT_SUB
Subscribe to a server-side event.
Definition: internal.h:176
signed long i32
Equivalent to int_32t.
Definition: DCS_ModuleUtils.h:53
EVT_UNSUB
Unsubscribe from a previously subscribed event.
Definition: internal.h:178
Exposes Network functionalities of the API to the end user.
ASYNC_REQUEST
Request an asynchronous function call to the server.
Definition: internal.h:173
Definition: registry.h:70
ASYNC_RESPONSE
Send back an async response to the client.
Definition: internal.h:175
#define DCS_INTERNAL_TEST
Defines the export interface acessible via the dll-interface applicable for internal functions only...
Definition: exports.h:137
EVT_RESPONSE
Send event response to the client.
Definition: internal.h:177
unsigned long long u64
Equivalent to uint_64t.
Definition: DCS_ModuleUtils.h:52
unsigned char u8
Equivalent to uint_8t.
Definition: DCS_ModuleUtils.h:58
signed long long i64
Equivalent to int_64t.
Definition: DCS_ModuleUtils.h:51
OP_ERROR
Send an error to the client/server.
Definition: internal.h:178