prisonerjohn / processing-web

0 stars 0 forks source link

[CLOSED] constructor for client not valid #79

Open prisonerjohn opened 10 years ago

prisonerjohn commented 10 years ago

Issue by Freezerohmatic Tuesday Mar 19, 2013 at 13:23 GMT Originally opened as https://github.com/processing/processing-web/issues/79


From Processing.net

this renturns an error on the contrustor, stating it is underfined

import processing.net.*; Client myClient; int dataIn;

void setup() { size(200, 200); // Connect to the local machine at port 5204. // This example will not run if you haven't // previously started a server on this port. myClient = new Client(this, "127.0.0.1", 5204); }

void draw() { if (myClient.available() > 0) { dataIn = myClient.read(); } background(dataIn); }

prisonerjohn commented 10 years ago

Comment by REAS Tuesday Mar 19, 2013 at 15:34 GMT


Please tell us what operating system you're running and which version of Processing. The code above is working well with 2.0b8. Before that code is run, as mentioned in the comment, it's necessary to first start a server:

import processing.net.*; Server myServer;

void setup() { size(200, 200); // Starts a myServer on port 5204 myServer = new Server(this, 5204); }

void draw() {

}

prisonerjohn commented 10 years ago

Comment by Freezerohmatic Thursday Mar 21, 2013 at 00:46 GMT


I am Running Windows 7 x64, using the x86 (32bit) version of 2.0b8 and i have a server running on port 5204 on the same computer, how every i dont see how this would effect the constructor.

Date: Tue, 19 Mar 2013 08:34:50 -0700 From: notifications@github.com To: processing-web@noreply.github.com CC: michaelgriffin11@hotmail.com Subject: Re: [processing-web] constructor for client not valid (#79)

Please tell us what operating system you're running and which version of Processing. The code above is working well with 2.0b8. Before that code is run, as mentioned in the comment, it's necessary to first start a server:

import processing.net.*;

Server myServer;

void setup() {

size(200, 200);

// Starts a myServer on port 5204

myServer = new Server(this, 5204);

}

void draw() {

}

— Reply to this email directly or view it on GitHub.