當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Server::__construct方法代碼示例

本文整理匯總了PHP中Server::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Server::__construct方法的具體用法?PHP Server::__construct怎麽用?PHP Server::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Server的用法示例。


在下文中一共展示了Server::__construct方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: AuthenticatedServer

		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
		}
開發者ID:seanhess,項目名稱:php-light-socket-server,代碼行數:8,代碼來源:AuthenticatedServer.php

示例2: __construct

 /**
  * 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);
     }
 }
開發者ID:kenshaw,項目名稱:nanoserv,代碼行數:15,代碼來源:PersistentServer.php

示例3: __construct

 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}";
 }
開發者ID:nooper,項目名稱:nlogview,代碼行數:12,代碼來源:Channel.php

示例4: __construct

 /**
  * {@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'];
 }
開發者ID:n8b,項目名稱:VMN,代碼行數:15,代碼來源:IconServer.php

示例5: __construct

 /**
  *
  * @param array $params
  */
 public function __construct($params)
 {
     parent::__construct();
     parent::setParams($params);
 }
開發者ID:mlmontes07,項目名稱:tileserver-php,代碼行數:9,代碼來源:tileserver.php

示例6: __construct

 public function __construct($delim = '.', $wait = false)
 {
     parent::__construct([], false, $wait);
     $this->_delim = $delim;
     $this->_objects = [];
 }
開發者ID:kissifrot,項目名稱:php-ixr,代碼行數:6,代碼來源:ClassServer.php

示例7: __construct

 /**
  * 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;
 }
開發者ID:Gamepay,項目名稱:xp-framework,代碼行數:14,代碼來源:PreforkingServer.class.php

示例8: SharedServer

 function SharedServer($host = 'localhost', $port = 8080)
 {
     Message::$encoder = new JsonEncoder();
     parent::__construct($host, $port);
 }
開發者ID:seanhess,項目名稱:shared-model-server,代碼行數:5,代碼來源:SharedServer.php

示例9: __construct

 /**
  * @param string $host
  * @param string $user
  * @param string $password
  */
 public function __construct($host, $user, $password)
 {
     parent::__construct($host, $user, $password);
     $this->state = new NativeState();
 }
開發者ID:isklv,項目名稱:smb-bundle,代碼行數:10,代碼來源:NativeServer.php

示例10: PolicyServer

	function PolicyServer($ip)
	{                 
		parent::__construct($ip, 843);
	}    
開發者ID:seanhess,項目名稱:php-light-socket-server,代碼行數:4,代碼來源:PolicyServer.php

示例11: __construct

 /**
  * 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;
 }
開發者ID:heartless-gaming,項目名稱:game-server-status,代碼行數:14,代碼來源:GameServer.php

示例12: __construct

 /**
  * start the server
  * 
  */
 public function __construct($db)
 {
     $this->db = $db;
     parent::__construct("127.0.0.1", 5000);
 }
開發者ID:arielZusman,項目名稱:www.chat.io,代碼行數:9,代碼來源:ChatApp.php


注:本文中的Server::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。