LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Listening to 2 UDP sockets at the same time

I would like to know if it is possible to listen to two different UDP sockets at the same time without loss of any packets? If so, will the data be buffered ? How do we limit the buffer size on a Windows XP host?
0 Kudos
Message 1 of 4
(2,909 Views)
gprassad,

You can use two parallel UDP Read functions working in a loop. Set a timeout to low value and clear the timeout error if it occures. Data transferred by UDP protocol is buffered by operating system and the user has no direct way to change it in LabVIEW.

Arkadiusz Roszczewski
National Instruments
Message 2 of 4
(2,909 Views)
I use the method mentioned above--it works just fine for receiving multiple incoming messages on more than one port.
0 Kudos
Message 3 of 4
(2,909 Views)
Thanks, Your reply was very helpful.
0 Kudos
Message 4 of 4
(2,909 Views)