搜索

大约有 73 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0982秒)

1.XSServer::reopen

reopen() 方法 public XSServer reopen(bool $force=false) $force bool 是否强制重新连接, 默认为否 {return} XSServer 返回自己, 以便串接操作 源码: sdk/php/lib/XSServer.class.php#L185 (显示) public function reopen($force = false){ if ($this->_flag...

2.XSServer::__destruct

__destruct() 方法 public void __destruct() 源码: sdk/php/lib/XSServer.class.php#L154 (显示) public function __destruct(){ $this->xs = null; $this->close();} 析构函数, 关闭连接

3.XSServer::getProject

getProject() 方法 public string getProject() {return} string 项目名称 源码: sdk/php/lib/XSServer.class.php#L241 (显示) public function getProject(){ return $this->_project;} 获取当前项目名称

4.XSServer::getSocket

getSocket() 方法 public mixed getSocket() {return} mixed 连接标识, 仅用于内部测试等目的 源码: sdk/php/lib/XSServer.class.php#L232 (显示) public function getSocket(){ return $this->_sock;} 获取连接资源描述符

5.XSServer::check

check() 方法 protected void check() 源码: sdk/php/lib/XSServer.class.php#L438 (显示) protected function check(){ if ($this->_sock === null) { throw new XSException('No server connection'); } if ($this->_flag & self::BROKEN) { throw new XSException('Broken ser...

6.XSServer::getConnString

...nnString() {return} string 连接字符串 源码: sdk/php/lib/XSServer.class.php#L217 (显示) public function getConnString(){ $str = $this->_conn; if (is_int($str) || is_numeric($str)) { $str = 'localhost:' . $str; } elseif (strpos($str, ':') === false) { $str ...

7.XSServer::sendCommand

...SCommand 实例或 cmd 构造函数的第一参数 源码: sdk/php/lib/XSServer.class.php#L321 (显示) public function sendCommand($cmd){ if (!$cmd instanceof XSCommand) { $cmd = new XSCommand($cmd); } $this->write(strval($cmd));} 往服务器直接发送指令 (无缓存)

8.XSServer::setTimeout

...设为 0则永不超时直到客户端主动关闭 源码: sdk/php/lib/XSServer.class.php#L264 (显示) public function setTimeout($sec){ $cmd = array('cmd' => XS_CMD_TIMEOUT, 'arg' => $sec); $this->execCommand($cmd, XS_CMD_OK_TIMEOUT_SET);} 设置服务端超时秒数

9.XSServer::__construct

...接参数 $xs XS 需要捆绑的 xs 对象 源码: sdk/php/lib/XSServer.class.php#L143 (显示) public function __construct($conn = null, $xs = null){ $this->xs = $xs; if ($conn !== null) { $this->open($conn); }} 构造函数, 打开连接

10.XSServer::getRespond

... {return} XSCommand 成功返回响应指令 源码: sdk/php/lib/XSServer.class.php#L334 (显示) public function getRespond(){ // read data from server $buf = $this->read(8); $hdr = unpack('Ccmd/Carg1/Carg2/Cblen1/Iblen', $buf); $res = new XSCommand($hdr); $res->buf = $thi...

  • 时间不限
  • 按相关性排序