Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 23 lines (19 sloc) 0.593 kb
e403dd6a » hideyukisaito
2012-01-07 add README
1 hideyukisaito/ofxOsc
2 ====================
3 based on the ofxOsc included in of_preRelease_v007_osx
4
5 changes:
6 ofxOscReceiver dispatches ofEvent "onMessageReceived" with ofxOscMessage as ofEventArgs on received new message.
7 So we can get ofxOscMessage without using receiver.hasWaitingMessages\(\).
8
9 i.e.
10
11 ```
12 void testApp::setup()
13 {
14 receiver.setup(10000);
15 ofAddListener(receiver.onMessageReceived, this, &testApp::onMessageReceived);
16 }
17
18 void testApp::onMessageReceived(ofxOscMessage &msg)
19 {
20 string addr = msg.getAddress();
21 string message = msg.getArgAsString();
22 }
23 ```
Something went wrong with that request. Please try again.