private connection_status;
private IPAddress ip_address;
private TcpClient tcp_server;
ip_address = IPAddress.Parse (TextBox1.Text);
tcp_server = new TcpClient();
tcp_server.Connect(ip_address, port number);
connection_status = true;
if (connection_status)
{
Response.Write("connected");
}
else
{
Response.Write ("Not connected");
}
No comments:
Post a Comment