Esempio n. 1
0
 /**
  * Process events on the master socket ($this->socket)
  *
  * @return void
  */
 protected function processMasterSocket()
 {
     $new = null;
     try {
         $new = $this->socket->accept();
     } catch (Exception $e) {
         $this->server->log('Socket error: ' . $e, 'err');
         return;
     }
     $connection = $this->createConnection($new);
     $this->server->notify(Server::EVENT_SOCKET_CONNECT, array($new, $connection));
 }