Implement the send and recv functions used to communicate between the peers and the tracker