Esempio n. 1
0
        private void MMSService()
        {
            try
            {
                //1.Post information to PS
                CommonVariables.LogTool.Log("Begin post server information to portal server " + CommonVariables.PSIP);
                string PSMsg = PostServerInfo();
                if (!string.IsNullOrEmpty(PSMsg))
                {
                    CommonVariables.LogTool.Log("Wait Start Command");
                    CommonVariables.LogTool.Log("IP:" + CommonVariables.MMSIP + "    Port:" + CommonVariables.MMSPort.ToString());

                    socketListener = new UDPSocketListener();
                    socketListener.BeginService();
                    return;
                }
                CommonVariables.LogTool.Log("Post PS Failed");
            }
            catch (Exception ex)
            {
                CommonVariables.LogTool.Log(ex.Message + ex.StackTrace);
            }
        }
Esempio n. 2
0
 public void StopMMSService()
 {
     //CommonVariables.UAInfoContorl.StopMainThread();
     socketListener.CloseListener();
     socketListener = null;
 }