예제 #1
0
        private static HandleResult OnReceive(TcpClient sender, byte[] bytes)
        {
            string msg = System.Text.Encoding.Default.GetString(bytes);

            SystemCommon.ReceiveMsg(msg);
            CYQ.Data.Log.WriteLogToTxt(msg);
            return(HandleResult.Ok);
        }
예제 #2
0
 /// <summary>
 /// 初始化项目
 /// </summary>
 public static void Init()
 {
     InitSocketClient();
     GetCameraConfigInfo();
     CheckUnReceiveNotice();
     SystemCommon.AddObserver(SocketMsgCommon.ReceiveNotice);
     SystemCommon.Update(SystemCommon.LoginUnit.OrganizeId);
 }