Home All Groups Group Topic Archive Search About

Automatically reconnecting to listener via TCP/IP Port

Author
3 Aug 2006 6:49 PM
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

Author
3 Aug 2006 10:13 PM
eSolTec, Inc. 501(c)(3)
Pete,

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

Michael

Show quoteHide quote
"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
>
>
Author
9 Aug 2006 6:45 PM
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.


Show quoteHide quote
On 3 Aug 2006 11:49:39 -0700, "Pete" <apt3***@aol.com> 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