I'm trying to replace a inetd/xinetd service by a standalone one. What is the simplest I can do this? Is there some standard code to get started?
Asked
Active
Viewed 110 times
1 Answers
0
How does inetd know which process to send incoming data to
It spawns it (typically using fork()
followed by exec*()
), so it has the process-id.
Is there some standard code to get started?
What about xinetd
's sources?

alk
- 69,737
- 10
- 105
- 255
-
Found some at www.cs.cmu.edu/~srini/15-441/F02/Projects/lab01/ssl_echo/ – user2059893 May 06 '14 at 21:46
-
@user2059893: I added the link to xinetd's source repository to my answer. – alk May 07 '14 at 04:02
-
I was actually looking for something event-based (no spawns, no threads), and preferably simple. The nginx code looks promising. – user2059893 May 08 '14 at 16:16