php8.5
Home/ Manual/ event / eventbufferevent/ EventBufferEvent::sslFilter

EventBufferEvent::sslFilter

PHP function Edit on GitHub ✎

(PECL event >= 1.2.6-beta)

Create a new SSL buffer event to send its data over another buffer event

Description

EventBufferEvent::sslFilter(EventBase $base, EventBufferEvent $underlying, EventSslContext $ctx, int $state, int $options = 0): EventBufferEvent

Create a new SSL buffer event to send its data over another buffer event

Note

This function is available only if Event is compiled with OpenSSL support.

Parameters

base

Associated event base.

underlying

A socket buffer event to use for this SSL.

ctx

Object of EventSslContext class.

state

The current state of SSL connection: EventBufferEvent::SSL_OPEN, EventBufferEvent::SSL_ACCEPTING or EventBufferEvent::SSL_CONNECTING.

options

One or more buffer event options.

Return Values

Returns a new SSL EventBufferEvent object.

Examples

See Also

  • EventBufferEvent::sslSocket

Source: reference/event/eventbufferevent/sslfilter.xml · from the official PHP manual (php/doc-en)