|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Automatically reconnecting to listener via TCP/IP PortHi 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 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 > > 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
Crazy with character encoding
MS Method Return Codes Words to Number Update control on one form from another One Click Installation Printing on a new page Detect TcpClient Connection dropped use of mouse scroll in my crystal report viewer How to change ConnectionString for DataSet at runtime? filesystemobject.createfolder error codes |
|||||||||||||||||||||||