i have never written anything like it, how do i check things like if a port is empty using c program in Linux environment thanks a lot.
ps looking for a way, by not using bind or connect and checking if it failed.
edit i cant use bind or connect, looking for faster way to find 3k ports that are free in a row