EmptyVpnNetworkStack

Properties

Link copied to clipboard
open override val name: String

Name of the networking layer

Functions

Link copied to clipboard
open override fun onCreateVpn(): Result<Unit>
Link copied to clipboard
open override fun onDestroyVpn(): Result<Unit>

Clean when the networking layer is destroyed. You can use this method to clean up resources

Link copied to clipboard

Called before the vpn tunnel is created and before the vpn is started.

Link copied to clipboard
open override fun onStartVpn(tunfd: ParcelFileDescriptor): Result<Unit>

Called before the VPN is started

Link copied to clipboard
open override fun onStopVpn(reason: VpnStateMonitor.VpnStopReason): Result<Unit>

Called before the VPN is stopped