sysconfig

package
v0.5.0-preview Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Allow applications to access a device’s network configuration settings. Determine the reachability of the device, such as whether Wi-Fi or cell connectivity are active.

Full Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicStoreCallBack

type DynamicStoreCallBack = func(store DynamicStoreRef, changedKeys corefoundation.ArrayRef, info unsafe.Pointer)

Callback used when notification of changes made to the dynamic store is delivered. Full Topic

type DynamicStoreRef

type DynamicStoreRef unsafe.Pointer

type EtworkConnectionFlags

type EtworkConnectionFlags uint32

Flags that indicate whether the specified network node name or address is reachable, whether a connection is required, and whether some user intervention may be required when establishing a connection. Full Topic

type EtworkConnectionPPPStatus

type EtworkConnectionPPPStatus int32

The PPP-specific status of the network connection. Full Topic

const (
	KNetworkConnectionPPPAuthenticating     EtworkConnectionPPPStatus = 5
	KNetworkConnectionPPPConnected          EtworkConnectionPPPStatus = 8
	KNetworkConnectionPPPConnectingLink     EtworkConnectionPPPStatus = 2
	KNetworkConnectionPPPDialOnTraffic      EtworkConnectionPPPStatus = 3
	KNetworkConnectionPPPDisconnected       EtworkConnectionPPPStatus = 0
	KNetworkConnectionPPPDisconnectingLink  EtworkConnectionPPPStatus = 10
	KNetworkConnectionPPPHoldingLinkOff     EtworkConnectionPPPStatus = 11
	KNetworkConnectionPPPInitializing       EtworkConnectionPPPStatus = 1
	KNetworkConnectionPPPNegotiatingLink    EtworkConnectionPPPStatus = 4
	KNetworkConnectionPPPNegotiatingNetwork EtworkConnectionPPPStatus = 7
	KNetworkConnectionPPPSuspended          EtworkConnectionPPPStatus = 12
	KNetworkConnectionPPPTerminating        EtworkConnectionPPPStatus = 9
	KNetworkConnectionPPPWaitingForCallBack EtworkConnectionPPPStatus = 6
	KNetworkConnectionPPPWaitingForRedial   EtworkConnectionPPPStatus = 13
)

type EtworkConnectionRef

type EtworkConnectionRef unsafe.Pointer

type EtworkConnectionStatus

type EtworkConnectionStatus int32

The current status of the network connection. Full Topic

const (
	KNetworkConnectionConnected     EtworkConnectionStatus = 2
	KNetworkConnectionConnecting    EtworkConnectionStatus = 1
	KNetworkConnectionDisconnected  EtworkConnectionStatus = 0
	KNetworkConnectionDisconnecting EtworkConnectionStatus = 3
	KNetworkConnectionInvalid       EtworkConnectionStatus = -1
)

type EtworkReachabilityFlags

type EtworkReachabilityFlags uint32

Flags that indicate the reachability of a network node name or address, including whether a connection is required, and whether some user intervention might be required when establishing a connection. Full Topic

const (
	KNetworkReachabilityFlagsConnectionAutomatic  EtworkReachabilityFlags = 8
	KNetworkReachabilityFlagsConnectionOnDemand   EtworkReachabilityFlags = 32
	KNetworkReachabilityFlagsConnectionOnTraffic  EtworkReachabilityFlags = 8
	KNetworkReachabilityFlagsConnectionRequired   EtworkReachabilityFlags = 4
	KNetworkReachabilityFlagsInterventionRequired EtworkReachabilityFlags = 16
	KNetworkReachabilityFlagsIsDirect             EtworkReachabilityFlags = 131072
	KNetworkReachabilityFlagsIsLocalAddress       EtworkReachabilityFlags = 65536
	KNetworkReachabilityFlagsReachable            EtworkReachabilityFlags = 2
	KNetworkReachabilityFlagsTransientConnection  EtworkReachabilityFlags = 1
)

type EtworkReachabilityRef

type EtworkReachabilityRef unsafe.Pointer

type PreferencesCallBack

type PreferencesCallBack = func(prefs PreferencesRef, notificationType PreferencesNotification, info unsafe.Pointer)

Type of the callback function used when the preferences have been updated or applied. Full Topic

type PreferencesNotification

type PreferencesNotification uint32

The type of notification (used with the SCPreferencesCallBack callback). Full Topic

const (
	KPreferencesNotificationApply  PreferencesNotification = 2
	KPreferencesNotificationCommit PreferencesNotification = 1
)

type PreferencesRef

type PreferencesRef unsafe.Pointer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL