Exemple #1
0
        public Client(TcpClient client)
        {
            locker = new object();
            Socket = client;
            Running = true;
            Dispatcher = new Dispatcher(this);

            Reader = new BigEndianReader(Socket.GetStream());
            Writer = new BigEndianWriter(Socket.GetStream());
            new Task(Listen).Start();
        }
Exemple #2
0
 public Client()
 {
     locker = new object();
     Socket = new TcpClient();
     Dispatcher = new Dispatcher(this);
 }