← Back

ofxPing4Mac

github.com/asaiyuta/ofxPing4Mac · @asaiyuta
OF 0.10 Web/Networking

send a ping with mac to check the network on openframeworks

0 0 Last commit 7y ago Created 7y ago

README

ofxPing4Mac

send a ping with mac to check the network on openframeworks

usage

~~~ ofxPing4Mac pingChecker; //ofxPing4MacMulti<3> pingChecker; //process in parallel

void setup(){ pingChecker.setWaitTime(10) // on msec default 50 pingChecker.add("you check ip1"); pingChecker.add("you check ip2"); }

void update(){ if(pingChecker.getState("you check ip1")){ ofLogError() << "ip1"; } pingChecker.add("you check ip3"); pingChecker.remove("you check ip2"); //you can add and delete at any time

}

void draw(){ ofDrawBitmapStringHighlight(pingChecker.getAllStateStr(), 10, 15); }

~~~

Get this addon

HTTPS
SSH