update : 2015.11.03
php.shukuma.com검색:
|
The EventBufferEvent class(PECL event >= 1.2.6-beta) 소개Represents Libevent's buffer event. Usually an application wants to perform some amount of data buffering in addition to just responding to events. When we want to write data, for example, the usual pattern looks like:
This buffered I/O pattern is common enough that Libevent provides a generic mechanism for it. A "buffer event" consists of an underlying transport (like a socket), a read buffer, and a write buffer. Instead of regular events, which give callbacks when the underlying transport is ready to be read or written, a buffer event invokes its user-supplied callbacks when it has read or written enough data. 클래스 개요
final
EventBufferEvent
{
/* Constants */
/* 프로퍼티 */
/* 메소드 */
public
bool
connectHost
(
EventDnsBase
$dns_base
,
string
$hostname
,
int
$port
[,
int
$family
= EventUtil::AF_UNSPEC
] )
public
__construct
(
EventBase
$base
[,
mixed
$socket
= NULL
[,
int
$options
= 0
[,
callable
$readcb
= NULL
[,
callable
$writecb
= NULL
[,
callable
$eventcb
= NULL
]]]]] )
public
void
setCallbacks
(
callable
$readcb
,
callable
$writecb
,
callable
$eventcb
[,
string
$arg
] )
public
static
EventBufferEvent
sslFilter
(
EventBase
$base
,
EventBufferEvent
$underlying
,
EventSslContext
$ctx
,
int
$state
[,
int
$options
= 0
] )
public
static
EventBufferEvent
sslSocket
(
EventBase
}$base
,
mixed
$socket
,
EventSslContext
$ctx
,
int
$state
[,
int
$options
] )프로퍼티
예약 상수
Table of Contents
|