__construct() public method

public __construct ( )
Esempio n. 1
0
 public function __construct($addr, $port)
 {
     parent::__construct($addr, $port);
     $this->clients = new SplObjectStorage();
     // Services
     $services = @file_get_contents(self::SERVICES_PATH);
     if ($services) {
         $this->websocket_services = (array) json_decode($services, true);
     }
 }
Esempio n. 2
0
 public function start($addr, $port)
 {
     parent::__construct($addr, $port);
 }
 public function __construct($ip, $port)
 {
     parent::__construct($ip, $port);
     $this->databaseManager = new DatabaseManager();
     $this->databaseManager->openTable('notifications', json_decode(DatabaseManager::$table5));
 }
Esempio n. 4
0
 public function __construct($ip, $port)
 {
     parent::__construct($ip, $port);
     $this->proto = new Protocol($this);
 }