コード例 #1
0
ファイル: Client.cs プロジェクト: Rawwar13/YAMS
        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);
        }
コード例 #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);
        }