Platforms to show: All Mac Windows Linux Cross-Platform

NWPathMBS class   New in 24.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Network MBS MacOSX Plugin 24.1 ✅ Yes ❌ No ❌ No ✅ Yes All
A Network Path object represents a snapshot of network path state.

This state represents the known information about the local interface and routes that may be used to send and receive data. If the network path for a connection changes due to interface characteristics, addresses, or other attributes, a new path object will be generated. Note that the differences in the path attributes may notbe visible through public accessors, and these changes should be treated merely as an indication that something about the network has changed.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Status

Constant Value Description
kStatusInvalid 0 The path is not valid
kStatusSatisfiable 3 The path does not currently have a usable route, but a connection attempt will trigger network attachment.
kStatusSatisfied 1 The path has a usable route upon which to send and receive data.
kStatusUnsatisfied 2 The path does not have a usable route. This may be due to a network interface being down, or due to system policy.

Unsatisfied Reason

Constant Value Description
kUnsatisfiedReasonCellularDenied 1 The user has disabled cellular
kUnsatisfiedReasonLocalNetworkDenied 3 The user has disabled local network access
kUnsatisfiedReasonNotAvailable 0 No reason is given
kUnsatisfiedReasonVPNInactive 4 A required VPN is not active
kUnsatisfiedReasonWifiDenied 2 The user has disabled Wi-Fi

This class has no sub classes.

Some events using this class:

Release notes

  • Version 24.1
    • Added NWPathMBS, NWEndPointMBS and NWInterfaceMBS classes.

The items on this page are in the following plugins: MBS MacOSX Plugin.


NWInterfaceMBS   -   NWPathMonitorMBS


💬 Ask a question or report a problem
The biggest plugin in space...