lithium\net\Socket::open PHP Method

open() public method

Opens the socket and sets Socket::$_resource.
public open ( array $options = [] ) : mixed
$options array Update the config settings.
return mixed The open resource on success, `false` otherwise.
    public function open(array $options = array())
    {
        parent::__construct($options + $this->_config);
        return false;
    }

Usage Example

コード例 #1
0
 /**
  * Connect to data source.
  *
  * @return boolean
  */
 public function connect()
 {
     if (!$this->_isConnected && $this->_connection) {
         $this->_isConnected = $this->_connection->open();
     }
     return $this->_isConnected;
 }
All Usage Examples Of lithium\net\Socket::open