Skip to content

Instantly share code, notes, and snippets.

@RandomOutput
Created February 23, 2014 20:30
Show Gist options
  • Select an option

  • Save RandomOutput/9176814 to your computer and use it in GitHub Desktop.

Select an option

Save RandomOutput/9176814 to your computer and use it in GitHub Desktop.
Processing Data server wrapper
class DataServer {
//Data for Setting Up the Socket Server
int sport = 9002;
Server myServer;
DataServer(PApplet parent) {
//Setup the socket server
myServer = new Server(parent, sport);
}
public void send(String data)
{
myServer.write(data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment