Hi cmath
Use winsock control method Bind() when your program needs to bind to a port in a particular range & that's for security reasons.
Use TCP when you pass SOCK_STREAM as the second argument to socket().
Use UDP when you pass SOCK_DGRAM as the second argument to socket()
You can ignore receiving data to your server or accept them by stopping the Winsock1.LocalPort 'which is the port where all incoming data arrives, including connection requests.
Check this turorial for more information
Regards
DoctorMahdi
Enter your message below
Sign in or Join us (it's free).