The StreamPollHandle class

はじめに

An Io\Poll\Handle that allows a stream to be watched by an Io\Poll\Context.

Only streams that are backed by a file descriptor of the operating system can be polled, such as sockets and pipes. Which kinds of streams are accepted depends on the backend: for example, Io\Poll\Backend::WSAPoll only accepts sockets, and Io\Poll\Backend::Epoll rejects regular files.

Objects of this class cannot be cloned or serialized.

クラス概要

final StreamPollHandle
implements Io\Poll\Handle
/* メソッド */
public __construct(resource $stream)
public resource getStream()
public bool isValid()
目次