The popularity of P2P (point-to-point) has produced a large number of network transmission software. What we are going to introduce here is to write a simple P2P file transfer by ourselves. One party sends the file and the other party accepts it until the entire file is transferred.