public void closeAllConnections() {
        Iterator<String> peerIds = this.peers.keySet().iterator();
        while (peerIds.hasNext()) {
            closeConnection(peerIds.next());
        }
    }
public void closeAllConnections() {
        Iterator<String> peerIds = this.peers.keySet().iterator();
        while (peerIds.hasNext()) {
            closeConnection(peerIds.next());
        }
    }
public void closeAllConnections ( ) { Iterator < String > peerIds = this . peers . keySet ( ) . iterator ( ) ; while ( peerIds . hasNext ( ) ) { closeConnection ( peerIds . next ( ) ) ; } }
Close connections (hangup) on all open connections.
Close connections ( hangup ) on all open connections .