By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,375 Members | 1,095 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,375 IT Pros & Developers. It's quick & easy.

Automatically reconnecting to listener via TCP/IP Port

P: n/a
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

Aug 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Pete,

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

Michael

"Pete" wrote:
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

Aug 3 '06 #2

P: n/a
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.
On 3 Aug 2006 11:49:39 -0700, "Pete" <ap*****@aol.comwrote:
>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
Aug 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.