template <>
class WireServer
Defined at line 375 of file fidling/gen/src/connectivity/network/testing/netemul/guest/fuchsia.netemul.guest/cpp/fidl/fuchsia.netemul.guest/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_netemul_guest::Controller>|
and |::fidl::ServerEnd
<
::fuchsia_netemul_guest::Controller>|).
Public Methods
void CreateGuest (::fuchsia_netemul_guest::wire::ControllerCreateGuestRequest * request, CreateGuestCompleter::Sync & completer)
Creates a new guest instance, attaches it to the provided `network`, optionally
with `mac` as its mac address, and starts serving the `Guest` protocol over
the returned client end.
+ request `name` a name to be associated with the guest, to be used in logs
and assertions.
+ request `network` the client end of a netemul network, to which the guest
should be attached.
+ request `mac` an optional mac address which is provided to the guest on
on creation. If `mac` is not provided, the guest's mac address is picked
by guest-manager.
+ response `guest` the client end of a `Guest` protocol which can be used to
interact with the guest.
void WireServer ()
Defined at line 378 of file fidling/gen/src/connectivity/network/testing/netemul/guest/fuchsia.netemul.guest/cpp/fidl/fuchsia.netemul.guest/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 379 of file fidling/gen/src/connectivity/network/testing/netemul/guest/fuchsia.netemul.guest/cpp/fidl/fuchsia.netemul.guest/cpp/wire_messaging.h