Example #1
0
 /**
  * shutdown server
  *
  */
 public function shutDown()
 {
     if (!$this->isParent) {
         $this->closeConnection();
         exit;
     }
     parent::shutDown();
 }
Example #2
0
 public function __destruct()
 {
     $this->driver->shutDown();
 }
 /**
  * shutdown server
  *
  */
 public function shutDown()
 {
     foreach ($this->clients as $socket) {
         $this->socket = $socket;
         $this->closeConnection();
     }
     parent::shutDown();
 }