I have a program which reads from stdin. I'd like to be able to close the terminal it is running in and interact with it via nc -U. How can I create a socket which I attach to the stdin of the program?