Implemented .send and .receive for tcp connection