« EventBufferEvent::sslRenegotiate
EventBufferEvent::write »

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 function 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.

参考

関連キーワード:
EventBufferEvent   event   socket   buffer   send   over   Creates   sslSocket   base   state   options   EventSslContext   descriptor   sslRenegotiate   write   beta   static   EventBase   mixed   Associated   Socket   stream   resource   numeric   assumed
関連する関数・ページ:
eventbufferevent.construct   eventbufferevent.write   eventbufferevent.createpair   eventbufferevent.close   eventbufferevent.getoutput   eventbufferevent.writebuffer