class PipeAutoReader

Defined at line 23 of file ../../src/devices/lib/goldfish/pipe_io/pipe_auto_reader.h

PipeAutoReader supports reading framed goldfish pipe messages automatically

from the pipe. A message handler callback function is called on each

pipe message received.

Public Methods

void PipeAutoReader (fidl::WireSyncClient<fuchsia_hardware_goldfish_pipe::Bus> pipe_bus, const char * pipe_name, async_dispatcher_t * dispatcher, PipeMessageHandler handler)

Defined at line 26 of file ../../src/devices/lib/goldfish/pipe_io/pipe_auto_reader.h

void SetMessageHandler (PipeMessageHandler handler)

Defined at line 33 of file ../../src/devices/lib/goldfish/pipe_io/pipe_auto_reader.h

zx_status_t BeginRead ()

Start reading pipe messages asynchronously.

Returns:

- |ZX_ERR_BAD_STATE| if the dispatcher is shutting down.

- |ZX_ERR_NOT_SUPPORTED| if not supported by the dispatcher.

- Otherwise, |ZX_OK|.

Defined at line 62 of file ../../src/devices/lib/goldfish/pipe_io/pipe_auto_reader.cc

void StopRead ()

Cancel all reading tasks and pipe event wait jobs on the dispatcher.

Defined at line 67 of file ../../src/devices/lib/goldfish/pipe_io/pipe_auto_reader.cc