The StreamPollHandle class

Introduction

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.

Class synopsis

final StreamPollHandle
implements Io\Poll\Handle
/* Methods */
public __construct(resource $stream)
public resource getStream()
public bool isValid()
Table of Contents