TCP two port select example in c Simple C program to demonstrate listening and printing out multiple values from multiple ports test with echo "port 5000" | netcat localhost 5000 and then echo "ort 5001" | netcat localhost 5001