template <>
class Server
Defined at line 200 of file fidling/gen/sdk/fidl/fuchsia.hardware.network.driver/fuchsia.hardware.network.driver/cpp/fidl/fuchsia.hardware.network.driver/cpp/driver/natural_messaging.h
Public Methods
void GetInfo (GetInfoCompleter::Sync & completer)
Gets information about the port.
Port information must not change over the port's lifetime.
- response `info` port information.
void GetStatus (GetStatusCompleter::Sync & completer)
Gets operational status of the port.
Changes to operational status must be reported via
[`NetworkDeviceIfc.StatusChanged`]
- response `status` snapshot of port's operational status.
void Server ()
Defined at line 203 of file fidling/gen/sdk/fidl/fuchsia.hardware.network.driver/fuchsia.hardware.network.driver/cpp/fidl/fuchsia.hardware.network.driver/cpp/driver/natural_messaging.h
void SetActive (SetActiveRequest & request, SetActiveCompleter::Sync & completer)
Notifies the port that there are sessions interested in it.
An active port has sessions attached to it. Implementations may employ
power saving or other strategies on disabled ports. Implementations that
do employ such strategies:
- should not report inbound frames for inactive ports;
- must return errors for outbound frames destined to inactive ports.
All ports are inactive on creation.
+ request `active` `true` if port has sessions attached to it, `false`
otherwise.
void GetMac (GetMacCompleter::Sync & completer)
Gets an interface to the MAC addressing layer of the port.
Ports that do not support MAC addressing must return an empty interface.
- response `mac_ifc` mac addressing handle.
void Removed (RemovedCompleter::Sync & completer)
Notifies this port has been removed from the interface.
Resources associated with the port must only be freed upon receiving the
`Removed` call. Note that Removed will ONLY be called if AddPort has
returned and indicated success. If AddPort fails this will not be called,
check the return status of AddPort instead.
Handler bind_handler (fdf_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 ~Server ()
Defined at line 204 of file fidling/gen/sdk/fidl/fuchsia.hardware.network.driver/fuchsia.hardware.network.driver/cpp/fidl/fuchsia.hardware.network.driver/cpp/driver/natural_messaging.h