(PECL event >= 1.2.6-beta)
EventBufferEvent::sslSocket — Creates a new SSL buffer event to send its data over an SSL on a socket
$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.
本函数还未编写文档,仅有参数列表。
base
Associated event base.
socket
Socket to use for this SSL. Maybe 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.