tcp multiple #32

Merged
louis_royer merged 11 commits from tcp into servs-multiples 2020-03-18 16:26:21 +01:00
Showing only changes of commit cc16ccf317 - Show all commits

View File

@ -29,6 +29,7 @@ import java.io.File;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.nio.file.StandardCopyOption;
import exception.SocketClosed;
/** Class to download file from tcp
* @author Louis Royer
@ -216,6 +217,8 @@ public class ClientDownloadTCP implements Runnable {
return hash;
} catch (IOException e) {
throw new InternalError();
} catch (SocketClosed e){
system.err.println("getHashSum512 : SocketClosed");
}
}
@ -336,6 +339,8 @@ public class ClientDownloadTCP implements Runnable {
}
} catch (IOException e) {
throw new InternalError();
} catch (SocketClosed e){
system.err.println("setSize : SocketClosed");
}
}