(PECL event >= 1.2.6-beta)
EventHttpConnection::__construct — Constructs EventHttpConnection object
$base ,$dns_base ,$address ,$port ,$ctx = nullConstructs EventHttpConnection object.
baseAssociated event base.
dns_baseIf dns_base is null, hostname resolution will block.
addressThe address to connect to.
portThe port to connect to.
ctxEventSslContext class object. Enables OpenSSL.
Note:
This parameter is available only if
Eventis compiled with OpenSSL support and only withLibevent 2.1.0-alphaand higher.
| Version | Description |
|---|---|
| PECL event 1.9.0 | OpenSSL support (ctx) added. |