This will explain most of it and is basically the same protocol for all other programs eventhough this one is for BitTorrent.
http://en.wikipedia.org/wiki/BitTorrent
It's a great way of sharing large files over the internet. Very useful for movies.;)

