// #include "SyphonSource.h" // // void SyphonSource::setup(){ // // Give our source a decent name // name = "Syphon Source"; // // // Allocate our FBO source, decide how big it should be // allocate(500, 500); // // //setup our directory // dir.setup(); // //setup our client // mClient.setup(); // // //register for our directory's callbacks // ofAddListener(dir.events.serverAnnounced, this, &SyphonSource::serverAnnounced); // // not yet implemented // //ofAddListener(dir.events.serverUpdated, this, &ofApp::serverUpdated); // ofAddListener(dir.events.serverRetired, this, &SyphonSource::serverRetired); // // dirIdx = -1; // } // // //these are our directory's callbacks // void SyphonSource::serverAnnounced(ofxSyphonServerDirectoryEventArgs &arg) // { // for( auto& dir : arg.servers ){ // ofLogNotice("ofxSyphonServerDirectory Server Announced")<<" Server Name: "<