08-10-2009 08:46 AM
Trying to reopen a TCP connection that has been closed by the client. I have seached for an example but most posts point the "Reconnect TCP Connection" example but I can't open this because it is LV 5.1.
To create the original connection on the server I use TCP Create Listener and then use TCP Wait on Listener, then on the client I use TCP Open Connection. This works fine, then on the client the user has the ability to close the connection using TCP Close Connection. I also want the ability to reopen the connection but this isn't working.
Is there a curent example of this? Or what is the process on the server to reopen a connection?
08-10-2009 08:56 AM
Hi prh1969,
if the client closes the connection, then you'll see this also on the server side. If this happens you can start you listener again. With this the client can again open a connection to your server.
Mike
08-10-2009 08:59 AM
Attached the VI. Now you can open it.
Christian
08-10-2009 09:04 AM
I have tried that and if I try to use TCP Create Listener (with the same port #) I get an Error 60 port already in use. I seen that this has to do with the connection remaining open for about a minute.... The write up for the "Reconnect TCP Connection" example sounded like there may be a solution to this, but as I stated I can't open this example.
08-10-2009 09:15 AM
So what version of LV do you use that you cannot open this example?
Tell me and I try to convert it again.
Christian
08-10-2009 09:31 AM