Question about terminating server prog after idle time
Posted on 2005-04-23
I am working on a simple socket program in which a server holds a username-password database, and then clients can connect to it and check combinations. The problem is, the server is supposed to terminate after 50 seconds of idle time (no clients connecting to it) and I am not sure how to be watching time while waiting for a connection. I am programming in C in a Unix environment.