summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-04 00:34:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-04 00:34:25 +0300
commitac1d88965de3022be2f484c2f58185ae75b4fe00 (patch)
treece2e5ddf89bb9acf1f13a698d4d4a9e55d8a4520 /protocols/Discord/src/proto.h
parentf82e226c107565f8dac8bc327b945648377c0eba (diff)
gateway support: beginning
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r--protocols/Discord/src/proto.h12
1 files changed, 12 insertions, 0 deletions
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
@@ -117,6 +117,18 @@ class CDiscordProto : public PROTO<CDiscordProto>
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
CMOption<wchar_t*> m_wszEmail; // my own email