| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
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
] )プロパティ
定義済み定数
目次
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「The EventBufferEvent class」をGoogle検索
|