Hi,

I am trying to use cxxtools::net::UdpReceiver on Raspberry PI to receive 
messages. I am currently doing this in a loop that should not be 
interrupted. It works, but too slowly.

Right now I am calling poll() on the UdpReceiver object with a zero 
timeout value, it throws an exception when there is no data. This takes 
too long, it seems.

Is there another way I can check for incoming messages that are not so 
expensive? Or alternatively, is there a way I can be notified (kind of 
event) that a message has arrived?

In short what i am trying to do is sending commands from a PC over the 
net to the Raspberry PI, which is running a pair of stepper motors.

Thanks in advance.

Best regards
Carsten Arnholm


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to