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.

参见

相关文章
php eventbuffer append data to the end of an event bufferphp eventbufferevent closes file descriptor associated with the current buffer eventphp eventbufferevent connect buffer event s file descriptor to given address or unix socketphp eventbufferevent creates two buffer events connected to each otherphp eventbufferevent disable events read write or both on a buffer eventphp eventbufferevent enable events read write or both on a buffer eventphp eventbufferevent free a buffer eventphp eventbufferevent returns bitmask of events currently enabled on the buffer eventphp eventbufferevent returns underlying input buffer associated with current buffer eventphp eventbufferevent set the read and write timeout for a buffer eventphp eventbufferevent returns most recent openssl error reported on the buffer eventphp eventbufferevent create a new ssl buffer event to send its data over another buffer eventphp eventbufferevent creates a new ssl buffer event to send its data over an ssl on a socketphp eventbufferevent adds data to a buffer event s output bufferphp eventlistener creates new connection listener associated with an event basephp swoole buffer append the string or binary data at the end of the memory buffer and return the new size of memory allocated.php swoole client send data to the remote tcp socket.php swoole event add new callback functions of a socket into the eventloop.php swoole event write data to the socket.php swoole server send data to the remote socket in the blocking way.
关注编程学问公众号