//-------------------------------------------------------------- void testApp::keyPressed(int key) { if (!publisher.send("this is a test")) { cout << "send failed" << endl; } }
//-------------------------------------------------------------- void testApp::keyPressed(int key) { publisher.send("this is a test"); }