6 private static void main1() {
7 SocketClient client
= new SocketClient();
10 client
.sendMsg("Line 1 Line 2");
11 String msg
= client
.receiveMsg();
12 System
.out
.println(msg
);
15 System
.err
.println("Exception: " + e
);
23 public static void main (String
[] args
) {
26 SocketClient client
= new SocketClient();
27 ThreadClientSend thCS
= new ThreadClientSend(client
);
28 thCS
.setMsg("Line1 Line2");
29 Thread thS
= new Thread(thCS
);
30 Thread thR
= new Thread(new ThreadClientReceive(client
));
37 System
.err
.println("Exception: " + e
);