EventHttpConnection::__construct
(PECL event >= 1.2.6-beta)
EventHttpConnection::__construct — Constructs EventHttpConnection object
Description
public EventHttpConnection::__construct(
EventBase
EventDnsBase
string
int
EventSslContext
)
EventBase
$base ,EventDnsBase
$dns_base ,string
$address ,int
$port ,EventSslContext
$ctx = null)
Constructs EventHttpConnection object.
Parameters
baseAssociated event base.
dns_baseIf
dns_baseisnull, 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.
Changelog
| Version | Description |
|---|---|
| PECL event 1.9.0 | OpenSSL support (ctx) added. |
↑ and ↓ to navigate • Enter to select • Esc to close • / to open