Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
openframeworks OSC addon added event dispatching functionality when the receiver gets OSC message(s).
C++ C
Branch: master
Failed to load latest commit information.
libs/oscpack/src replace v0073
src replace v0073
README.md add README
install.xml replace v0073

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();
}
Something went wrong with that request. Please try again.