예제 #1
0
 public void stopClients() {
   if (outputClient != null) {
     try {
       outputClient.stop();
     } catch (Exception e) {
     }
   }
   if (inputClient != null) {
     try {
       inputClient.stop();
     } catch (Exception e) {
     }
   }
 }
예제 #2
0
 public void stopInputClient() throws Exception {
   if (inputClient != null) {
     inputClient.stop();
     inputClient.join();
   }
 }