vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Interface EventDriverPipes

interface EventDriverPipes ;

Properties

NameTypeDescription
userData[set] TRetrieves a reference to a user-defined value associated with a descriptor.

Methods

NameDescription
addRef (pid) Increments the reference count of the given resource.
adopt (system_pipe_handle) Adopt an existing pipe. This will modify the pipe to be non-blocking.
cancelRead (pipe) Cancels an ongoing read operation.
cancelWrite (pipe) Cancels an ongoing write operation.
close (file, on_closed) Immediately close the pipe. Future read or write operations may fail.
isValid (handle) Determines whether the given pipe handle is valid.
read (pipe, buffer, mode, on_read_finish) Reads data from a stream socket.
releaseRef (pid) Decrements the reference count of the given resource.
waitForData (pipe, on_data_available) Waits for incoming data without actually reading it.
write (pipe, buffer, mode, on_write_finish) Writes data from a stream socket.
rawUserData (descriptor, size, initialize, destroy) Low-level user data access. Use userData instead.
Authors
Copyright
License