template <>
class WireServer
Defined at line 2200 of file fidling/gen/sdk/fidl/fuchsia.tpm/fuchsia.tpm/cpp/fidl/fuchsia.tpm/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_tpm::TpmDevice>|
and |::fidl::ServerEnd
<
::fuchsia_tpm::TpmDevice>|).
Public Methods
void GetDeviceId (GetDeviceIdCompleter::Sync & completer)
Get the TPM's device ID, vendor ID, and revision ID.
void ExecuteVendorCommand (::fuchsia_tpm::wire::TpmDeviceExecuteVendorCommandRequest * request, ExecuteVendorCommandCompleter::Sync & completer)
Execute a vendor command.
This method will construct a header for the TPM command from the
command_code. The data section should just contain the body of
the command and not the header.
Returns ZX_ERR_BUFFER_TOO_SMALL if the TPM responded with data that
wouldn't fit in the response buffer.
void ExecuteCommand (::fuchsia_tpm::wire::TpmDeviceExecuteCommandRequest * request, ExecuteCommandCompleter::Sync & completer)
Execute a complete command.
This method expects a complete command passed in data including
any header required.
Returns ZX_ERR_BUFFER_TOO_SMALL if the TPM responded with data that
wouldn't fit in the response buffer.
void WireServer ()
Defined at line 2203 of file fidling/gen/sdk/fidl/fuchsia.tpm/fuchsia.tpm/cpp/fidl/fuchsia.tpm/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 2204 of file fidling/gen/sdk/fidl/fuchsia.tpm/fuchsia.tpm/cpp/fidl/fuchsia.tpm/cpp/wire_messaging.h