• Forum
  • Lounge
  • are ident servers supposed to sit and wa

 
are ident servers supposed to sit and wait for a connection or are they constantly listening?

check this pseudo code for an Ident server, would I have this on a separate thread constantly looping or would I just have it waiting for a connection on the main loop?

Were can I get some more solid knowledge on whats happening here?

1
2
3
4
5
6
7
8
9
10
11
12
//ident server function
void ident_server(int port) {
  boolean sent = false;
  Server ident = new Server(113);
  while (sent==false) {
    client.listening();
    if (client!=null) {
      ident.write("113,"+port+": USERID : UNIX : devonrevenge");
      sent = true;
    }
  }
}
well according to wikipedia's definition:
wikipedia wrote:
The Ident Protocol is designed to work as a server daemon, on a user's computer, where it receives requests to a specified port, generally 113.

I would say that considering it is a daemon, it would be run separate to the main loop.
Topic archived. No new replies allowed.