CNMAT / OSC

OSC: Arduino and Teensy implementation of OSC encoding
cnmat.berkeley.edu/oscuino
Other
727 stars 135 forks source link

How to know if all messages in a bundle has been routed? #102

Open ghost opened 5 years ago

ghost commented 5 years ago

The usual code pattern for route bundles is like this:

OSCBundle bundle;

int size = Udp.parsePacket(); if (size > 0) { while (size--) bundle.fill(Udp.read());
if (!bundle.hasError()) { bundle.route("/path1", path1_handler); bundle.route("/path2", path2_handler); // ... } }

during development (but also in production!) would be very helpful to know if the received bundle contains messages with an address not handled.

Is there a way to know this?