This is a java implementation in tcp file transfer