« swoole_version
Swoole\Async::dnsLookup »
PHP Manual
Swoole
The Swoole\Async class
The Swoole\Async class
(PECL swoole >= 1.9.0)
简介
类摘要
class
Swoole\Async
{
/* 方法 */
public
static
dnsLookup
(
string
$hostname
,
callable
$callback
):
void
public
static
read
(
string
$filename
,
callable
$callback
,
int
$chunk_size
= ?
,
int
$offset
= ?
):
bool
public
static
readFile
(
string
$filename
,
callable
$callback
):
void
public
static
set
(
array
$settings
):
void
public
static
write
(
string
$filename
,
string
$content
,
int
$offset
= ?
,
callable
$callback
= ?
):
void
public
static
writeFile
(
string
$filename
,
string
$content
,
callable
$callback
= ?
,
string
$flags
= ?
):
void
}
目录
Swoole\Async::dnsLookup
— Async and non-blocking hostname to IP lookup.
Swoole\Async::read
— Read file stream asynchronously.
Swoole\Async::readFile
— Read a file asynchronously.
Swoole\Async::set
— Update the async I/O options.
Swoole\Async::write
— Write data to a file stream asynchronously.
Swoole\Async::writeFile
— Description