We are about to switch to a new forum software. Until then we have removed the registration on this forum.
//ident server function
void ident_server(boolean ident_is_on, int port) {
Server ident = new Server(this, 113);
Client client = ident.available();
while (ident_is_on) {
if (client!=null) {
ident.write("113,"+port+": USERID : UNIX : devonrevenge");
break;
}
}
}
I just need to return that string when prompted but I cant find the solution, any ideas???
Answers
I just need to return that string when prompted but I cant find the solution, any ideas???
Perhaps take a look at the examples coming with the Network library?
At least, you should move the server creation to setup(), and avoid an infinite loop, using draw() for that.