示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IrcListener"/> class.
 /// </summary>
 /// <param name="network">The network.</param>
 internal IrcListener(Network network)
 {
     this.network = network;
     listener = new Thread( this.Run );
     listener.IsBackground = true;
     listener.Name = "ListenerThread";
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Protocol"/> class.
 /// </summary>
 public Protocol()
 {
     network = new Network();
     network.OnServerMessage += ProcessMessage;
 }