How does inetd work?

I know inetd forwards a programms (servers) stdout to the client... but
where does it forward the requests from a client to? It's not stdin..

It there any simple example server available that was written to work
with inetd?


To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx