Automatically reconnecting to listener via TCP/IP Port

P

Pete

Hi All,

I am using VB.NET and TCP/IP synchronous sockets to connect to listener
software on another machine. I was wondering if anyone could help me
understand how to automatically detect and re-establish the connection
to the workstation the listener software is running on if it goes
"down" for any reason . . .

TIA,

Pete
 
G

Guest

Pete,

I'm not a pro, but couldn't you build a timer in to check for the TCP
connection through .NET remoting?

Michael
 
T

Thomas Lutz

Perhaps the simplest thing to do would be to add a timer that "Pings"
the remote connection every few seconds and if the Ping fails then you
know that you are disconnected and can then close the existing
connection and try re-opening it until you are successful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top