sysconfig

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 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.

Apple Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BondStatusRef

type BondStatusRef uintptr

The reference to an object that represents the status of an Ethernet bond interface. Full Topic

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 DynamicStoreContext

type DynamicStoreContext struct {
	Version         int64
	Info            uintptr
	Retain          uintptr
	Release         uintptr
	CopyDescription uintptr
}

Structure containing user-specified data and callbacks for a dynamic store session. Full Topic

type DynamicStoreRef

type DynamicStoreRef uintptr

The handle to an open dynamic store session with the system configuration daemon. Full Topic

type NetworkConnectionCallBack

type NetworkConnectionCallBack = func(connection NetworkConnectionRef, status NetworkConnectionStatus, info unsafe.Pointer)

The type of callback function used when a status event is delivered. Full Topic

type NetworkConnectionContext

type NetworkConnectionContext struct {
	Version         int64
	Info            uintptr
	Retain          uintptr
	Release         uintptr
	CopyDescription uintptr
}

A structure containing user-specified data and callbacks for a network connection. Full Topic

type NetworkConnectionFlags

type NetworkConnectionFlags 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 NetworkConnectionPPPStatus

type NetworkConnectionPPPStatus int32

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

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

type NetworkConnectionRef

type NetworkConnectionRef uintptr

The handle to manage a connection-oriented service. Full Topic

type NetworkConnectionStatus

type NetworkConnectionStatus int32

The current status of the network connection. Full Topic

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

type NetworkInterfaceRef

type NetworkInterfaceRef uintptr

The reference to an object that represents a network interface. Full Topic

type NetworkProtocolRef

type NetworkProtocolRef uintptr

The reference to an object that represents a network protocol. Full Topic

type NetworkReachabilityCallBack

type NetworkReachabilityCallBack = func(target NetworkReachabilityRef, flags NetworkReachabilityFlags, info unsafe.Pointer)

Type of callback function used when the reachability of a network address or name changes. Full Topic

type NetworkReachabilityContext

type NetworkReachabilityContext struct {
	Version         int64
	Info            uintptr
	Retain          uintptr
	Release         uintptr
	CopyDescription uintptr
}

Structure containing user-specified data and callbacks used with systemconfiguration/scnetworkreachabilitysetcallback. Full Topic

type NetworkReachabilityFlags

type NetworkReachabilityFlags 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  NetworkReachabilityFlags = 8
	KNetworkReachabilityFlagsConnectionOnDemand   NetworkReachabilityFlags = 32
	KNetworkReachabilityFlagsConnectionOnTraffic  NetworkReachabilityFlags = 8
	KNetworkReachabilityFlagsConnectionRequired   NetworkReachabilityFlags = 4
	KNetworkReachabilityFlagsInterventionRequired NetworkReachabilityFlags = 16
	KNetworkReachabilityFlagsIsDirect             NetworkReachabilityFlags = 131072
	KNetworkReachabilityFlagsIsLocalAddress       NetworkReachabilityFlags = 65536
	KNetworkReachabilityFlagsReachable            NetworkReachabilityFlags = 2
	KNetworkReachabilityFlagsTransientConnection  NetworkReachabilityFlags = 1
)

type NetworkReachabilityRef

type NetworkReachabilityRef uintptr

The handle to a network address or name. Full Topic

type NetworkServiceRef

type NetworkServiceRef uintptr

The reference to an object that represents a network service. Full Topic

type NetworkSetRef

type NetworkSetRef uintptr

The reference to an object that represents a network set. Full Topic

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 PreferencesContext

type PreferencesContext struct {
	Version         int64
	Info            uintptr
	Retain          uintptr
	Release         uintptr
	CopyDescription uintptr
}

A structure containing user-specified data and callbacks for accessing system configuration preferences. 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 uintptr

The handle to an open preferences session for accessing system configuration preferences. Full Topic

Jump to

Keyboard shortcuts

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