in reply to Re^2: pass ARGV to STDIN
in thread pass ARGV to STDIN

The client forks with the parent listening , and child sending requests to the server and not the parent.

Your parent is actually reading from the server, not listening.