template <>

class WireServer

Defined at line 1040 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/cpp/fidl/fuchsia.component.test/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_component_test::Builder>|

and |::fidl::ServerEnd

<

::fuchsia_component_test::Builder>|).

Public Methods

void Build (::fuchsia_component_test::wire::BuilderBuildRequest * request, BuildCompleter::Sync & completer)

Assembles the realm being constructed and returns the URL for the root

component in the realm, which may then be used to create a new component

in any collection where fuchsia-test-component is properly set up. Once

this is called, any Realm channels for the realm will no longer be

usable. The `runner` argument must be provided if the `AddLocalChild`

function has been used in this realm, as this runner channel will be

used to inform the client when to start and stop running any local

component implementations.

Errors:

- `INVALID_COMPONENT_DECL`: A component declaration failed validaiton.

- `BUILD_ALREADY_CALLED`: The `Build` function has been called multiple

times on this channel.

void WireServer ()

Defined at line 1043 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/cpp/fidl/fuchsia.component.test/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 1044 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/cpp/fidl/fuchsia.component.test/cpp/wire_messaging.h