|
|
@ -6,22 +6,22 @@ import protocolP2P.ProtocolP2PPacketTCP;
|
|
|
|
import protocolP2P.Payload;
|
|
|
|
import protocolP2P.Payload;
|
|
|
|
import protocolP2P.LoadRequest;
|
|
|
|
import protocolP2P.LoadRequest;
|
|
|
|
import protocolP2P.FilePart;
|
|
|
|
import protocolP2P.FilePart;
|
|
|
|
import exception.InternalError;
|
|
|
|
import localException.InternalError;
|
|
|
|
import remoteException.EmptyDirectory;
|
|
|
|
import remoteException.EmptyDirectory;
|
|
|
|
import remoteException.EmptyFile;
|
|
|
|
import remoteException.EmptyFile;
|
|
|
|
import exception.ProtocolError;
|
|
|
|
import localException.ProtocolError;
|
|
|
|
import remoteException.InternalRemoteError;
|
|
|
|
import remoteException.InternalRemoteError;
|
|
|
|
import remoteException.VersionRemoteError;
|
|
|
|
import remoteException.VersionRemoteError;
|
|
|
|
import exception.TransmissionError;
|
|
|
|
import localException.TransmissionError;
|
|
|
|
import remoteException.ProtocolRemoteError;
|
|
|
|
import remoteException.ProtocolRemoteError;
|
|
|
|
import exception.VersionError;
|
|
|
|
import localException.VersionError;
|
|
|
|
import exception.SizeError;
|
|
|
|
import localException.SizeError;
|
|
|
|
import remoteException.NotFound;
|
|
|
|
import remoteException.NotFound;
|
|
|
|
import java.nio.file.Files;
|
|
|
|
import java.nio.file.Files;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
|
import java.nio.file.Paths;
|
|
|
|
import java.nio.file.Paths;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import exception.SocketClosed;
|
|
|
|
import localException.SocketClosed;
|
|
|
|
|
|
|
|
|
|
|
|
/** Class to download file parts on tcp.
|
|
|
|
/** Class to download file parts on tcp.
|
|
|
|
* @author Louis Royer
|
|
|
|
* @author Louis Royer
|
|
|
|