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(); } }
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(); } }