コード例 #1
0
ファイル: Control.cs プロジェクト: CarverLab/Oyster
 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);
 }
コード例 #2
0
ファイル: Control.cs プロジェクト: CarverLab/Oyster
 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);
 }
コード例 #3
0
ファイル: Launcher.cs プロジェクト: CarverLab/Oyster
 /// <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();
 }