NZBHags.NNTPConnection.NNTPConnection C# (CSharp) Method

NNTPConnection() public method

public NNTPConnection ( int id, NewsServer serverInfo, QueueHandler handler ) : System
id int
serverInfo NewsServer
handler QueueHandler
return System
        public NNTPConnection(int id, NewsServer serverInfo, QueueHandler handler)
        {
            this.id = id;
            this.serverInfo = serverInfo;
            this.handler = handler;
            keepAlive = true;
            sw = new Performance.Stopwatch();

            // Register connection in SpeedMonitor
            SpeedMonitor.Instance.RegisterConnection(this);

            ThreadStart job = new ThreadStart(Run);
            Thread thread = new Thread(job);
            thread.IsBackground = true;
            thread.Start();
        }