/// <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); } }
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; }
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); }