__construct() public method

public __construct ( $uri, $mode = SWOOLE_BASE )
コード例 #1
0
		function AuthenticatedServer($ip, $port)
		{              
			parent::__construct($ip, $port);   
			
			$this->authenticationFreeMessages = new stdClass;
			$this->proxies = array();  
			$this->passMessage("authenticate"); 	// we want to allow people to try to grant passes
		}
コード例 #2
0
ファイル: PersistentServer.php プロジェクト: kenshaw/nanoserv
 /**
  * Persistent SOAP service handler constructor
  *
  * @param object $o
  * @param array  $soap_options
  */
 public function __construct($o, $soap_options = false)
 {
     $this->wrapped = $o;
     if ($soap_options === false) {
         parent::__construct($o);
     } else {
         parent::__construct($o, $soap_options);
     }
 }
コード例 #3
0
ファイル: Channel.php プロジェクト: nooper/nlogview
 public function __construct($channelid)
 {
     $this->channelid = $channelid;
     $sql = "SELECT serverid, name FROM irc_channels WHERE channelid = ";
     $sql .= $this->quote($channelid, 'integer');
     $q = $this->query($sql);
     $row = $q->fetchrow();
     $this->serverid = $row[0];
     $this->channelname = $row[1];
     parent::__construct($this->serverid);
     $this->mypath = $this->basepath . "IRC/showchannel.php?channelid={$channelid}";
 }
コード例 #4
0
ファイル: IconServer.php プロジェクト: n8b/VMN
 /**
  * {@inheritdoc}
  */
 public function __construct($config)
 {
     parent::__construct($config);
     $query = $this->get('q');
     $query = unserialize(base64_decode($query));
     $this->uid = $query['uid'];
     $this->d = $query['d'];
     $this->dts = $query['dts'];
     $this->ts = $query['ts'];
     $this->path = $query['path'];
     $this->hmac = $query['mac'];
 }
コード例 #5
0
 /**
  *
  * @param array $params
  */
 public function __construct($params)
 {
     parent::__construct();
     parent::setParams($params);
 }
コード例 #6
0
ファイル: ClassServer.php プロジェクト: kissifrot/php-ixr
 public function __construct($delim = '.', $wait = false)
 {
     parent::__construct([], false, $wait);
     $this->_delim = $delim;
     $this->_objects = [];
 }
コード例 #7
0
 /**
  * Constructor
  *
  * @param   string addr
  * @param   int port
  * @param   int count default 10 number of children to fork
  * @param   int maxrequests default 1000 maxmimum # of requests per child
  */
 public function __construct($addr, $port, $count = 10, $maxrequests = 1000)
 {
     parent::__construct($addr, $port);
     $this->count = $count;
     $this->maxrequests = $maxrequests;
 }
コード例 #8
0
 function SharedServer($host = 'localhost', $port = 8080)
 {
     Message::$encoder = new JsonEncoder();
     parent::__construct($host, $port);
 }
コード例 #9
0
ファイル: NativeServer.php プロジェクト: isklv/smb-bundle
 /**
  * @param string $host
  * @param string $user
  * @param string $password
  */
 public function __construct($host, $user, $password)
 {
     parent::__construct($host, $user, $password);
     $this->state = new NativeState();
 }
コード例 #10
0
	function PolicyServer($ip)
	{                 
		parent::__construct($ip, 843);
	}    
コード例 #11
0
 /**
  * Creates a new instance of a game server object
  *
  * @param string $address Either an IP address, a DNS name or one of them
  *        combined with the port number. If a port number is given, e.g.
  *        'server.example.com:27016' it will override the second argument.
  * @param int $port The port the server is listening on
  * @throws SteamCondenserException if an host name cannot be resolved
  */
 public function __construct($address, $port = 27015)
 {
     parent::__construct($address, $port);
     $this->rconAuthenticated = false;
 }
コード例 #12
0
ファイル: ChatApp.php プロジェクト: arielZusman/www.chat.io
 /**
  * start the server
  * 
  */
 public function __construct($db)
 {
     $this->db = $db;
     parent::__construct("127.0.0.1", 5000);
 }