Skip to content

Core\Net\Stream

A connection to one client or server, returned by Core\Net::connect, Core\Net::connectLocal and Core\Net\Listener::accept. read and write move bytes, and each waits no longer than its $within.

Returned by

You get a Core\Net\Stream from these methods:

Members

3 members.

MemberSignature
readread(uint $max, Core\Time\Duration $within): tainted bytes
writewrite(bytes $payload, Core\Time\Duration $within): uint
closeclose(): void