From 4523d8845cbf2098d8b8274e5cbe976cc639c78a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 24 Aug 2020 20:50:41 +0800 Subject: [PATCH] add im_.* --- cpp/im_msgid.proto | 8 ++++++++ cpp/im_proto.proto | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 cpp/im_msgid.proto create mode 100644 cpp/im_proto.proto diff --git a/cpp/im_msgid.proto b/cpp/im_msgid.proto new file mode 100644 index 0000000..24f0f4e --- /dev/null +++ b/cpp/im_msgid.proto @@ -0,0 +1,8 @@ +package im; + +//消息id定义 +enum IMMessageId_e +{ + _IMSocketConnect = 1; + _IMSocketDisconnect = 2; +} diff --git a/cpp/im_proto.proto b/cpp/im_proto.proto new file mode 100644 index 0000000..7734b8d --- /dev/null +++ b/cpp/im_proto.proto @@ -0,0 +1,20 @@ +package im; + +//常量 +enum Constant_e +{ + MaxIMMsgId = 7; +} + +message IMSocketConnect +{ + optional bool is_websocket = 1; + optional string host = 2; + optional string url = 3; + optional string query_str = 4; +} + +message IMSocketDisconnect +{ + +}