Socket

  • Thread starter Thread starter Marten Van Keer
  • Start date Start date
M

Marten Van Keer

Hi;

I have an application that connects with a server by using .NET sockets.
When the server goes down my application still wants to connect with the
server and crashes.

What is the best way to check the server is alive ?
I have tried objMySocket.Connected but this always returns True even when
the Server goes down when the application is runnning.


Any Idea ?
M.
 
* "Marten Van Keer said:
I have an application that connects with a server by using .NET sockets.
When the server goes down my application still wants to connect with the
server and crashes.

What is the best way to check the server is alive ?
I have tried objMySocket.Connected but this always returns True even when
the Server goes down when the application is runnning.

Why not implement an exception handler?

\\\
Try
...
Catch ...
...
End Try
///
 
Back
Top