From ac1d88965de3022be2f484c2f58185ae75b4fe00 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Jan 2017 00:34:25 +0300 Subject: gateway support: beginning --- protocols/Discord/src/proto.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'protocols/Discord/src/proto.h') diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index 8d0e6c24fb..b822bbf323 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -116,6 +116,18 @@ class CDiscordProto : public PROTO m_bOnline, // protocol is online m_bTerminated; // Miranda's going down + ////////////////////////////////////////////////////////////////////////////////////// + // gateway + + CMStringA m_szGateway; + HANDLE + m_hGatewayNetlibUser, // the separate netlib user handle for gateways + m_hGatewayConnection; // gateway connection + void __cdecl GatewayThread(void*); + void GatewaySend(int opCode, const char*); + + void OnReceiveGateway(NETLIBHTTPREQUEST*, AsyncHttpRequest*); + ////////////////////////////////////////////////////////////////////////////////////// // options -- cgit v1.2.3