Esempio n. 1
0
        private void btnPing_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(tbxPing.Text.Trim()) || string.IsNullOrEmpty(tbxPort.Text.Trim()))
            {
                return;
            }
            var mex = new Evolution.Dht.Kademlia.Message(new IPEndPoint(GetHostAddresses(tbxPing.Text), int.Parse(tbxPort.Text)));

            mex.CreatePing();
            client.Send(mex, client.Me);
        }