Introduction - If you have any usage issues, please Google them yourself
A simple procedure for p2p file sharing, using c language development, including peer client and server-side, since the definition of a set of application-layer transport protocol, for understanding the socket programming of great help