Ejemplo n.º 1
0
 public RatClients(Socket socket, int key)
 {
     _socket = socket;
     NetworkKey = key;
     _FloodProtector = new FloodProtector(2000, 1000);
     Read();
 }
Ejemplo n.º 2
0
        public FileClients(Socket socket, int key)
        {
            _socket = socket;
            NetworkKey = key;
            _FloodProtector = new FloodProtector(2000, 1000);

            //Lets send to the client first our socket info :P
            SendPacket(new S_RemoteIP(this));

            Read();
            _FileTransfer = new SortedList<short, FileTransfer>();
        }