Esempio n. 1
0
        public Client(Socket sktClient, Wrapper.Listen listener)
        {
            this.ip = ((IPEndPoint)sktClient.RemoteEndPoint).Address;

            this.shouter = new Wrapper.Shout();
            sktClient.SendTimeout = 10000;
            sktClient.ReceiveTimeout = 10000;

            //Woo a legit client, let's add them to our list
            listener.Clients.Add(this);
        }
Esempio n. 2
0
        public Client(Socket sktClient, Wrapper.Listen listener)
        {
            this.ip = ((IPEndPoint)sktClient.RemoteEndPoint).Address;

            this.shouter             = new Wrapper.Shout();
            sktClient.SendTimeout    = 10000;
            sktClient.ReceiveTimeout = 10000;



            //Woo a legit client, let's add them to our list
            listener.Clients.Add(this);
        }