public void addConnectionListener(ConnectionListener listener){
  connectionListeners.addElement(listener);
}

public void addConnectionListener ( ConnectionListener listener ) { connectionListeners . addElement ( listener ) ; }
adds the specified connection listener to receive connection events from connection .
