Example #1
0
 public SocketSender(SocketMgr socketMgr, TcpClient client)
 {
     this.socketMgr = socketMgr;
     this.client    = client;
     stream         = client.GetStream();
     sendQueue      = new Queue <MsgToSend>();
     running        = true;
     if (t == null)
     {
         t = new Thread(Run);
         t.Start();
     }
 }
Example #2
0
 public SocketReceiver(SocketMgr socketMgr, TcpClient client)
 {
     this.socketMgr = socketMgr;
     this.client    = client;
     this.stream    = client.GetStream();
     recQueue       = new Queue <MsgRec>();
     running        = true;
     if (t == null)
     {
         t = new Thread(Run);
         t.Start();
     }
 }