It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by ">User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a ">Donation to help aid in operating costs.
You want socket programming stuff. It's really pretty simply. A quick search on Google yields many results, but here's a tutorial that I've found to be very good: http://www.ecst.csuchico.edu/~beej/guide/net/html/