For a list of port numbers and their use see:

http://www.isi.edu/in-notes/iana/ass...s/port-numbers

For more info on the Winsock API see:

http://www.cyberport.com/~tangent/programming/winsock/

HTH