示例#1
0
 /// <summary>
 /// Start monitor channel
 /// </summary>
 /// <param name="param">Monitor param</param>
 public void StartMon(NETMON_PARAM param)
 {
     SubDebug(string.Format("Call NMonCore StartMon"));
     if (mIsConnectServer)
     {
         mConnector.StartMon(param);
     }
 }
示例#2
0
        private int mBlockSize;                     //For each voice format,receive size per time not equal.

        public NMonConnector()
        {
            mConnected   = false;
            mInit        = true;
            mReceiveHead = true;
            //mBlockSize = 325;
            mNetMonParam      = new NETMON_PARAM();
            mNetMonParam.Host = string.Empty;
            mNetMonParam.Port = NMonDefines.CONNECTOR_SERVERPORT;
        }
示例#3
0
 public bool StartMon(NETMON_PARAM param)
 {
     SubDebug(string.Format("Call NMonConnector StartMon,host:{0}:{1}\tchannel:{2}.", param.Host, param.Port, param.Channel));
     mNetMonParam = param;
     if (mReceiveThread == null)
     {
         mReceiveThread = new Thread(Worker);
         mReceiveThread.Start();
         SubDebug(string.Format("Receive Thread Start,Thread ID:{0}.", mReceiveThread.ManagedThreadId));
     }
     return(true);
 }