← Back

ofxInsensitiveOsc

github.com/2bbb/ofxInsensitiveOsc · @2bbb
OF 0.10 Web/Networking

we don't crush when receive crazy osc packet.

6 1 Last commit 7y ago Created 10y ago

README

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)



Ross Bencina rossb@audiomulch.com Copyright (c) 2004

Authors (ofxOsc, and forked oscpack)



oF developers

Modify by



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

Special thanks



TOMOTO Yusuke

Get this addon

HTTPS
SSH