当前位置: 首页>>代码示例>>PHP>>正文


PHP SimpleTestCompatibility::setTimeout方法代码示例

本文整理汇总了PHP中SimpleTestCompatibility::setTimeout方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleTestCompatibility::setTimeout方法的具体用法?PHP SimpleTestCompatibility::setTimeout怎么用?PHP SimpleTestCompatibility::setTimeout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SimpleTestCompatibility的用法示例。


在下文中一共展示了SimpleTestCompatibility::setTimeout方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: SimpleSocket

 function SimpleSocket($host, $port, $timeout, $block_size = 255)
 {
     $this->SimpleStickyError();
     if (!($this->_handle = $this->_openSocket($host, $port, $error_number, $error, $timeout))) {
         $this->_setError("Cannot open [{$host}:{$port}] with [{$error}] within [{$timeout}] seconds");
         return;
     }
     $this->_is_open = true;
     $this->_block_size = $block_size;
     SimpleTestCompatibility::setTimeout($this->_handle, $timeout);
 }
开发者ID:BackupTheBerlios,项目名称:phpbase-svn,代码行数:11,代码来源:socket.php

示例2: SimpleSocket

 /**
  *    Opens a socket for reading and writing.
  *    @param string $host      Hostname to send request to.
  *    @param integer $port     Port on remote machine to open.
  *    @param integer $timeout  Connection timeout in seconds.
  *    @access public
  */
 function SimpleSocket($host, $port, $timeout)
 {
     $this->StickyError();
     $this->_is_open = false;
     if (!($this->_handle = $this->_openSocket($host, $port, $error_number, $error, $timeout))) {
         $this->_setError("Cannot open [{$host}:{$port}] with [{$error}] within [{$timeout}] seconds");
     } else {
         $this->_is_open = true;
         SimpleTestCompatibility::setTimeout($this->_handle, $timeout);
     }
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:18,代码来源:socket.php

示例3: __construct

 /**
  *    Opens a socket for reading and writing.
  *    @param string $host          Hostname to send request to.
  *    @param integer $port         Port on remote machine to open.
  *    @param integer $timeout      Connection timeout in seconds.
  *    @param integer $block_size   Size of chunk to read.
  *    @access public
  */
 function __construct($host, $port, $timeout, $block_size = 255)
 {
     parent::__construct();
     if (!($this->handle = $this->openSocket($host, $port, $error_number, $error, $timeout))) {
         $this->setError("Cannot open [{$host}:{$port}] with [{$error}] within [{$timeout}] seconds");
         return;
     }
     $this->is_open = true;
     $this->block_size = $block_size;
     SimpleTestCompatibility::setTimeout($this->handle, $timeout);
 }
开发者ID:ngugijames,项目名称:ThinkUp,代码行数:19,代码来源:socket.php


注:本文中的SimpleTestCompatibility::setTimeout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。