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


based on the ofxOsc included in of_preRelease_v007_osx

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


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

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