略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: EventBufferEvent::sslSocket

2024-11-14

EventBufferEvent::sslSocket

(PECL event >= 1.2.6-beta)

EventBufferEvent::sslSocketCreates a new SSL buffer event to send its data over an SSL on a socket

说明

public static EventBufferEvent::sslSocket(
     EventBase $base ,
     mixed $socket ,
     EventSslContext $ctx ,
     int $state ,
     int $options = ?
): EventBufferEvent

Creates a new SSL buffer event to send its data over an SSL on a socket.

参数

base

Associated event base.

socket

Socket to use for this SSL. Can be stream or socket resource, numeric file descriptor, or null. If socket is null, it is assumed that the file descriptor for the socket will be assigned later, for instance, by means of EventBufferEvent::connectHost() method.

ctx

Object of EventSslContext class.

state

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

options

The buffer event options.

返回值

Returns EventBufferEvent object.

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/eventbufferevent.sslsocket.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3