Skip to content
we don't crush when receive crazy osc packet.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libs/oscpack/src
src
.gitignore
LICENSE
README.md
addon_config.mk

README.md

ofxInsensitiveOsc

this ofxOscReceiver doesn't terminate when receive broken packet.

based on ofxOsc@oF0.9.2.

this addon trashes broken packets with error messages.

i think, this error handling is not best but, as better than app terminate.

(i posted PR about this problem to openFrameworks community.)

Notice

PLEASE USE AT YOUR OWN RISK.

How to use

basicly, same as ofxOsc.

add 1 future. got event as:

void setup() {
    ofAddListener(receiver.gotOscError, this, &ofApp::oscError);
    if(!receiver.setup(8888)) {
    	ofLogError() << "setup failured";
    }
}

void oscError(std::string &what) {
    ofLogWarning() << what;
}

Update History

2016/03/17 ver 0.03 release

  • change return value of setup to bool. if setup got failure then return false.

2016/03/16 ver 0.02 release

  • simplify.
  • add future: notify gotError event with error message.
  • post PR on openFrameworks#4998 without notify event. (maybe if occurs diff of API, will not merge while oF0.9.x) and, i can't get no.5000.

2016/02/26 ver 0.01 release

  • first aid.

License

MIT License.

Author (oscpack)

Authors (ofxOsc, and forked oscpack)

Modify by

  • ISHII 2bit [bufferRenaiss co., ltd.]
  • ishii[at]buffer-renaiss.com

Special thanks

You can’t perform that action at this time.