coding101 0 Junior Poster in Training

I need to create a scenario where all 65535 ports are open.
I currently can open 1021 socket desciptors and bind to 1021 ports.
If i spawn ~ 70 processes todo the same, i can achieve the goal, but
performance is slow. I'm not interested in packet sniffing.
How can I open all ports in c..code not needed..ideas needed