7 * Main for testing ClientSimplifie
9 private static void main1() {
10 SocketClient client
= new SocketClient();
13 client
.sendMsg("Line1");
14 String msg
= client
.receiveMsg();
15 System
.out
.println(msg
);
18 System
.err
.println("Exception: " + e
);
26 public static void main (String
[] args
) {
27 SocketClient client
= new SocketClient();
30 ThreadClientSend thCS
= new ThreadClientSend(client
);
31 //FIXME: Implement a loop based on user input to set dynamically the message to sent.
32 //for (int i = 0; i < 10; i++) {
33 // thCS.setMsg("Line" + i);
36 Thread thS
= new Thread(thCS
);
37 Thread thR
= new Thread(new ThreadClientReceive(client
));
43 // catch (Exception e) {
44 // System.err.println("Exception: " + e);
47 // client.closeRWIO();