Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to listen on a port for commands

Status
Not open for further replies.

jlstitt

IS-IT--Management
Nov 8, 2002
3
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top