예제 #1
0
 public void close() {
   while (clients.elements().hasMoreElements())
     try {
       ((RFBClient) clients.elements().nextElement()).close();
     } catch (IOException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     }
 }
예제 #2
0
 public void dispose() {
   clients.closeAll();
 }
예제 #3
0
 @Override
 public void addClient(RFBClient client) {
   clients.addClient(client);
 }
예제 #4
0
 @Override
 public void removeClient(RFBClient client) {
   clients.removeClient(client);
   if (clients.isEmpty() && !shared) dispose();
 }
예제 #5
0
 @Override
 public void removeClient(RFBClient client) {
   clients.removeClient(client);
 }
예제 #6
0
 @Override
 public void addClient(RFBClient client) {
   clients.addClient(client);
   for (ClientAddedListener listener : _clientAddedListeners) listener.OnClientAdded(this, client);
 }
예제 #7
0
 public RFBClient getClientForView(View view) {
   // TODO FIXME!
   if (clients.elements().hasMoreElements()) return (RFBClient) clients.elements().nextElement();
   else return null;
 }