Skip to content

Conversation

@2bbb
Copy link
Contributor

@2bbb 2bbb commented Jul 21, 2023

for example:

let's setup 2 receiver with

        receiver1.setup(26666, "localhost"); // same to receiver1.setup(26666, "127.0.0.1");
        receiver2.setup(26666, "192.168.2.105");

then we can receive message on same port with different receivers like:

        while(receiver1.hasWaitingMessages()) {
            ofxOscMessage m;
            receiver1.getNextMessage(m);
            ofLogNotice("receiver1") << m;
        }
        
        while(receiver2.hasWaitingMessages()) {
            ofxOscMessage m;
            receiver2.getNextMessage(m);
            ofLogNotice("receiver2") << m;
        }

I think this feature is helpful to make secure on large systems and complex network structures.
and this update is compatible simple setup with only given port.

@ofTheo
Copy link
Member

ofTheo commented Jul 21, 2023

looks good to me! :)

@ofTheo ofTheo merged commit 4b5632a into openframeworks:master Jul 21, 2023
danoli3 added a commit to danoli3/openFrameworks that referenced this pull request Aug 21, 2023
…fixes

* commit '11cdc79a94d3a795020ca7a26b082b95e5989a29':
  macOS GLFW - no shadow when fullscreen (openframeworks#7605)
  initGrabber -> setup (openframeworks#7604)
  Emscripten player update (openframeworks#7561)
  Improve ofGetEnv with default value. (openframeworks#7587)
  fix: ofLogError message typo (openframeworks#7599)
  Osc swap (openframeworks#7600)
  ofParameter: reinit mechanism: use setMethod() instead of set()  (openframeworks#7564)
  add of.entitlements to Examples/.gitignore (openframeworks#7583)
  bundle identifier fix (rfc1034 to allow spaces in names) (openframeworks#7597)
  WIP - more .h cleanup (openframeworks#7596)
  update pg submodule PG v.17 (openframeworks#7580)
  bugfix random_shuffle is removed in C++17 - replace with std::shuffle (openframeworks#7575)
  add setup argument to listen on specific ip (openframeworks#7574)
  Ubuntu : add make to packages to install (openframeworks#7571)
  projectGenerator update (openframeworks#7567)
  loadModel -> load (openframeworks#7566)

# Conflicts:
#	libs/openFrameworks/utils/ofXml.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants