public void sendTelePointerUpdateToAllClients(String cName, Point p, int STATUS_CODE) { for (Map.Entry<String, OEClientCallbackInterface> item : clientMap.entrySet()) { String clientName = item.getKey(); OEClientCallbackInterface tcCallback = item.getValue(); if (!clientName.equals(cName)) { try { tcCallback.handleTelePointerNotify(p, STATUS_CODE); } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
public void sendChatEventUpdateToAllClients(String cName, String[] data, int STATUS_CODE) { for (Map.Entry<String, OEClientCallbackInterface> item : clientMap.entrySet()) { String clientName = item.getKey(); OEClientCallbackInterface tcCallback = item.getValue(); if (!clientName.equals(cName) || STATUS_CODE == this.CLIENT_JOIN) { try { tcCallback.handleChatEventNotify(data, STATUS_CODE); if (STATUS_CODE == this.CLIENT_JOIN) { tcCallback.handleTelePointerNotify(this.currPoint, this.MOVE_POINTER); } } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }