Änderungen vom 05.12.2023 um 17:00
This commit is contained in:
parent
b677a642e7
commit
d36cbd8be7
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +0,0 @@
|
|||||||
package Prog3.src.DiningPhilosophers;
|
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
|
||||||
|
|
||||||
class ForkTest {
|
|
||||||
|
|
||||||
}
|
|
@ -40,10 +40,10 @@ public class SorterClient implements Runnable{
|
|||||||
try (Socket socket = new Socket("localhost", 12345)) {
|
try (Socket socket = new Socket("localhost", 12345)) {
|
||||||
|
|
||||||
sendLine(socket, line);
|
sendLine(socket, line);
|
||||||
receiveLine(socket);
|
return receiveLine(socket);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return "Error connecting to the server.";
|
return "Error connecting to the server.";
|
||||||
}
|
}
|
||||||
return line;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user