| Dart Home | PowerTCP Winsock for ActiveX | Custom Development | Reply | PowerTCP Winsock for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Winsock for ActiveX Topic: Udp port stops receiving data Randomly |
| timc support@ez911solutions.com From: Fort Payne, AL USA Posts: 5 Member Since: 05/10/07 |
posted May 10, 2007 9:22 AM I am using Foxpor 9 to receive GPS data from a server. And some times it randomly stop receiving data. How can stop this from happens. Or test the conection to see that has stopped. |
| Raj From: Rome, NY, USA Posts: 389 Member Since: 02/01/06 |
posted May 10, 2007 9:36 AM Hi, Is your server multicasting/broadcasting the data? Or does the server send data to only this machine? I think if it is a GPS system, it could be broadcasting. There are no obvious reasons for the port to stop listening automatically. I hope your application uses the UDP control asynchronously. Please try our UDP Client sample and see if you can duplicate the behavior. Thanks, Raj |
| timc support@ez911solutions.com From: Fort Payne, AL USA Posts: 5 Member Since: 05/10/07 |
posted May 10, 2007 9:46 AM The server is multicasting/broadcasting the data? |
| timc support@ez911solutions.com From: Fort Payne, AL USA Posts: 5 Member Since: 05/10/07 |
posted May 10, 2007 9:56 AM How do I know if my application uses the UDP control asynchronously or not ? |
| timc support@ez911solutions.com From: Fort Payne, AL USA Posts: 5 Member Since: 05/10/07 |
posted May 10, 2007 10:00 AM If I open any form inside my software. It stops the receiving data. What could that be? |
| timc support@ez911solutions.com From: Fort Payne, AL USA Posts: 5 Member Since: 05/10/07 |
posted May 10, 2007 10:20 AM What is the best way to Stop a UDP port and then Reactivate it again ? I have been using close port then open port. |
| Raj From: Rome, NY, USA Posts: 389 Member Since: 02/01/06 |
posted May 10, 2007 10:26 AM Does you UDP client use JOIN method? If yes, your server is multicasting, otherwise broadcasting. (You may check with the server, how it sends out data). If Timeout=0, you are using Async method. And I would suggest you to use this method in your scenario. Please refer the help file section - "Quick Start: Non-Blocking Use with the UDP Control" When you say, you app stops listening, when another form is loaded. May be there is something in your code, that I am unaware of. Using the Async method (timeout=0) should help helpful. Please update me, how it goes. Thanks, Raj |
| Raj From: Rome, NY, USA Posts: 389 Member Since: 02/01/06 |
posted May 10, 2007 10:42 AM Open and Close are used for this. If you would be using the same port, try setting ReuseAddress to True. How often do you open and close the ports, if you are using the Async method, the receive event will fire whenever new packets arrive, so it is better to leave the connection open. -Raj |
| Reply | PowerTCP Winsock for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|