Anyone remember ident servers? how can I get this daemon to run as a function in draw

//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.

Sign In or Register to comment.