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 +{ + +}