Example #1
0
 /**
  * Initialize connection
  *
  * @return Connection
  */
 public function connect()
 {
     $this->socketClientFlags = STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT;
     parent::connect();
     stream_set_blocking($this->resource, 0);
     return $this;
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 public function connect()
 {
     $this->socketClientFlags = STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT;
     parent::connect();
 }