Exemplo n.º 1
0
        void OnServerConnected(object sender, IPEndPointEventArgs e)
        {
            //IPEndPointEventArgs e_ = new 
            this.ClientIPEP = new IPEndPoint(e.IPEndPoint.Address, e.IPEndPoint.Port);


            IPEndPoint ipEndPoint = e.IPEndPoint;
            IPAddress ip = ipEndPoint.Address;
            int port = ipEndPoint.Port;
            string s = "Client connected: " + ip.ToString() + ":" + port;
            UpdateConnectedClients(s);

        }
Exemplo n.º 2
0
        void OnServerDisconnected(object sender, IPEndPointEventArgs e)
        {

        }