예제 #1
0
 //发送握手消息
 private void SendHandshakeMsg()
 {
     try
     {
         Handshake hk = new Handshake();
         hk.ID = ZJM;
         string strMsg = JSON.ToJson(hk);
         tch.SendToServer(1000, CommandType.joson, strMsg);
     }
     catch (Exception ex)
     {
         LOG.LogHelper.WriteLog("发送登录消息失败", ex);
     }
 }