Interface EventDriverPipes
interface EventDriverPipes
;
Properties
Name | Type | Description |
---|---|---|
userData [set]
|
T | Retrieves a reference to a user-defined value associated with a descriptor. |
Methods
Name | Description |
---|---|
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
(pipe)
|
Immediately close the pipe. Future read or write operations may fail. |
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.
|