protected function _defaultBehaviour(IEvent $e)
 {
     $msg = '[' . get_class($e->getSource()) . '->' . $e->getName() . '] ' . trim((string) $e->getContext());
     $this->_log->write($msg);
     echo $msg . System::crlf;
 }
Exemplo n.º 2
0
 public function onTimeout(IEvent &$e, $args = null)
 {
     $e->getSource()->getServer()->removeClient($this);
     $e =& new Event('controlTimeout', $this, $e->getContext());
     $this->dispatch($e);
 }