LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP close sockets

I'm running basic UDP read and write vi's - each one having a open, read or write, and close.  The application I'm using it with reads from and writes to specific ports.  I'm getting the feeling my sockets aren't always closed when my vi's end.  Granted I'm occasionally guilty of terminating the vi before it performs the close function - is there any way I can check for sessions hanging on out there?  Is there a vi to go through and clean those up? 
Any help is appreciated Smiley Happy
0 Kudos
Message 1 of 2
(2,976 Views)

Any reason why you're aborting the VIs and not letting them end?

What makes you feel the sockets aren't closed?

Also, working with UDP means you have to make sure yourself that your packets gets to the other side. Any reason not to use TCP?

Another question - any reason not to open a connection once at the beginning and close it at the end?

And last - I don't think there is a VI for doing what you want (although I don't work with UDP). In fact, I'm not even sure LV has a say in the matter once you lost the socket. It might be a pure OS issue by then (but that's just a guess). You could try opening and closing all the ports and see if that helps.


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,970 Views)