openframeworks OSC addon added event dispatching functionality when the receiver gets OSC message(s).
C++ C
Latest commit 6e69e0d Mar 11, 2013 @hideyukisaito replace v0073
Permalink
Failed to load latest commit information.
libs/oscpack/src replace v0073 Mar 11, 2013
src replace v0073 Mar 11, 2013
README.md add README Jan 7, 2012
install.xml replace v0073 Mar 11, 2013

README.md

hideyukisaito/ofxOsc

based on the ofxOsc included in of_preRelease_v007_osx

changes:
ofxOscReceiver dispatches ofEvent "onMessageReceived" with ofxOscMessage as ofEventArgs on received new message.
So we can get ofxOscMessage without using receiver.hasWaitingMessages().

i.e.

void testApp::setup()
{
    receiver.setup(10000);
    ofAddListener(receiver.onMessageReceived, this, &testApp::onMessageReceived);
}

void testApp::onMessageReceived(ofxOscMessage &msg)
{
    string addr = msg.getAddress();
    string message = msg.getArgAsString();
}