Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Feb 23, 2019 · 0 comments
Open

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

ghost opened this issue Feb 23, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 23, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants