/** * Library Factory * * @param array Lib Settings * @return void */ public static function libraryFactory($settings) { self::$settings = $settings; }
/** * Init Connection * Connect to ConnectServer and start Socket * * @return boolean */ public function init() { $this->socket = CTM_Communication::Lib('Sockets'); $this->socket->CreateSocket(); return $this->started = (bool) $this->socket->ConnectSocket($this->CSHost, $this->CSPort, $this->Timeout); }
/** * Init Connection * Connect to JoinServer and start Socket * * @return boolean */ public function init() { $this->socket = CTM_Communication::Lib('Sockets'); $this->socket->CreateSocket(); return $this->started = (bool) $this->socket->ConnectSocket($this->settings['JSHost'], $this->settings['JSPort'], $this->settings['Timeout']); }