Send and receive file with different segments