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(".")) {
21 System
.out
.println(Thread
.currentThread().getName() + " a envoye " + line
);
24 catch (IOException e
) {
25 System
.err
.println("IOException: " + e
);
29 if (userInput
!= null) {
33 catch (IOException e
) {
34 System
.err
.println("IOException: " + e
);