class NetworkDeviceInterface

Defined at line 79 of file ../../src/connectivity/network/drivers/network-device/device/public/network_device.h

Public Methods

void ~NetworkDeviceInterface ()

Defined at line 81 of file ../../src/connectivity/network/drivers/network-device/device/public/network_device.h

zx::result<std::unique_ptr<NetworkDeviceInterface>> Create (const DeviceInterfaceDispatchers & dispatchers, std::unique_ptr<NetworkDeviceImplBinder> && binder)

Creates a new NetworkDeviceInterface that will bind to the provided parent. The multiple

dispatchers required should be owned externally so that components that use multiple instances

of NetworkDeviceInterface can re-use these dispatchers between instances. Otherwise those

components may run into the limitations on the number of dispatcher threads that can be

created.

Defined at line 179 of file ../../src/connectivity/network/drivers/network-device/device/device_interface.cc

void Teardown (fit::callback<void ()> )

Tears down the NetworkDeviceInterface.

A NetworkDeviceInterface must not be destroyed until the callback provided to teardown is

triggered, doing so may cause an assertion error. Immediately destroying a NetworkDevice that

never succeeded Init is allowed.

zx_status_t Bind (fidl::ServerEnd<netdev::Device> req)

Binds the request channel req to this NetworkDeviceInterface. Requests will be handled on the

dispatcher given to the device on creation.

zx_status_t BindPort (uint8_t port_id, fidl::ServerEnd<netdev::Port> req)

Binds the request channel req to a port belonging to this NetworkDeviceInterface. Requests will

be handled on the dispatcher given to the device on creation.

Protected Methods

void NetworkDeviceInterface ()

Defined at line 106 of file ../../src/connectivity/network/drivers/network-device/device/public/network_device.h