EventBufferEvent::sslSocket
(PECL event >= 1.2.6-beta)
EventBufferEvent::sslSocket — Creates a new SSL buffer event to send its data over an SSL on a socket
說明
public static EventBufferEvent::sslSocket(
EventBase
mixed
EventSslContext
int
int
): EventBufferEvent
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. Ifsocketisnull, 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_ACCEPTINGorEventBufferEvent::SSL_CONNECTING.-
options The buffer event options.
返回值
Returns EventBufferEvent object.
參見
- EventBufferEvent::sslFilter() - Create a new SSL buffer event to send its data over another buffer event