Hello,
I am hoping to write a program that will listen on a port and react similar to when you telnet into a POP3 port ... ie, have a "prompt" and accept commands (on a UNIX box).
My questions are:
1. How do I create a program that acts as a daemon (stays in memory) ... and which shows the daemon name and not the whole command line in the process list
2. How do I "listen" on the port and accept client connections. Also, how do I handle more than one connection at a time?
Thanks very much for the help.
I am hoping to write a program that will listen on a port and react similar to when you telnet into a POP3 port ... ie, have a "prompt" and accept commands (on a UNIX box).
My questions are:
1. How do I create a program that acts as a daemon (stays in memory) ... and which shows the daemon name and not the whole command line in the process list
2. How do I "listen" on the port and accept client connections. Also, how do I handle more than one connection at a time?
Thanks very much for the help.