class PortAdapterParent

Defined at line 24 of file ../../src/connectivity/network/tun/network-tun/port_adapter.h

An abstract PortAdapter parent.

This abstract class allows the owner of a `PortAdapter` to change its behavior and be notified

of important events.

Public Methods

void OnHasSessionsChanged (PortAdapter & port)

Called when the device's `has_session` state changes.

void OnPortStatusChanged (PortAdapter & port, const PortStatus & new_status)

Called when the port's status changes.

`new_status` must be reported to the device containing the port.

void OnPortDestroyed (PortAdapter & port)

Called when the port is destroyed and completely removed from the device.

void ~PortAdapterParent ()

Defined at line 26 of file ../../src/connectivity/network/tun/network-tun/port_adapter.h