Пример #1
0
 public function closeConnection($id)
 {
     if (isset($this->clients[$id])) {
         $return = socket_close($this->clients[$id]);
         if ($return === FALSE) {
             NginyUS::error('Cannot close the socket : ' . socket_strerror(socket_last_error()), E_WARNING);
         }
         unset($this->clients[$id]);
         unset($this->buffers[$id]);
         unset($this->times[$id]);
     }
 }