コード例 #1
0
ファイル: MPClient.cs プロジェクト: rockhowse/Gurkenplayer
 /// <summary>
 /// MPCLient constructor with MPThreadStopCondition as a parameter.
 /// </summary>
 /// <param name="condition">The condition to stop the ProcessMessageThread.</param>
 public MPClient(MPSharedCondition condition)
 {
     StopMessageProcessingThread = condition ?? new MPSharedCondition(false);
     ResetConfig();
     netClient = new NetClient(config);
     pts = new ParameterizedThreadStart(this.ProcessMessage);
 }
コード例 #2
0
ファイル: MPClient.cs プロジェクト: DaniGTA/Gurkenplayer
 /// <summary>
 /// MPCLient constructor with MPThreadStopCondition as a parameter.
 /// </summary>
 /// <param name="condition">The condition to stop the ProcessMessageThread.</param>
 public MPClient(MPSharedCondition condition)
 {
     StopMessageProcessingThread = condition ?? new MPSharedCondition(false);
     ResetConfig();
     netClient = new NetClient(config);
     pts       = new ParameterizedThreadStart(this.ProcessMessage);
 }
コード例 #3
0
ファイル: MPServer.cs プロジェクト: rockhowse/Gurkenplayer
 //Constructor
 /// <summary>
 /// Private Server constructor used in the singleton pattern. It initialized the config.
 /// </summary>
 public MPServer(MPSharedCondition condition)
 {
     stopProcessMessageThread = condition ?? new MPSharedCondition(false);
     ResetConfig();
     pts = new ParameterizedThreadStart(this.ProcessMessage);
     messageProcessingThread = new Thread(pts);
 }
コード例 #4
0
ファイル: MPServer.cs プロジェクト: DaniGTA/Gurkenplayer
 //Constructor
 /// <summary>
 /// Private Server constructor used in the singleton pattern. It initialized the config.
 /// </summary>
 public MPServer(MPSharedCondition condition)
 {
     stopProcessMessageThread = condition ?? new MPSharedCondition(false);
     ResetConfig();
     pts = new ParameterizedThreadStart(this.ProcessMessage);
     messageProcessingThread = new Thread(pts);
 }