7 * Main for testing ClientSimplifie
9 private static void main1() {
10 ClientSimplifie client
= null;
11 BufferedReader userInput
= null;
14 client
= new ClientSimplifie();
15 userInput
= new BufferedReader(new InputStreamReader(System
.in
));
18 String line
= userInput
.readLine();
22 String rline
= client
.receiveMsg();
23 System
.out
.println(rline
);
26 catch (IOException e
) {
27 System
.err
.println("IOException: " + e
);
31 if (userInput
!= null) {
35 catch (IOException e
) {
36 System
.err
.println("IOException: " + e
);
42 public static void main (String
[] args
) {
43 SocketClient client
= null;
48 client
= new SocketClient();
49 thS
= new Thread(new ThreadClientSend(client
));
50 thR
= new Thread(new ThreadClientReceive(client
));
57 System
.err
.println("Exception: " + e
);
64 catch (InterruptedException e
) {
65 System
.err
.println("InterruptedException: " + e
);