template <>
class WireServer
Defined at line 2100 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_virtualization::Guest>|
and |::fidl::ServerEnd
<
::fuchsia_virtualization::Guest>|).
Public Methods
void GetConsole (GetConsoleCompleter::Sync & completer)
Get a guest console.
The details regarding what output is produced and what input is accepted
are determined by each guest, but will typically be a read/write socket
with a shell.
Returns error DEVICE_NOT_PRESENT if the guest was started without a console device.
void GetSerial (GetSerialCompleter::Sync & completer)
Get the socket for low-level guest debug logs.
The details regarding what output is produced and what input is accepted
are determined by each guest, but will typically be a read-only socket
with the guest kernel's serial logs.
void GetHostVsockEndpoint (::fuchsia_virtualization::wire::GuestGetHostVsockEndpointRequest * request, GetHostVsockEndpointCompleter::Sync & completer)
Get the vsock endpoint for the guest.
This endpoint can be used to register listeners for guest initiated connections, and
to initiate connections from a client. If listeners need to be registered before the guest
starts so that they are immediately available, set them via the guest config instead of
using this endpoint.
Returns error DEVICE_NOT_PRESENT if the guest was started without a vsock device.
void GetBalloonController (::fuchsia_virtualization::wire::GuestGetBalloonControllerRequest * request, GetBalloonControllerCompleter::Sync & completer)
Get the balloon controller endpoint for the guest.
Returns error DEVICE_NOT_PRESENT if the guest was started without a balloon device.
void GetMemController (::fuchsia_virtualization::wire::GuestGetMemControllerRequest * request, GetMemControllerCompleter::Sync & completer)
Get the mem controller endpoint for the guest.
Returns error DEVICE_NOT_PRESENT if the guest was started without a mem device.
void WireServer ()
Defined at line 2103 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/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 2104 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_messaging.h