template <>

class Server

Defined at line 191 of file fidling/gen/sdk/fidl/fuchsia.hardware.sharedmemory/fuchsia.hardware.sharedmemory/cpp/fidl/fuchsia.hardware.sharedmemory/cpp/natural_messaging.h

Public Methods

void RegisterVmo (RegisterVmoRequest & request, RegisterVmoCompleter::Sync & completer)

Registers a VMO and transfers ownership to the driver.

vmo_id: The ID chosen by the client that will be used in operations on this VMO.

vmo: The handle, offset, and size of this VMO. IO operations on this VMO will be relative to

the offset and size specified here.

rights: A bit field of SharedVmoRight values indicating how this VMO may be used. Callers

should assume that the driver will map and/or pin the VMO using these rights.

void Server ()

Defined at line 194 of file fidling/gen/sdk/fidl/fuchsia.hardware.sharedmemory/fuchsia.hardware.sharedmemory/cpp/fidl/fuchsia.hardware.sharedmemory/cpp/natural_messaging.h

void UnregisterVmo (UnregisterVmoRequest & request, UnregisterVmoCompleter::Sync & completer)

Unmaps and/or unpins the VMO and returns the handle to the caller.

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 ~Server ()

Defined at line 195 of file fidling/gen/sdk/fidl/fuchsia.hardware.sharedmemory/fuchsia.hardware.sharedmemory/cpp/fidl/fuchsia.hardware.sharedmemory/cpp/natural_messaging.h