Example #1
0
 public void deleteSocket(String device) throws IOException {
   for (int i = 0; i < list.size(); i++) {
     if (list.valueAt(i).getIpAddress() == device) {
       list.valueAt(i).close();
       list.removeAt(i);
     }
   }
 }