I\'m writing a clone of inetd in which I must run a server that prints the IP and port of the client connecting to it.
As I overwrite STDIN and S
STDIN
S
If you need those info for the remote client, you have to call getpeername().