public Control(string ServerAddress, int Port) { log = new Logger(AppInfo.Title + Port); m_sServerAddress = ServerAddress; m_iPort = Port; m_TCPClient = new System.Net.Sockets.TcpClient(); m_EventChannelConnectionComplete = new System.Threading.ManualResetEvent(false); m_sLastError = ""; m_EventReceivedFile = new System.Threading.AutoResetEvent(false); }
public Control(string ServerAddress, int Port, ref CarverLab.Utility.Logger logger) { log = logger; m_sServerAddress = ServerAddress; m_iPort = Port; m_TCPClient = new System.Net.Sockets.TcpClient(); m_EventChannelConnectionComplete = new System.Threading.ManualResetEvent(false); m_sLastError = ""; m_EventReceivedFile = new System.Threading.AutoResetEvent(false); }
/// <summary> /// The main entry point for the application. /// </summary> public void Start() { Logger logger = new Logger(AppInfo.Title + m_iChannel); if (!System.IO.Directory.Exists(m_sWMVDirectory)) { System.IO.Directory.CreateDirectory(m_sWMVDirectory); } logger.WriteLog("Using " + m_sWMVDirectory + " to store WMV files."); m_Server = new ChannelServer(m_iChannel,m_sWMVDirectory,ref logger); m_Server.Start(); }