2ba2491e48a49f2e46d42ab7a1a6431d6a652be7
3 public class ThreadClientSend
implements Runnable
{
4 private SocketClient client
;
6 ThreadClientSend(SocketClient c
) {
11 BufferedReader userInput
= null;
13 userInput
= new BufferedReader(new InputStreamReader(System
.in
));
16 String line
= userInput
.readLine();
17 if (line
.equals(".")) {
20 if (!line
.isEmpty()) {
22 System
.out
.println(Thread
.currentThread().getName() + " a envoye " + line
);
26 catch (IOException e
) {
27 System
.err
.println("IOException: " + e
);
31 if (userInput
!= null) {
35 catch (IOException e
) {
36 System
.err
.println("IOException: " + e
);