EventDriverPipes

Undocumented in source.

Members

Functions

addRef
void addRef(PipeFD pid)

Increments the reference count of the given resource.

adopt
PipeFD adopt(int system_pipe_handle)

Adopt an existing pipe. This will modify the pipe to be non-blocking.

cancelRead
void cancelRead(PipeFD pipe)

Cancels an ongoing read operation.

cancelWrite
void cancelWrite(PipeFD pipe)

Cancels an ongoing write operation.

close
void close(PipeFD file, PipeCloseCallback on_closed)

Immediately close the pipe. Future read or write operations may fail.

isValid
bool isValid(PipeFD handle)

Determines whether the given pipe handle is valid.

rawUserData
void* rawUserData(PipeFD descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)

Low-level user data access. Use userData instead.

read
void read(PipeFD pipe, ubyte[] buffer, IOMode mode, PipeIOCallback on_read_finish)

Reads data from a stream socket.

releaseRef
bool releaseRef(PipeFD pid)

Decrements the reference count of the given resource.

waitForData
void waitForData(PipeFD pipe, PipeIOCallback on_data_available)

Waits for incoming data without actually reading it.

write
void write(PipeFD pipe, const(ubyte)[] buffer, IOMode mode, PipeIOCallback on_write_finish)

Writes data from a stream socket.

Properties

userData
PipeFD userData [@property setter]

Retrieves a reference to a user-defined value associated with a descriptor.

Meta