Thank you both. To Leepo, I have seen your wonderful networking tutorials and they are great . But I am trying to understand it not just inside of unity. To bilalamjad3. Thank you, I will look into this.
http://en.wikipedia.org/wiki/Berkeley_sockets When you say 'networking' what you're really looking for is documentation on Berkeley sockets. Luckily for you, there's like 40 years worth of it! If you look at the bottom of the wikipedia entry on them, you will find a good number of links to get you started.