Test() public method

Tests the server to see if the connection is valid
public Test ( ) : bool
return bool
Ejemplo n.º 1
0
        private void testNewIP(string newIP)
        {
            BBServerConnection newServer = new BBServerConnection(newIP, 3000);

            if (newServer.Test())
            {
                form.server.ip = this.ip.Text;
                Properties.Settings.Default.lastIP = form.server.ip;
            }
            else MessageBox.Show("Server is not connected. Try again later", "Change IP failed");
        }