class ClientController

Defined at line 467 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/client_base.h

|ClientController| manages the lifetime of a |ClientBase| instance.

|ClientBase|s are created when binding a client endpoint to a message

dispatcher, via |Bind|. The destruction of |ClientBase|s is initiated when

this |ClientController| class destructs, or when |Unbind| is explicitly

invoked.

Public Methods

void Bind (AnyTransport client_end, async_dispatcher_t * dispatcher, AnyIncomingEventDispatcher && event_dispatcher, AsyncEventHandler * error_handler, fidl::AnyTeardownObserver && teardown_observer, ThreadingPolicy threading_policy)

Creates a |ClientBase| and binds it to the |dispatcher| and |client_end|,

starts managing its lifetime.

It is an error to call |Bind| more than once on the same controller.

Defined at line 222 of file ../../sdk/lib/fidl/cpp/wire/client_base.cc

void Unbind ()

Begins to unbind the transport from the dispatcher. In particular, it

triggers the asynchronous destruction of the bound |ClientBase|. May be

called from any thread. If provided, the teardown observer is notified

asynchronously on a dispatcher thread.

|Bind| must have been called before this.

Defined at line 239 of file ../../sdk/lib/fidl/cpp/wire/client_base.cc

fit::result<fidl::Error, fidl::internal::AnyTransport> UnbindMaybeGetEndpoint ()

Same as |Unbind| but tries to extract the client endpoint if safe to do so.

Defined at line 241 of file ../../sdk/lib/fidl/cpp/wire/client_base.cc

void ClientController ()

Defined at line 469 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/client_base.h

void ~ClientController ()

Defined at line 470 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/client_base.h

void ClientController (ClientController && other)

Defined at line 472 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/client_base.h

ClientController & operator= (ClientController && other)

Defined at line 473 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/client_base.h

void ClientController (const ClientController & other)

Defined at line 474 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/client_base.h

ClientController & operator= (const ClientController & other)

Defined at line 475 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/client_base.h

bool is_valid ()

Defined at line 496 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/client_base.h

bool operator bool ()

Defined at line 497 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/client_base.h

ClientBase & get ()

Defined at line 499 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/client_base.h

Friends

class ClientChecker