Esempio n. 1
0
        public Client(Socket socket, byte connectionId)
        {
            this.reliableSocket = socket;
            this.connectionId   = connectionId;

            this.remoteEndPoint = (IPEndPoint)this.reliableSocket.RemoteEndPoint;

            ReceiveTCP = new ReceivePacket(this.reliableSocket, this, this.connectionId);

            aliveWatch = new Stopwatch();
            aliveWatch.Start();
            lastAlive = aliveWatch.ElapsedMilliseconds;

            ReceiveTCP.StartReceiving();
        }