#include "testApp.h" #define RECONNECT_TIME 400 //-------------------------------------------------------------- void testApp::setup(){ // we don't want to be running to fast ofSetVerticalSync(true); ofSetFrameRate(60); //load our type mono.loadFont("type/mono.ttf",9); monosm.loadFont("type/mono.ttf",8); //create the socket and set to send to 127.0.0.1:11999 udpConnection.Create(); udpConnection.Connect("127.0.0.1",11999); udpConnection.SetNonBlocking(true); } //-------------------------------------------------------------- void testApp::update(){ } //-------------------------------------------------------------- void testApp::draw(){ ofSetColor(20, 20, 20); mono.drawString("openFrameworks UDP Send Example ", 15, 30); monosm.drawString("drag to draw", 15, 50); for(int i=1;i