Hi there, i was testing oout the network library on my old computer (with an older version of processing) and the network library and associated classes (Server and Client) worked fine. I’ve just tried to run the same sketch on my newer mac and PC and both dont recognises the Client or Server Class from the same sketch. Whats going on? thanks.
//client test
import processing.net.*;
Client myClient;
Serial myPort;
char val;
String word = "";
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, "2a02:c7f:7058:e100:21d:4fff:feff:1747", 5204);
}
void draw() {
background(0);
// if (myClient.available() > 0) {
// val = myClient.readChar();
// myPort.write(val);
// }
if (myClient.available() > 0) {
word = myClient.readString();
}
fill(255);
text(word,width/2,height/2);
}
hm, might be a install problem?
after processing 3.5.3 download / unzip / start / set new sketchbook path,
how/what you copy your old sketch source?
please show copy or snapshot your exact error msg.
if i use (ONLY, without the server running )
/ File / Examples / Libraries / Network / SharedCanvasClient
and start it i get ERROR
Its would be strange for it to be an install problem because im getting the same error on two completely different machines (mac and PC) - the error message is: "The class “Client does not exist”