A
Axel Stallknecht
Hi folks,
here is my (simple) code :
try
{
TcpClient tcpclnt = new TcpClient();
tcpclnt.Connect(IPAddress.Parse(ipAddress), intPort);
}
catch(SystemException e)
{
MessageBox.Show("Error : "+e.Message.ToString());
return false;
}
If it's not possible to connect to the specified IPAddress,
the connect needs between 45-60 seconds to get an exception.
Is there a possbility to have a shorter timeout, maybe with a
SocketOption, without use of a timer ?
cu
Axel
here is my (simple) code :
try
{
TcpClient tcpclnt = new TcpClient();
tcpclnt.Connect(IPAddress.Parse(ipAddress), intPort);
}
catch(SystemException e)
{
MessageBox.Show("Error : "+e.Message.ToString());
return false;
}
If it's not possible to connect to the specified IPAddress,
the connect needs between 45-60 seconds to get an exception.
Is there a possbility to have a shorter timeout, maybe with a
SocketOption, without use of a timer ?
cu
Axel