Permalink
Browse files

add README

  • Loading branch information...
1 parent c11fd9e commit e403dd6aab561565dc5a6d036ec3c0fdfb56a98d hideyukisaito committed Jan 7, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 README.md
View
@@ -0,0 +1,23 @@
+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();
+}
+```

0 comments on commit e403dd6

Please sign in to comment.