Process of receive/send file on TCP Socket