Skip to main content Link Menu Expand (external link) Document Search Copy Copied

This is automatic generated document for things in \ namespace

STREAM_POLLERR = 8 STREAM_POLLHUP = 16 STREAM_POLLIN = 1 STREAM_POLLNONE = 0 STREAM_POLLNVAL = 32 STREAM_POLLOUT = 4 STREAM_POLLPRI = 2

Function gethostbyname2

function gethostbyname2 ( string $hostname , int $address_family ) : string

Function msleep

function msleep ( int $milli_seconds ) : int

sleep milliseconds

Param int $milli_seconds time to sleep, in ms

Function stream_poll_one

function stream_poll_one ( $stream , int $events , int $timeout ) : int

poll one stream for events

Param int $events flags: STREAM_POLL* constants combinations

Returns int flags: STREAM_POLL* constants combinations, STREAM_POLLNONE means timeout

Throws RuntimeException on runtime error, e.g. poll has been cancelled or poll failed

Function stream_select_unlimited

function stream_select_unlimited ( ?array & $read , ?array & $write , ?array & $except , ?int $seconds , ?int $microseconds ) : int|false

unlimited version of stream_select()

Classes

Class Swow


Table of contents


Copyright 2022 the Swow contributors