template <>

class WireServer

Defined at line 525 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/cpp/fidl/fuchsia.io/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_io::Readable>|

and |::fidl::ServerEnd

<

::fuchsia_io::Readable>|).

Public Methods

void Read (::fuchsia_io::wire::ReadableReadRequest * request, ReadCompleter::Sync & completer)

Reads up to 'count' bytes at the seek offset.

The seek offset is moved forward by the number of bytes read.

## Invariants

* The returned `data.length` will never be greater than `count`.

* If `data.length` is less than `count`, it means that the seek offset

has reached the end of file as part of this operation.

* If `data.length` is zero while `count` is not, it means that the

seek offset is already at or beyond the end of file, and no data could

be read.

* If `count` is zero, the server should perform all the checks ensuring

read access without actually read anything, and return an empty

`data` vector.

This method requires the [`Rights.READ_BYTES`] right.

Returns `ZX_ERR_OUT_OF_RANGE` if `count` is greater than `MAX_TRANSFER_SIZE`.

void WireServer ()

Defined at line 528 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/cpp/fidl/fuchsia.io/cpp/wire_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 529 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/cpp/fidl/fuchsia.io/cpp/wire_messaging.h