EventBufferEvent::sslSocket

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

Description

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

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

Parameters

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.

Return Values

Returns EventBufferEvent object.

See Also

© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/eventbufferevent.sslsocket.php

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部