| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 | 
							
- # --- test 2008 存活请求 ---
 
- 服务器地址/端口:58.34.94.178/20917
 
- # --- 请求 ---
 
- 无
 
- # --- 返回 ---
 
- 无
 
- # --- test 2000 舱端登录认证 ---
 
- 服务器地址/端口:58.34.94.178/20917
 
- # --- 请求 ---
 
- 消息头:CS_Sign 2000
 
- 消息体:
 
- message CSSign
 
- {
 
-     string account=1;
 
-     string password=2;
 
- };
 
- # --- 返回 ---
 
- 消息头:SC_Sign 4000
 
- 消息体:
 
- message SCSign
 
- {
 
-     bool  ret=1;
 
-     int32 uid=2;
 
-     int32 cid=3;
 
-     string name=4;
 
- };
 
- # --- test 2009 车端上线 ---
 
- 服务器地址/端口:58.34.94.178/20917
 
- # --- 请求 ---
 
- 消息头:CS_Add 2009
 
- 消息体:
 
- message CSAdd
 
- {
 
-     string serial=1;
 
-     int32  type=2;
 
-     string name=3;
 
- };
 
- # --- 返回1 ---
 
- 消息头:SC_NotifyAdd 4016
 
- 消息体:
 
- message Robot
 
- {
 
-     enum RobotState
 
-     {
 
-         Offline=0;
 
-         Online=1;
 
-         Busy=2;
 
-     };
 
-     int32 rid=1;
 
-     string name=2;
 
-     int32  type=3;
 
-     RobotState state=4;
 
- };
 
- message SCAddRobot
 
- {
 
-    Robot robot=1;
 
- };
 
- # --- 返回2 ---
 
- 消息头:SC_Add 4007
 
- 消息体:
 
- message SCAdd
 
- {
 
-     bool  ret=1;
 
-     int32 uid=2;
 
-     int32 cid=3;
 
-     string name=4;
 
- };
 
- # --- test 2004 offer ---
 
- 服务器地址/端口:58.34.94.178/20917
 
- # --- 请求 ---
 
- 消息头:CS_Offer 2004
 
- 消息体:
 
- message Offer
 
- {
 
-     int32 index=1;
 
-     int32 peer=2;
 
-     string type=3;
 
-     string sdp=4;
 
- };
 
- # --- 返回 ---
 
- 消息头:SC_NotifyOffer 4012
 
- 消息体:
 
- message Offer
 
- {
 
-     int32 index=1;
 
-     int32 peer=2;
 
-     string type=3;
 
-     string sdp=4;
 
- };
 
- # --- test 2005 answer ---
 
- 服务器地址/端口:58.34.94.178/20917
 
- # --- 请求 ---
 
- 消息头:CS_Answer 2005
 
- 消息体:
 
- message Answer
 
- {
 
-     int32 index=1;
 
-     int32 peer=2;
 
-     string type=3;
 
-     string sdp=4;
 
- };
 
- # --- 返回 ---
 
- 消息头:SC_NotifyAnswer 4011
 
- 消息体:
 
- message Answer
 
- {
 
-     int32 index=1;
 
-     int32 peer=2;
 
-     string type=3;
 
-     string sdp=4;
 
- };
 
- # --- test 2006 candidate ---
 
- 服务器地址/端口:58.34.94.178/20917
 
- # --- 请求 ---
 
- 消息头:CS_Candidate 2006
 
- 消息体:
 
- message Candidate
 
- {
 
-     int32 index=1;
 
-     int32 peer=2;
 
-     string type=3;
 
-     string candidate=4;
 
-     int32 sdpMLineIndex =5;
 
-     string sdpMid =6;
 
-     int32 egotype=7;
 
- };
 
- # --- 返回 ---
 
- 消息头:SC_NotifyCandidate 4013
 
- 消息体:
 
- message Candidate
 
- {
 
-     int32 index=1;
 
-     int32 peer=2;
 
-     string type=3;
 
-     string candidate=4;
 
-     int32 sdpMLineIndex =5;
 
-     string sdpMid =6;
 
-     int32 egotype=7;
 
- };
 
 
  |