template <>
class WireServer
Defined at line 897 of file fidling/gen/sdk/fidl/fuchsia.net.interfaces.admin/fuchsia.net.interfaces.admin/cpp/fidl/fuchsia.net.interfaces.admin/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_net_interfaces_admin::AddressStateProvider>|
and |::fidl::ServerEnd
<
::fuchsia_net_interfaces_admin::AddressStateProvider>|).
Public Methods
void UpdateAddressProperties (::fuchsia_net_interfaces_admin::wire::AddressStateProviderUpdateAddressPropertiesRequest * request, UpdateAddressPropertiesCompleter::Sync & completer)
Push an update when the address properties change.
The client pushes updates on address properties changes, such as the
address becoming deprecated, or the preferred and valid lifetimes being
updated as a result of extending the address' lifetime. The server is
expected to cache address properties.
If `address_properties` contains invalid property values, the address is
removed and [`AddressRemovalReason.INVALID_PROPERTIES`] is issued.
+ request `address_properties` the updated properties of the address.
void WatchAddressAssignmentState (WatchAddressAssignmentStateCompleter::Sync & completer)
Hanging get for address assignment state.
The server does not keep a queue of assignment states, it returns the
latest state if it differs from the last one observed.
The first call will always immediately return the current assignment
state. Subsequent calls will block until the returned value differs
from the last observed value.
It is invalid to call this method while a previous call is pending.
Doing so will cause the server end of the protocol to be closed.
- response `assignment_state` the assignment state of the address.
void Detach (DetachCompleter::Sync & completer)
Detaches the address' lifetime from the client end of the protocol.
The client end of the protocol can be closed immediately after
calling this method, and the address will not be removed.
void Remove (RemoveCompleter::Sync & completer)
Removes the address.
The server end of the protocol is closed after address removal has
completed, and the `USER_REMOVED` `OnAddressRemoved` event is sent.
void WireServer ()
Defined at line 900 of file fidling/gen/sdk/fidl/fuchsia.net.interfaces.admin/fuchsia.net.interfaces.admin/cpp/fidl/fuchsia.net.interfaces.admin/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 901 of file fidling/gen/sdk/fidl/fuchsia.net.interfaces.admin/fuchsia.net.interfaces.admin/cpp/fidl/fuchsia.net.interfaces.admin/cpp/wire_messaging.h