//--------------------------------------------------------------
void testApp::keyPressed(int key)
{
	if (!publisher.send("this is a test"))
	{
		cout << "send failed" << endl;
	}
}
예제 #2
0
파일: testApp.cpp 프로젝트: toyoshim/ofxZmq
//--------------------------------------------------------------
void testApp::setup()
{
	// start server
	publisher.bind("tcp://*:9999");
	
	// start client
	subscriber.connect("tcp://localhost:9999");
}
예제 #3
0
파일: testApp.cpp 프로젝트: toyoshim/ofxZmq
//--------------------------------------------------------------
void testApp::keyPressed(int key)
{
	publisher.send("this is a test");
}