network

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package network provides Go bindings for the Network framework.

Key Types

Code generated from Apple documentation. DO NOT EDIT.

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorBlock

func NewErrorBlock(handler ErrorHandler) (objc.ID, func())

NewErrorBlock wraps a Go ErrorHandler as an Objective-C block. The caller must defer the returned cleanup function.

Used by:

Types

type ErrorHandler

type ErrorHandler = func(error)

ErrorHandler is the signature for a completion handler block.

Used by:

type INWAdvertiseDescriptor

type INWAdvertiseDescriptor interface {
	objectivec.IObject

	BonjourServiceDomain() string
	BonjourServiceName() string
	BonjourServiceType() string
	DescriptionWithIndentShowFullContent(indent int, content bool) objectivec.IObject
	InternalDescriptor() objectivec.Object
	SetInternalDescriptor(value objectivec.Object)
	PrivateDescription() objectivec.IObject
	TxtRecord() foundation.INSData
	SetTxtRecord(value foundation.INSData)
	InitWithDescriptor(descriptor objectivec.IObject) NWAdvertiseDescriptor
	InitWithNameTypeDomain(name objectivec.IObject, type_ objectivec.IObject, domain objectivec.IObject) NWAdvertiseDescriptor
}

An interface definition for the NWAdvertiseDescriptor class.

Methods

  • [INWAdvertiseDescriptor.BonjourServiceDomain]
  • [INWAdvertiseDescriptor.BonjourServiceName]
  • [INWAdvertiseDescriptor.BonjourServiceType]
  • [INWAdvertiseDescriptor.DescriptionWithIndentShowFullContent]
  • [INWAdvertiseDescriptor.InternalDescriptor]
  • [INWAdvertiseDescriptor.SetInternalDescriptor]
  • [INWAdvertiseDescriptor.PrivateDescription]
  • [INWAdvertiseDescriptor.TxtRecord]
  • [INWAdvertiseDescriptor.SetTxtRecord]
  • [INWAdvertiseDescriptor.InitWithDescriptor]
  • [INWAdvertiseDescriptor.InitWithNameTypeDomain]

See: https://developer.apple.com/documentation/Network/NWAdvertiseDescriptor

type INWBrowseDescriptor

type INWBrowseDescriptor interface {
	objectivec.IObject

	BonjourServiceDomain() string
	BonjourServiceType() string
	BrowseWithCompletionHandler(handler ErrorHandler)
	CreateProtocolBufferObject() objectivec.IObject
	DescriptionWithIndentShowFullContent(indent int, content bool) objectivec.IObject
	EncodedData() objectivec.IObject
	InternalDescriptor() objectivec.Object
	SetInternalDescriptor(value objectivec.Object)
	PrivateDescription() string
	InitWithDescriptor(descriptor objectivec.IObject) NWBrowseDescriptor
	InitWithEncodedData(data objectivec.IObject) NWBrowseDescriptor
}

An interface definition for the NWBrowseDescriptor class.

Methods

  • [INWBrowseDescriptor.BonjourServiceDomain]
  • [INWBrowseDescriptor.BonjourServiceType]
  • [INWBrowseDescriptor.BrowseWithCompletionHandler]
  • [INWBrowseDescriptor.CreateProtocolBufferObject]
  • [INWBrowseDescriptor.DescriptionWithIndentShowFullContent]
  • [INWBrowseDescriptor.EncodedData]
  • [INWBrowseDescriptor.InternalDescriptor]
  • [INWBrowseDescriptor.SetInternalDescriptor]
  • [INWBrowseDescriptor.PrivateDescription]
  • [INWBrowseDescriptor.InitWithDescriptor]
  • [INWBrowseDescriptor.InitWithEncodedData]

See: https://developer.apple.com/documentation/Network/NWBrowseDescriptor

type INWBrowser

type INWBrowser interface {
	objectivec.IObject

	Cancel()
	CopyDiscoveredEndpoints() objectivec.IObject
	Descriptor() INWBrowseDescriptor
	DiscoveredEndpoints() foundation.INSSet
	InternalBrowser() objectivec.Object
	InternalDiscoveredEndpoints() foundation.INSSet
	SetInternalDiscoveredEndpoints(value foundation.INSSet)
	Parameters() INWParameters
	SetUpdateHandler()
	InitWithDescriptorParameters(descriptor objectivec.IObject, parameters objectivec.IObject) NWBrowser
}

An interface definition for the NWBrowser class.

Methods

  • [INWBrowser.Cancel]
  • [INWBrowser.CopyDiscoveredEndpoints]
  • [INWBrowser.Descriptor]
  • [INWBrowser.DiscoveredEndpoints]
  • [INWBrowser.InternalBrowser]
  • [INWBrowser.InternalDiscoveredEndpoints]
  • [INWBrowser.SetInternalDiscoveredEndpoints]
  • [INWBrowser.Parameters]
  • [INWBrowser.SetUpdateHandler]
  • [INWBrowser.InitWithDescriptorParameters]

See: https://developer.apple.com/documentation/Network/NWBrowser

type INWConnection

type INWConnection interface {
	objectivec.IObject

	Cancel()
	CancelCurrentEndpoint()
	ConnectedLocalEndpoint() INWEndpoint
	ConnectedRemoteEndpoint() INWEndpoint
	ConnectionState() int64
	CopyCurrentPath() objectivec.IObject
	CopyError() objectivec.IObject
	CurrentPath() INWPath
	Endpoint() INWEndpoint
	Error() foundation.INSError
	ForceCancel()
	GetConnectedSocket() int
	HasBetterPath() bool
	InternalConnection() unsafe.Pointer
	SetInternalConnection(value unsafe.Pointer)
	InternalConnectionState() int64
	SetInternalConnectionState(value int64)
	InternalError() foundation.INSError
	SetInternalError(value foundation.INSError)
	InternalHasBetterPath() bool
	SetInternalHasBetterPath(value bool)
	InternalIsViable() bool
	SetInternalIsViable(value bool)
	InternalPath() INWPath
	SetInternalPath(value INWPath)
	IsViable() bool
	Parameters() INWParameters
	Start()
	TlsConnectionTime() uint32
	InitWithConnectedSocket(socket int) NWConnection
	InitWithEndpointParameters(endpoint objectivec.IObject, parameters objectivec.IObject) NWConnection
	InitWithInternalConnection(connection objectivec.IObject) NWConnection
	Viable() bool
}

An interface definition for the NWConnection class.

Methods

  • [INWConnection.Cancel]
  • [INWConnection.CancelCurrentEndpoint]
  • [INWConnection.ConnectedLocalEndpoint]
  • [INWConnection.ConnectedRemoteEndpoint]
  • [INWConnection.ConnectionState]
  • [INWConnection.CopyCurrentPath]
  • [INWConnection.CopyError]
  • [INWConnection.CurrentPath]
  • [INWConnection.Endpoint]
  • [INWConnection.Error]
  • [INWConnection.ForceCancel]
  • [INWConnection.GetConnectedSocket]
  • [INWConnection.HasBetterPath]
  • [INWConnection.InternalConnection]
  • [INWConnection.SetInternalConnection]
  • [INWConnection.InternalConnectionState]
  • [INWConnection.SetInternalConnectionState]
  • [INWConnection.InternalError]
  • [INWConnection.SetInternalError]
  • [INWConnection.InternalHasBetterPath]
  • [INWConnection.SetInternalHasBetterPath]
  • [INWConnection.InternalIsViable]
  • [INWConnection.SetInternalIsViable]
  • [INWConnection.InternalPath]
  • [INWConnection.SetInternalPath]
  • [INWConnection.IsViable]
  • [INWConnection.Parameters]
  • [INWConnection.Start]
  • [INWConnection.TlsConnectionTime]
  • [INWConnection.InitWithConnectedSocket]
  • [INWConnection.InitWithEndpointParameters]
  • [INWConnection.InitWithInternalConnection]
  • [INWConnection.Viable]

See: https://developer.apple.com/documentation/Network/NWConnection

type INWEndpoint

type INWEndpoint interface {
	objectivec.IObject

	AlternatePort() uint16
	SetAlternatePort(value uint16)
	CopyCEndpoint() objectivec.IObject
	CreateProtocolBufferObject() objectivec.IObject
	DescriptionWithIndentShowFullContent(indent int, content bool) objectivec.IObject
	EncodeWithCoder(coder foundation.INSCoder)
	EncodedData() objectivec.IObject
	Interface() INWInterface
	SetInterface(value INWInterface)
	InternalEndpoint() objectivec.Object
	SetInternalEndpoint(value objectivec.Object)
	ParentEndpointDomain() string
	PrivateDescription() string
	RemoteInterfaceType() int64
	SetRemoteInterfaceType(value int64)
	TxtRecord() foundation.INSData
	SetTxtRecord(value foundation.INSData)
	InitWithCoder(coder foundation.INSCoder) NWEndpoint
	InitWithEndpoint(endpoint objectivec.IObject) NWEndpoint
}

An interface definition for the NWEndpoint class.

Methods

  • [INWEndpoint.AlternatePort]
  • [INWEndpoint.SetAlternatePort]
  • [INWEndpoint.CopyCEndpoint]
  • [INWEndpoint.CreateProtocolBufferObject]
  • [INWEndpoint.DescriptionWithIndentShowFullContent]
  • [INWEndpoint.EncodeWithCoder]
  • [INWEndpoint.EncodedData]
  • [INWEndpoint.Interface]
  • [INWEndpoint.SetInterface]
  • [INWEndpoint.InternalEndpoint]
  • [INWEndpoint.SetInternalEndpoint]
  • [INWEndpoint.ParentEndpointDomain]
  • [INWEndpoint.PrivateDescription]
  • [INWEndpoint.RemoteInterfaceType]
  • [INWEndpoint.SetRemoteInterfaceType]
  • [INWEndpoint.TxtRecord]
  • [INWEndpoint.SetTxtRecord]
  • [INWEndpoint.InitWithCoder]
  • [INWEndpoint.InitWithEndpoint]

See: https://developer.apple.com/documentation/Network/NWEndpoint

type INWInterface

type INWInterface interface {
	objectivec.IObject

	CInterface() objectivec.Object
	CopyLocalAddressForDefaultIPv4() objectivec.IObject
	CopyLocalAddressForDefaultIPv6() objectivec.IObject
	CopyLocalAddressForRemoteAddress(address objectivec.IObject) objectivec.IObject
	CreateProtocolBufferObject() objectivec.IObject
	DelegateInterface() INWInterface
	DescriptionWithIndentShowFullContent(indent int, content bool) objectivec.IObject
	EncodeWithCoder(coder foundation.INSCoder)
	Generation() uint64
	HasDNS() bool
	HasNAT64() bool
	InterfaceIndex() uint64
	InterfaceName() string
	InternalInterface() objectivec.Object
	SetInternalInterface(value objectivec.Object)
	Ipv4Broadcast() objectivec.IObject
	Ipv4Netmask() objectivec.IObject
	IsConstrained() bool
	IsDeepEqual(equal objectivec.IObject) bool
	IsExpensive() bool
	IsIPv4Routable() bool
	IsIPv6Routable() bool
	IsShallowEqual(equal objectivec.IObject) bool
	IsUltraConstrained() bool
	Mtu() int64
	PrivateDescription() string
	Subtype() int64
	SupportsMulticast() bool
	Type() int64
	TypeString() string
	InitWithCoder(coder foundation.INSCoder) NWInterface
	InitWithInterface(interface_ objectivec.IObject) NWInterface
	InitWithInterfaceIndex(index uint64) NWInterface
	InitWithInterfaceIndexInterfaceName(index uint64, name objectivec.IObject) NWInterface
	InitWithInterfaceName(name objectivec.IObject) NWInterface
	Constrained() bool
	Expensive() bool
	Ipv4Routable() bool
	Ipv6Routable() bool
}

An interface definition for the NWInterface class.

Methods

  • [INWInterface.CInterface]
  • [INWInterface.CopyLocalAddressForDefaultIPv4]
  • [INWInterface.CopyLocalAddressForDefaultIPv6]
  • [INWInterface.CopyLocalAddressForRemoteAddress]
  • [INWInterface.CreateProtocolBufferObject]
  • [INWInterface.DelegateInterface]
  • [INWInterface.DescriptionWithIndentShowFullContent]
  • [INWInterface.EncodeWithCoder]
  • [INWInterface.Generation]
  • [INWInterface.HasDNS]
  • [INWInterface.HasNAT64]
  • [INWInterface.InterfaceIndex]
  • [INWInterface.InterfaceName]
  • [INWInterface.InternalInterface]
  • [INWInterface.SetInternalInterface]
  • [INWInterface.Ipv4Broadcast]
  • [INWInterface.Ipv4Netmask]
  • [INWInterface.IsConstrained]
  • [INWInterface.IsDeepEqual]
  • [INWInterface.IsExpensive]
  • [INWInterface.IsIPv4Routable]
  • [INWInterface.IsIPv6Routable]
  • [INWInterface.IsShallowEqual]
  • [INWInterface.IsUltraConstrained]
  • [INWInterface.Mtu]
  • [INWInterface.PrivateDescription]
  • [INWInterface.Subtype]
  • [INWInterface.SupportsMulticast]
  • [INWInterface.Type]
  • [INWInterface.TypeString]
  • [INWInterface.InitWithCoder]
  • [INWInterface.InitWithInterface]
  • [INWInterface.InitWithInterfaceIndex]
  • [INWInterface.InitWithInterfaceIndexInterfaceName]
  • [INWInterface.InitWithInterfaceName]
  • [INWInterface.Constrained]
  • [INWInterface.Expensive]
  • [INWInterface.Ipv4Routable]
  • [INWInterface.Ipv6Routable]

See: https://developer.apple.com/documentation/Network/NWInterface

type INWParameters

type INWParameters interface {
	objectivec.IObject

	SSLCipherSuites() foundation.INSSet
	SetSSLCipherSuites(value foundation.INSSet)
	SSLCipherSuitesInternal() foundation.INSSet
	SetSSLCipherSuitesInternal(value foundation.INSSet)
	TLSSessionID() foundation.INSData
	SetTLSSessionID(value foundation.INSData)
	Account() string
	SetAccount(value string)
	AllowDuplicateStateUpdates() bool
	SetAllowDuplicateStateUpdates(value bool)
	AllowJoiningConnectedFd() bool
	SetAllowJoiningConnectedFd(value bool)
	AllowSocketAccess() bool
	SetAllowSocketAccess(value bool)
	AllowUnusableAddresses() bool
	SetAllowUnusableAddresses(value bool)
	AttachProtocolListener() bool
	SetAttachProtocolListener(value bool)
	AvoidNetworkAgentWithDomainType(domain objectivec.IObject, type_ objectivec.IObject)
	AvoidNetworkAgentWithUUID(uuid objectivec.IObject)
	CopyCParameters() objectivec.IObject
	CopyRequiredAgentsDescription() objectivec.IObject
	CreateProtocolBufferObject() objectivec.IObject
	DataMode() uint64
	SetDataMode(value uint64)
	DescriptionWithIndentShowFullContent(indent int, content bool) objectivec.IObject
	DisableNagleAlgorithm() bool
	SetDisableNagleAlgorithm(value bool)
	EffectiveBundleID() string
	SetEffectiveBundleID(value string)
	EffectiveProcessUUID() foundation.NSUUID
	SetEffectiveProcessUUID(value foundation.NSUUID)
	EnableTFO() bool
	SetEnableTFO(value bool)
	EnableTFONoCookie() bool
	SetEnableTFONoCookie(value bool)
	EnableTLS() bool
	SetEnableTLS(value bool)
	EncodeWithCoder(coder foundation.INSCoder)
	FastOpenForceEnable() bool
	SetFastOpenForceEnable(value bool)
	HasDelegatedPIDForOriginatingPID(pid int) bool
	HasDelegatedProcessUUID() bool
	HasNonEmptyProxyConfiguration() bool
	HasPreferredNetworkAgents() bool
	HasProhibitedNetworkAgents() bool
	HasRequiredNetworkAgents() bool
	HttpsProxyIsOpaque() bool
	SetHttpsProxyIsOpaque(value bool)
	HttpsProxyOverTLS() bool
	SetHttpsProxyOverTLS(value bool)
	IgnoreResolverStats() bool
	SetIgnoreResolverStats(value bool)
	Indefinite() bool
	SetIndefinite(value bool)
	InternalParameters() objectivec.Object
	SetInternalParameters(value objectivec.Object)
	IpProtocol() byte
	IsDiscretionary() bool
	IsDryRun() bool
	IsValid() bool
	KeepAlive() bool
	SetKeepAlive(value bool)
	KeepAliveIdleTime() uint64
	SetKeepAliveIdleTime(value uint64)
	KeepAliveInterval() uint64
	SetKeepAliveInterval(value uint64)
	KeepAliveOffload() bool
	SetKeepAliveOffload(value bool)
	LocalAddress() unsafe.Pointer
	SetLocalAddress(value unsafe.Pointer)
	MaximumSSLProtocolVersion() uint64
	SetMaximumSSLProtocolVersion(value uint64)
	MaximumSSLProtocolVersionInternal() uint64
	SetMaximumSSLProtocolVersionInternal(value uint64)
	Metadata() foundation.INSData
	SetMetadata(value foundation.INSData)
	MinimumSSLProtocolVersion() uint64
	SetMinimumSSLProtocolVersion(value uint64)
	MinimumSSLProtocolVersionInternal() uint64
	SetMinimumSSLProtocolVersionInternal(value uint64)
	Multipath() bool
	SetMultipath(value bool)
	MultipathForceEnable() bool
	SetMultipathForceEnable(value bool)
	MultipathService() int
	SetMultipathService(value int)
	NoProxy() bool
	SetNoProxy(value bool)
	ParentID() foundation.NSUUID
	SetParentID(value foundation.NSUUID)
	ParentIDs() foundation.INSArray
	Pid() int
	SetPid(value int)
	PreferNetworkAgentWithDomainType(domain objectivec.IObject, type_ objectivec.IObject)
	PreferNetworkAgentWithUUID(uuid objectivec.IObject)
	PreferNoProxy() bool
	SetPreferNoProxy(value bool)
	PrivateDescription() string
	ProcessUUID() foundation.NSUUID
	SetProcessUUID(value foundation.NSUUID)
	ProhibitCellular() bool
	ProhibitConstrainedPaths() bool
	SetProhibitConstrainedPaths(value bool)
	ProhibitExpensivePaths() bool
	SetProhibitExpensivePaths(value bool)
	ProhibitFallback() bool
	SetProhibitFallback(value bool)
	ProhibitInterface(interface_ objectivec.IObject)
	ProhibitInterfaceSubtype(subtype int64)
	ProhibitInterfaceType(type_ int64)
	ProhibitJoiningProtocols() bool
	SetProhibitJoiningProtocols(value bool)
	ProhibitNetworkAgentWithUUID(uuid objectivec.IObject)
	ProhibitNetworkAgentsWithDomainType(domain objectivec.IObject, type_ objectivec.IObject)
	ProhibitRoaming() bool
	SetProhibitRoaming(value bool)
	ProtocolTransforms() foundation.INSArray
	SetProtocolTransforms(value foundation.INSArray)
	ProxyConfiguration() foundation.INSDictionary
	SetProxyConfiguration(value foundation.INSDictionary)
	ReduceBuffering() bool
	SetReduceBuffering(value bool)
	RequireNetworkAgentWithDomainType(domain objectivec.IObject, type_ objectivec.IObject)
	RequireNetworkAgentWithUUID(uuid objectivec.IObject)
	RequiredAddressFamily() byte
	SetRequiredAddressFamily(value byte)
	RequiredCompanionProxyInterfaceType() int64
	SetRequiredCompanionProxyInterfaceType(value int64)
	RequiredInterface() INWInterface
	SetRequiredInterface(value INWInterface)
	RequiredInterfaceSubtype() int64
	SetRequiredInterfaceSubtype(value int64)
	RequiredInterfaceType() int64
	SetRequiredInterfaceType(value int64)
	ResolvePTR() bool
	SetResolvePTR(value bool)
	ReuseLocalAddress() bool
	SetReuseLocalAddress(value bool)
	SanitizedURL() foundation.INSURL
	SetInitialDataPayload(payload objectivec.IObject)
	SetSourceApplicationWithBundleID(id objectivec.IObject)
	TlsVersionWithSSLProtocol(sSLProtocol int) uint16
	TrafficClass() uint64
	SetTrafficClass(value uint64)
	TransportProtocol() byte
	TrustInvalidCertificates() bool
	SetTrustInvalidCertificates(value bool)
	Uid() uint32
	SetUid(value uint32)
	Url() foundation.INSURL
	SetUrl(value foundation.INSURL)
	UseAWDL() bool
	SetUseAWDL(value bool)
	UseLongOutstandingQueries() bool
	SetUseLongOutstandingQueries(value bool)
	UseP2P() bool
	SetUseP2P(value bool)
	InitWithCoder(coder foundation.INSCoder) NWParameters
	InitWithParameters(parameters objectivec.IObject) NWParameters
	Discretionary() bool
	SetDiscretionary(value bool)
	DryRun() bool
	Valid() bool
}

An interface definition for the NWParameters class.

Methods

  • [INWParameters.SSLCipherSuites]
  • [INWParameters.SetSSLCipherSuites]
  • [INWParameters.SSLCipherSuitesInternal]
  • [INWParameters.SetSSLCipherSuitesInternal]
  • [INWParameters.TLSSessionID]
  • [INWParameters.SetTLSSessionID]
  • [INWParameters.Account]
  • [INWParameters.SetAccount]
  • [INWParameters.AllowDuplicateStateUpdates]
  • [INWParameters.SetAllowDuplicateStateUpdates]
  • [INWParameters.AllowJoiningConnectedFd]
  • [INWParameters.SetAllowJoiningConnectedFd]
  • [INWParameters.AllowSocketAccess]
  • [INWParameters.SetAllowSocketAccess]
  • [INWParameters.AllowUnusableAddresses]
  • [INWParameters.SetAllowUnusableAddresses]
  • [INWParameters.AttachProtocolListener]
  • [INWParameters.SetAttachProtocolListener]
  • [INWParameters.AvoidNetworkAgentWithDomainType]
  • [INWParameters.AvoidNetworkAgentWithUUID]
  • [INWParameters.CopyCParameters]
  • [INWParameters.CopyRequiredAgentsDescription]
  • [INWParameters.CreateProtocolBufferObject]
  • [INWParameters.DataMode]
  • [INWParameters.SetDataMode]
  • [INWParameters.DescriptionWithIndentShowFullContent]
  • [INWParameters.DisableNagleAlgorithm]
  • [INWParameters.SetDisableNagleAlgorithm]
  • [INWParameters.EffectiveBundleID]
  • [INWParameters.SetEffectiveBundleID]
  • [INWParameters.EffectiveProcessUUID]
  • [INWParameters.SetEffectiveProcessUUID]
  • [INWParameters.EnableTFO]
  • [INWParameters.SetEnableTFO]
  • [INWParameters.EnableTFONoCookie]
  • [INWParameters.SetEnableTFONoCookie]
  • [INWParameters.EnableTLS]
  • [INWParameters.SetEnableTLS]
  • [INWParameters.EncodeWithCoder]
  • [INWParameters.FastOpenForceEnable]
  • [INWParameters.SetFastOpenForceEnable]
  • [INWParameters.HasDelegatedPIDForOriginatingPID]
  • [INWParameters.HasDelegatedProcessUUID]
  • [INWParameters.HasNonEmptyProxyConfiguration]
  • [INWParameters.HasPreferredNetworkAgents]
  • [INWParameters.HasProhibitedNetworkAgents]
  • [INWParameters.HasRequiredNetworkAgents]
  • [INWParameters.HttpsProxyIsOpaque]
  • [INWParameters.SetHttpsProxyIsOpaque]
  • [INWParameters.HttpsProxyOverTLS]
  • [INWParameters.SetHttpsProxyOverTLS]
  • [INWParameters.IgnoreResolverStats]
  • [INWParameters.SetIgnoreResolverStats]
  • [INWParameters.Indefinite]
  • [INWParameters.SetIndefinite]
  • [INWParameters.InternalParameters]
  • [INWParameters.SetInternalParameters]
  • [INWParameters.IpProtocol]
  • [INWParameters.IsDiscretionary]
  • [INWParameters.IsDryRun]
  • [INWParameters.IsValid]
  • [INWParameters.KeepAlive]
  • [INWParameters.SetKeepAlive]
  • [INWParameters.KeepAliveIdleTime]
  • [INWParameters.SetKeepAliveIdleTime]
  • [INWParameters.KeepAliveInterval]
  • [INWParameters.SetKeepAliveInterval]
  • [INWParameters.KeepAliveOffload]
  • [INWParameters.SetKeepAliveOffload]
  • [INWParameters.LocalAddress]
  • [INWParameters.SetLocalAddress]
  • [INWParameters.MaximumSSLProtocolVersion]
  • [INWParameters.SetMaximumSSLProtocolVersion]
  • [INWParameters.MaximumSSLProtocolVersionInternal]
  • [INWParameters.SetMaximumSSLProtocolVersionInternal]
  • [INWParameters.Metadata]
  • [INWParameters.SetMetadata]
  • [INWParameters.MinimumSSLProtocolVersion]
  • [INWParameters.SetMinimumSSLProtocolVersion]
  • [INWParameters.MinimumSSLProtocolVersionInternal]
  • [INWParameters.SetMinimumSSLProtocolVersionInternal]
  • [INWParameters.Multipath]
  • [INWParameters.SetMultipath]
  • [INWParameters.MultipathForceEnable]
  • [INWParameters.SetMultipathForceEnable]
  • [INWParameters.MultipathService]
  • [INWParameters.SetMultipathService]
  • [INWParameters.NoProxy]
  • [INWParameters.SetNoProxy]
  • [INWParameters.ParentID]
  • [INWParameters.SetParentID]
  • [INWParameters.ParentIDs]
  • [INWParameters.Pid]
  • [INWParameters.SetPid]
  • [INWParameters.PreferNetworkAgentWithDomainType]
  • [INWParameters.PreferNetworkAgentWithUUID]
  • [INWParameters.PreferNoProxy]
  • [INWParameters.SetPreferNoProxy]
  • [INWParameters.PrivateDescription]
  • [INWParameters.ProcessUUID]
  • [INWParameters.SetProcessUUID]
  • [INWParameters.ProhibitCellular]
  • [INWParameters.ProhibitConstrainedPaths]
  • [INWParameters.SetProhibitConstrainedPaths]
  • [INWParameters.ProhibitExpensivePaths]
  • [INWParameters.SetProhibitExpensivePaths]
  • [INWParameters.ProhibitFallback]
  • [INWParameters.SetProhibitFallback]
  • [INWParameters.ProhibitInterface]
  • [INWParameters.ProhibitInterfaceSubtype]
  • [INWParameters.ProhibitInterfaceType]
  • [INWParameters.ProhibitJoiningProtocols]
  • [INWParameters.SetProhibitJoiningProtocols]
  • [INWParameters.ProhibitNetworkAgentWithUUID]
  • [INWParameters.ProhibitNetworkAgentsWithDomainType]
  • [INWParameters.ProhibitRoaming]
  • [INWParameters.SetProhibitRoaming]
  • [INWParameters.ProtocolTransforms]
  • [INWParameters.SetProtocolTransforms]
  • [INWParameters.ProxyConfiguration]
  • [INWParameters.SetProxyConfiguration]
  • [INWParameters.ReduceBuffering]
  • [INWParameters.SetReduceBuffering]
  • [INWParameters.RequireNetworkAgentWithDomainType]
  • [INWParameters.RequireNetworkAgentWithUUID]
  • [INWParameters.RequiredAddressFamily]
  • [INWParameters.SetRequiredAddressFamily]
  • [INWParameters.RequiredCompanionProxyInterfaceType]
  • [INWParameters.SetRequiredCompanionProxyInterfaceType]
  • [INWParameters.RequiredInterface]
  • [INWParameters.SetRequiredInterface]
  • [INWParameters.RequiredInterfaceSubtype]
  • [INWParameters.SetRequiredInterfaceSubtype]
  • [INWParameters.RequiredInterfaceType]
  • [INWParameters.SetRequiredInterfaceType]
  • [INWParameters.ResolvePTR]
  • [INWParameters.SetResolvePTR]
  • [INWParameters.ReuseLocalAddress]
  • [INWParameters.SetReuseLocalAddress]
  • [INWParameters.SanitizedURL]
  • [INWParameters.SetInitialDataPayload]
  • [INWParameters.SetSourceApplicationWithBundleID]
  • [INWParameters.TlsVersionWithSSLProtocol]
  • [INWParameters.TrafficClass]
  • [INWParameters.SetTrafficClass]
  • [INWParameters.TransportProtocol]
  • [INWParameters.TrustInvalidCertificates]
  • [INWParameters.SetTrustInvalidCertificates]
  • [INWParameters.Uid]
  • [INWParameters.SetUid]
  • [INWParameters.Url]
  • [INWParameters.SetUrl]
  • [INWParameters.UseAWDL]
  • [INWParameters.SetUseAWDL]
  • [INWParameters.UseLongOutstandingQueries]
  • [INWParameters.SetUseLongOutstandingQueries]
  • [INWParameters.UseP2P]
  • [INWParameters.SetUseP2P]
  • [INWParameters.InitWithCoder]
  • [INWParameters.InitWithParameters]
  • [INWParameters.Discretionary]
  • [INWParameters.SetDiscretionary]
  • [INWParameters.DryRun]
  • [INWParameters.Valid]

See: https://developer.apple.com/documentation/Network/NWParameters

type INWPath

type INWPath interface {
	objectivec.IObject

	AdvertiseDescriptor() INWAdvertiseDescriptor
	BrowseDescriptor() INWBrowseDescriptor
	CPath() objectivec.Object
	ClientID() foundation.NSUUID
	ConnectedInterface() INWInterface
	CopyDNSSearchDomains(domains bool) objectivec.IObject
	CopyDNSServerEndpoints(endpoints bool) objectivec.IObject
	CopyDNSServersStrings(strings objectivec.IObject) objectivec.IObject
	CopyDataFromNetworkAgentWithDomainType(domain objectivec.IObject, type_ objectivec.IObject) objectivec.IObject
	CopyFlowDivertToken() objectivec.IObject
	CreateProtocolBufferObject() objectivec.IObject
	DelegateInterface() objectivec.IObject
	DerivedParameters() INWParameters
	DescriptionWithIndentShowFullContent(indent int, content bool) objectivec.IObject
	DnsSearchDomains() foundation.INSArray
	DnsServers() foundation.INSArray
	DnsServersAsStrings() foundation.INSArray
	DnsServiceID() int
	EffectiveLocalEndpoint() INWEndpoint
	EffectiveRemoteEndpoint() INWEndpoint
	Endpoint() INWEndpoint
	FallbackEligible() bool
	FallbackInterface() INWInterface
	FallbackInterfaceIndex() uint32
	FallbackIsPreferred() bool
	FallbackIsWeak() bool
	FilterControlUnit() uint32
	FlowDivertAggregateUnit() uint32
	FlowDivertControlUnit() uint32
	Flows() foundation.INSArray
	Gateways() foundation.INSArray
	GenericNetworkAgentsWithDomainType(domain objectivec.IObject, type_ objectivec.IObject) objectivec.IObject
	GroupMembers() foundation.INSArray
	HasAdvertiseDescriptor() bool
	HasApplicationLevelFirewall() bool
	HasBrowseDescriptor() bool
	HasCustomPFRules() bool
	HasKernelExtensionFilter() bool
	HasParentalControls() bool
	HasProxySettings() bool
	HasUnsatisfiedFallbackAgent() bool
	InactiveNetworkAgentUUIDsOnlyVoluntary(voluntary bool) objectivec.IObject
	Interface() INWInterface
	InternalPath() objectivec.Object
	IsConstrained() bool
	IsDirect() bool
	IsEligibleForCrazyIvan46() bool
	IsEqualToPath(path objectivec.IObject) bool
	IsExpensive() bool
	IsFiltered() bool
	IsFlowDivert() bool
	IsLinkQualityAbort() bool
	IsListener() bool
	IsListenerInterfaceSpecific() bool
	IsLocal() bool
	IsPerAppVPN() bool
	IsRoaming() bool
	IsUltraConstrained() bool
	IsViable() bool
	MaximumDatagramSize() int64
	Mtu() int64
	NetworkAgentsOfType(type_ objc.Class) objectivec.IObject
	OverrideDNSSearchDomains() foundation.INSArray
	OverrideDNSServers() foundation.INSArray
	OverrideDNSServersAsStrings() foundation.INSArray
	Parameters() INWParameters
	PolicyID() uint32
	PrivateDescription() string
	ProxySettings() foundation.INSArray
	Reason() int64
	ReasonDescription() string
	ScopedInterface() INWInterface
	SecondsSinceInterfaceChange() uint64
	ShouldProbeConnectivity() bool
	Status() int64
	StatusAsString() string
	SupportsDNS() bool
	SupportsIPv4() bool
	SupportsIPv6() bool
	UnsatisfiedVoluntaryAgentMatchesAddressTriggerImmediately(address objectivec.IObject) (bool, bool)
	UsesCompanion() bool
	UsesInterfaceType(type_ int64) bool
	UsesNetworkAgent(agent objectivec.IObject) bool
	UsesNetworkAgentType(type_ objc.Class) bool
	InitWithPath(path objectivec.IObject) NWPath
	Constrained() bool
	Direct() bool
	EligibleForCrazyIvan46() bool
	Expensive() bool
	Filtered() bool
	FlowDivert() bool
	Listener() bool
	Local() bool
	PerAppVPN() bool
	Roaming() bool
	Viable() bool
}

An interface definition for the NWPath class.

Methods

  • [INWPath.AdvertiseDescriptor]
  • [INWPath.BrowseDescriptor]
  • [INWPath.CPath]
  • [INWPath.ClientID]
  • [INWPath.ConnectedInterface]
  • [INWPath.CopyDNSSearchDomains]
  • [INWPath.CopyDNSServerEndpoints]
  • [INWPath.CopyDNSServersStrings]
  • [INWPath.CopyDataFromNetworkAgentWithDomainType]
  • [INWPath.CopyFlowDivertToken]
  • [INWPath.CreateProtocolBufferObject]
  • [INWPath.DelegateInterface]
  • [INWPath.DerivedParameters]
  • [INWPath.DescriptionWithIndentShowFullContent]
  • [INWPath.DnsSearchDomains]
  • [INWPath.DnsServers]
  • [INWPath.DnsServersAsStrings]
  • [INWPath.DnsServiceID]
  • [INWPath.EffectiveLocalEndpoint]
  • [INWPath.EffectiveRemoteEndpoint]
  • [INWPath.Endpoint]
  • [INWPath.FallbackEligible]
  • [INWPath.FallbackInterface]
  • [INWPath.FallbackInterfaceIndex]
  • [INWPath.FallbackIsPreferred]
  • [INWPath.FallbackIsWeak]
  • [INWPath.FilterControlUnit]
  • [INWPath.FlowDivertAggregateUnit]
  • [INWPath.FlowDivertControlUnit]
  • [INWPath.Flows]
  • [INWPath.Gateways]
  • [INWPath.GenericNetworkAgentsWithDomainType]
  • [INWPath.GroupMembers]
  • [INWPath.HasAdvertiseDescriptor]
  • [INWPath.HasApplicationLevelFirewall]
  • [INWPath.HasBrowseDescriptor]
  • [INWPath.HasCustomPFRules]
  • [INWPath.HasKernelExtensionFilter]
  • [INWPath.HasParentalControls]
  • [INWPath.HasProxySettings]
  • [INWPath.HasUnsatisfiedFallbackAgent]
  • [INWPath.InactiveNetworkAgentUUIDsOnlyVoluntary]
  • [INWPath.Interface]
  • [INWPath.InternalPath]
  • [INWPath.IsConstrained]
  • [INWPath.IsDirect]
  • [INWPath.IsEligibleForCrazyIvan46]
  • [INWPath.IsEqualToPath]
  • [INWPath.IsExpensive]
  • [INWPath.IsFiltered]
  • [INWPath.IsFlowDivert]
  • [INWPath.IsLinkQualityAbort]
  • [INWPath.IsListener]
  • [INWPath.IsListenerInterfaceSpecific]
  • [INWPath.IsLocal]
  • [INWPath.IsPerAppVPN]
  • [INWPath.IsRoaming]
  • [INWPath.IsUltraConstrained]
  • [INWPath.IsViable]
  • [INWPath.MaximumDatagramSize]
  • [INWPath.Mtu]
  • [INWPath.NetworkAgentsOfType]
  • [INWPath.OverrideDNSSearchDomains]
  • [INWPath.OverrideDNSServers]
  • [INWPath.OverrideDNSServersAsStrings]
  • [INWPath.Parameters]
  • [INWPath.PolicyID]
  • [INWPath.PrivateDescription]
  • [INWPath.ProxySettings]
  • [INWPath.Reason]
  • [INWPath.ReasonDescription]
  • [INWPath.ScopedInterface]
  • [INWPath.SecondsSinceInterfaceChange]
  • [INWPath.ShouldProbeConnectivity]
  • [INWPath.Status]
  • [INWPath.StatusAsString]
  • [INWPath.SupportsDNS]
  • [INWPath.SupportsIPv4]
  • [INWPath.SupportsIPv6]
  • [INWPath.UnsatisfiedVoluntaryAgentMatchesAddressTriggerImmediately]
  • [INWPath.UsesCompanion]
  • [INWPath.UsesInterfaceType]
  • [INWPath.UsesNetworkAgent]
  • [INWPath.UsesNetworkAgentType]
  • [INWPath.InitWithPath]
  • [INWPath.Constrained]
  • [INWPath.Direct]
  • [INWPath.EligibleForCrazyIvan46]
  • [INWPath.Expensive]
  • [INWPath.Filtered]
  • [INWPath.FlowDivert]
  • [INWPath.Listener]
  • [INWPath.Local]
  • [INWPath.PerAppVPN]
  • [INWPath.Roaming]
  • [INWPath.Viable]

See: https://developer.apple.com/documentation/Network/NWPath

type NSCopying

type NSCopying interface {
	objectivec.IObject
}

NSCopying protocol.

See: https://developer.apple.com/documentation/Network/NSCopying

type NSCopyingObject

type NSCopyingObject struct {
	objectivec.Object
}

NSCopyingObject wraps an existing Objective-C object that conforms to the NSCopying protocol.

func NSCopyingObjectFromID

func NSCopyingObjectFromID(id objc.ID) NSCopyingObject

NSCopyingObjectFromID constructs a NSCopyingObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (NSCopyingObject) BaseObject

func (o NSCopyingObject) BaseObject() objectivec.Object

type NSSecureCoding

type NSSecureCoding interface {
	objectivec.IObject

	// SupportsSecureCoding protocol.
	//
	// See: https://developer.apple.com/documentation/Network/NSSecureCoding/supportsSecureCoding
	SupportsSecureCoding() bool
}

NSSecureCoding protocol.

See: https://developer.apple.com/documentation/Network/NSSecureCoding

type NSSecureCodingObject

type NSSecureCodingObject struct {
	objectivec.Object
}

NSSecureCodingObject wraps an existing Objective-C object that conforms to the NSSecureCoding protocol.

func NSSecureCodingObjectFromID

func NSSecureCodingObjectFromID(id objc.ID) NSSecureCodingObject

NSSecureCodingObjectFromID constructs a NSSecureCodingObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (NSSecureCodingObject) BaseObject

func (o NSSecureCodingObject) BaseObject() objectivec.Object

type NWAdvertiseDescriptor

type NWAdvertiseDescriptor struct {
	objectivec.Object
}

Methods

See: https://developer.apple.com/documentation/Network/NWAdvertiseDescriptor

func NWAdvertiseDescriptorFromID

func NWAdvertiseDescriptorFromID(id objc.ID) NWAdvertiseDescriptor

NWAdvertiseDescriptorFromID constructs a NWAdvertiseDescriptor from an objc.ID.

func NewNWAdvertiseDescriptor

func NewNWAdvertiseDescriptor() NWAdvertiseDescriptor

NewNWAdvertiseDescriptor creates a new NWAdvertiseDescriptor instance.

func (NWAdvertiseDescriptor) Autorelease

Autorelease adds the receiver to the current autorelease pool.

func (NWAdvertiseDescriptor) Init

Init initializes the instance.

func (NWAdvertiseDescriptor) SetInternalDescriptor

func (n NWAdvertiseDescriptor) SetInternalDescriptor(value objectivec.Object)

func (NWAdvertiseDescriptor) SetTxtRecord

func (n NWAdvertiseDescriptor) SetTxtRecord(value foundation.INSData)

type NWAdvertiseDescriptorClass

type NWAdvertiseDescriptorClass struct {
	// contains filtered or unexported fields
}

func GetNWAdvertiseDescriptorClass

func GetNWAdvertiseDescriptorClass() NWAdvertiseDescriptorClass

GetNWAdvertiseDescriptorClass returns the class object for NWAdvertiseDescriptor.

func (NWAdvertiseDescriptorClass) Alloc

Alloc allocates memory for a new instance of the class.

func (NWAdvertiseDescriptorClass) Class

Class returns the underlying Objective-C class pointer.

type NWBrowseDescriptor

type NWBrowseDescriptor struct {
	objectivec.Object
}

Methods

See: https://developer.apple.com/documentation/Network/NWBrowseDescriptor

func NWBrowseDescriptorFromID

func NWBrowseDescriptorFromID(id objc.ID) NWBrowseDescriptor

NWBrowseDescriptorFromID constructs a NWBrowseDescriptor from an objc.ID.

func NewNWBrowseDescriptor

func NewNWBrowseDescriptor() NWBrowseDescriptor

NewNWBrowseDescriptor creates a new NWBrowseDescriptor instance.

func (NWBrowseDescriptor) Autorelease

func (n NWBrowseDescriptor) Autorelease() NWBrowseDescriptor

Autorelease adds the receiver to the current autorelease pool.

func (NWBrowseDescriptor) Browse

func (n NWBrowseDescriptor) Browse(ctx context.Context) error

Browse is a synchronous wrapper around NWBrowseDescriptor.BrowseWithCompletionHandler. It blocks until the completion handler fires or the context is cancelled.

func (NWBrowseDescriptor) Init

Init initializes the instance.

func (NWBrowseDescriptor) SetInternalDescriptor

func (n NWBrowseDescriptor) SetInternalDescriptor(value objectivec.Object)

type NWBrowseDescriptorClass

type NWBrowseDescriptorClass struct {
	// contains filtered or unexported fields
}

func GetNWBrowseDescriptorClass

func GetNWBrowseDescriptorClass() NWBrowseDescriptorClass

GetNWBrowseDescriptorClass returns the class object for NWBrowseDescriptor.

func (NWBrowseDescriptorClass) Alloc

Alloc allocates memory for a new instance of the class.

func (NWBrowseDescriptorClass) Class

func (nc NWBrowseDescriptorClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

func (NWBrowseDescriptorClass) CopyClassForDescriptorType

func (_NWBrowseDescriptorClass NWBrowseDescriptorClass) CopyClassForDescriptorType(type_ int) objc.Class

See: https://developer.apple.com/documentation/Network/NWBrowseDescriptor/copyClassForDescriptorType:

func (NWBrowseDescriptorClass) DescriptorType

func (_NWBrowseDescriptorClass NWBrowseDescriptorClass) DescriptorType() uint32

See: https://developer.apple.com/documentation/Network/NWBrowseDescriptor/descriptorType

func (NWBrowseDescriptorClass) SupportsBrowseCallback

func (_NWBrowseDescriptorClass NWBrowseDescriptorClass) SupportsBrowseCallback() bool

See: https://developer.apple.com/documentation/Network/NWBrowseDescriptor/supportsBrowseCallback

type NWBrowser

type NWBrowser struct {
	objectivec.Object
}

Methods

See: https://developer.apple.com/documentation/Network/NWBrowser

func NWBrowserFromID

func NWBrowserFromID(id objc.ID) NWBrowser

NWBrowserFromID constructs a NWBrowser from an objc.ID.

func NewNWBrowser

func NewNWBrowser() NWBrowser

NewNWBrowser creates a new NWBrowser instance.

func (NWBrowser) Autorelease

func (n NWBrowser) Autorelease() NWBrowser

Autorelease adds the receiver to the current autorelease pool.

func (NWBrowser) Init

func (n NWBrowser) Init() NWBrowser

Init initializes the instance.

func (NWBrowser) SetInternalDiscoveredEndpoints

func (n NWBrowser) SetInternalDiscoveredEndpoints(value foundation.INSSet)

type NWBrowserClass

type NWBrowserClass struct {
	// contains filtered or unexported fields
}

func GetNWBrowserClass

func GetNWBrowserClass() NWBrowserClass

GetNWBrowserClass returns the class object for NWBrowser.

func (NWBrowserClass) Alloc

func (nc NWBrowserClass) Alloc() NWBrowser

Alloc allocates memory for a new instance of the class.

func (NWBrowserClass) Class

func (nc NWBrowserClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type NWConnection

type NWConnection struct {
	objectivec.Object
}

Methods

See: https://developer.apple.com/documentation/Network/NWConnection

func NWConnectionFromID

func NWConnectionFromID(id objc.ID) NWConnection

NWConnectionFromID constructs a NWConnection from an objc.ID.

func NewNWConnection

func NewNWConnection() NWConnection

NewNWConnection creates a new NWConnection instance.

func (NWConnection) Autorelease

func (n NWConnection) Autorelease() NWConnection

Autorelease adds the receiver to the current autorelease pool.

func (NWConnection) Init

func (n NWConnection) Init() NWConnection

Init initializes the instance.

func (NWConnection) SetInternalConnection

func (n NWConnection) SetInternalConnection(value unsafe.Pointer)

func (NWConnection) SetInternalConnectionState

func (n NWConnection) SetInternalConnectionState(value int64)

func (NWConnection) SetInternalError

func (n NWConnection) SetInternalError(value foundation.INSError)

func (NWConnection) SetInternalHasBetterPath

func (n NWConnection) SetInternalHasBetterPath(value bool)

func (NWConnection) SetInternalIsViable

func (n NWConnection) SetInternalIsViable(value bool)

func (NWConnection) SetInternalPath

func (n NWConnection) SetInternalPath(value INWPath)

type NWConnectionClass

type NWConnectionClass struct {
	// contains filtered or unexported fields
}

func GetNWConnectionClass

func GetNWConnectionClass() NWConnectionClass

GetNWConnectionClass returns the class object for NWConnection.

func (NWConnectionClass) Alloc

func (nc NWConnectionClass) Alloc() NWConnection

Alloc allocates memory for a new instance of the class.

func (NWConnectionClass) Class

func (nc NWConnectionClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type NWEndpoint

type NWEndpoint struct {
	objectivec.Object
}

Methods

See: https://developer.apple.com/documentation/Network/NWEndpoint

func NWEndpointFromID

func NWEndpointFromID(id objc.ID) NWEndpoint

NWEndpointFromID constructs a NWEndpoint from an objc.ID.

func NewNWEndpoint

func NewNWEndpoint() NWEndpoint

NewNWEndpoint creates a new NWEndpoint instance.

func (NWEndpoint) Autorelease

func (n NWEndpoint) Autorelease() NWEndpoint

Autorelease adds the receiver to the current autorelease pool.

func (NWEndpoint) Init

func (n NWEndpoint) Init() NWEndpoint

Init initializes the instance.

func (NWEndpoint) SetAlternatePort

func (n NWEndpoint) SetAlternatePort(value uint16)

func (NWEndpoint) SetInterface

func (n NWEndpoint) SetInterface(value INWInterface)

func (NWEndpoint) SetInternalEndpoint

func (n NWEndpoint) SetInternalEndpoint(value objectivec.Object)

func (NWEndpoint) SetRemoteInterfaceType

func (n NWEndpoint) SetRemoteInterfaceType(value int64)

func (NWEndpoint) SetTxtRecord

func (n NWEndpoint) SetTxtRecord(value foundation.INSData)

type NWEndpointClass

type NWEndpointClass struct {
	// contains filtered or unexported fields
}

func GetNWEndpointClass

func GetNWEndpointClass() NWEndpointClass

GetNWEndpointClass returns the class object for NWEndpoint.

func (NWEndpointClass) Alloc

func (nc NWEndpointClass) Alloc() NWEndpoint

Alloc allocates memory for a new instance of the class.

func (NWEndpointClass) Class

func (nc NWEndpointClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

func (NWEndpointClass) CopyClassForEndpointType

func (_NWEndpointClass NWEndpointClass) CopyClassForEndpointType(type_ int) objc.Class

See: https://developer.apple.com/documentation/Network/NWEndpoint/copyClassForEndpointType:

func (NWEndpointClass) EndpointType

func (_NWEndpointClass NWEndpointClass) EndpointType() uint32

See: https://developer.apple.com/documentation/Network/NWEndpoint/endpointType

type NWInterface

type NWInterface struct {
	objectivec.Object
}

Methods

See: https://developer.apple.com/documentation/Network/NWInterface

func NWInterfaceFromID

func NWInterfaceFromID(id objc.ID) NWInterface

NWInterfaceFromID constructs a NWInterface from an objc.ID.

func NewNWInterface

func NewNWInterface() NWInterface

NewNWInterface creates a new NWInterface instance.

func (NWInterface) Autorelease

func (n NWInterface) Autorelease() NWInterface

Autorelease adds the receiver to the current autorelease pool.

func (NWInterface) Init

func (n NWInterface) Init() NWInterface

Init initializes the instance.

func (NWInterface) SetInternalInterface

func (n NWInterface) SetInternalInterface(value objectivec.Object)

type NWInterfaceClass

type NWInterfaceClass struct {
	// contains filtered or unexported fields
}

func GetNWInterfaceClass

func GetNWInterfaceClass() NWInterfaceClass

GetNWInterfaceClass returns the class object for NWInterface.

func (NWInterfaceClass) Alloc

func (nc NWInterfaceClass) Alloc() NWInterface

Alloc allocates memory for a new instance of the class.

func (NWInterfaceClass) Class

func (nc NWInterfaceClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

func (NWInterfaceClass) SupportsSecureCoding

func (_NWInterfaceClass NWInterfaceClass) SupportsSecureCoding() bool

See: https://developer.apple.com/documentation/Network/NWInterface/supportsSecureCoding

type NWParameters

type NWParameters struct {
	objectivec.Object
}

Methods

See: https://developer.apple.com/documentation/Network/NWParameters

func NWParametersCreatePlainTCP

func NWParametersCreatePlainTCP(configureTCP NWParametersConfigureProtocolBlock) NWParameters

NWParametersCreatePlainTCP initializes parameters for cleartext TCP.

func NWParametersFromID

func NWParametersFromID(id objc.ID) NWParameters

NWParametersFromID constructs a NWParameters from an objc.ID.

func NewNWParameters

func NewNWParameters() NWParameters

NewNWParameters creates a new NWParameters instance.

func TryNWParametersCreatePlainTCP

func TryNWParametersCreatePlainTCP(configureTCP NWParametersConfigureProtocolBlock) (NWParameters, error)

TryNWParametersCreatePlainTCP initializes parameters for cleartext TCP.

func (NWParameters) Autorelease

func (n NWParameters) Autorelease() NWParameters

Autorelease adds the receiver to the current autorelease pool.

func (NWParameters) Init

func (n NWParameters) Init() NWParameters

Init initializes the instance.

func (NWParameters) SetAccount

func (n NWParameters) SetAccount(value string)

func (NWParameters) SetAllowDuplicateStateUpdates

func (n NWParameters) SetAllowDuplicateStateUpdates(value bool)

func (NWParameters) SetAllowJoiningConnectedFd

func (n NWParameters) SetAllowJoiningConnectedFd(value bool)

func (NWParameters) SetAllowSocketAccess

func (n NWParameters) SetAllowSocketAccess(value bool)

func (NWParameters) SetAllowUnusableAddresses

func (n NWParameters) SetAllowUnusableAddresses(value bool)

func (NWParameters) SetAttachProtocolListener

func (n NWParameters) SetAttachProtocolListener(value bool)

func (NWParameters) SetDataMode

func (n NWParameters) SetDataMode(value uint64)

func (NWParameters) SetDisableNagleAlgorithm

func (n NWParameters) SetDisableNagleAlgorithm(value bool)

func (NWParameters) SetDiscretionary

func (n NWParameters) SetDiscretionary(value bool)

func (NWParameters) SetEffectiveBundleID

func (n NWParameters) SetEffectiveBundleID(value string)

func (NWParameters) SetEffectiveProcessUUID

func (n NWParameters) SetEffectiveProcessUUID(value foundation.NSUUID)

func (NWParameters) SetEnableTFO

func (n NWParameters) SetEnableTFO(value bool)

func (NWParameters) SetEnableTFONoCookie

func (n NWParameters) SetEnableTFONoCookie(value bool)

func (NWParameters) SetEnableTLS

func (n NWParameters) SetEnableTLS(value bool)

func (NWParameters) SetFastOpenForceEnable

func (n NWParameters) SetFastOpenForceEnable(value bool)

func (NWParameters) SetHttpsProxyIsOpaque

func (n NWParameters) SetHttpsProxyIsOpaque(value bool)

func (NWParameters) SetHttpsProxyOverTLS

func (n NWParameters) SetHttpsProxyOverTLS(value bool)

func (NWParameters) SetIgnoreResolverStats

func (n NWParameters) SetIgnoreResolverStats(value bool)

func (NWParameters) SetIndefinite

func (n NWParameters) SetIndefinite(value bool)

func (NWParameters) SetInternalParameters

func (n NWParameters) SetInternalParameters(value objectivec.Object)

func (NWParameters) SetKeepAlive

func (n NWParameters) SetKeepAlive(value bool)

func (NWParameters) SetKeepAliveIdleTime

func (n NWParameters) SetKeepAliveIdleTime(value uint64)

func (NWParameters) SetKeepAliveInterval

func (n NWParameters) SetKeepAliveInterval(value uint64)

func (NWParameters) SetKeepAliveOffload

func (n NWParameters) SetKeepAliveOffload(value bool)

func (NWParameters) SetLocalAddress

func (n NWParameters) SetLocalAddress(value unsafe.Pointer)

func (NWParameters) SetMaximumSSLProtocolVersion

func (n NWParameters) SetMaximumSSLProtocolVersion(value uint64)

func (NWParameters) SetMaximumSSLProtocolVersionInternal

func (n NWParameters) SetMaximumSSLProtocolVersionInternal(value uint64)

func (NWParameters) SetMetadata

func (n NWParameters) SetMetadata(value foundation.INSData)

func (NWParameters) SetMinimumSSLProtocolVersion

func (n NWParameters) SetMinimumSSLProtocolVersion(value uint64)

func (NWParameters) SetMinimumSSLProtocolVersionInternal

func (n NWParameters) SetMinimumSSLProtocolVersionInternal(value uint64)

func (NWParameters) SetMultipath

func (n NWParameters) SetMultipath(value bool)

func (NWParameters) SetMultipathForceEnable

func (n NWParameters) SetMultipathForceEnable(value bool)

func (NWParameters) SetMultipathService

func (n NWParameters) SetMultipathService(value int)

func (NWParameters) SetNoProxy

func (n NWParameters) SetNoProxy(value bool)

func (NWParameters) SetParentID

func (n NWParameters) SetParentID(value foundation.NSUUID)

func (NWParameters) SetPid

func (n NWParameters) SetPid(value int)

func (NWParameters) SetPreferNoProxy

func (n NWParameters) SetPreferNoProxy(value bool)

func (NWParameters) SetProcessUUID

func (n NWParameters) SetProcessUUID(value foundation.NSUUID)

func (NWParameters) SetProhibitConstrainedPaths

func (n NWParameters) SetProhibitConstrainedPaths(value bool)

func (NWParameters) SetProhibitExpensivePaths

func (n NWParameters) SetProhibitExpensivePaths(value bool)

func (NWParameters) SetProhibitFallback

func (n NWParameters) SetProhibitFallback(value bool)

func (NWParameters) SetProhibitJoiningProtocols

func (n NWParameters) SetProhibitJoiningProtocols(value bool)

func (NWParameters) SetProhibitRoaming

func (n NWParameters) SetProhibitRoaming(value bool)

func (NWParameters) SetProtocolTransforms

func (n NWParameters) SetProtocolTransforms(value foundation.INSArray)

func (NWParameters) SetProxyConfiguration

func (n NWParameters) SetProxyConfiguration(value foundation.INSDictionary)

func (NWParameters) SetReduceBuffering

func (n NWParameters) SetReduceBuffering(value bool)

func (NWParameters) SetRequiredAddressFamily

func (n NWParameters) SetRequiredAddressFamily(value byte)

func (NWParameters) SetRequiredCompanionProxyInterfaceType

func (n NWParameters) SetRequiredCompanionProxyInterfaceType(value int64)

func (NWParameters) SetRequiredInterface

func (n NWParameters) SetRequiredInterface(value INWInterface)

func (NWParameters) SetRequiredInterfaceSubtype

func (n NWParameters) SetRequiredInterfaceSubtype(value int64)

func (NWParameters) SetRequiredInterfaceType

func (n NWParameters) SetRequiredInterfaceType(value int64)

func (NWParameters) SetResolvePTR

func (n NWParameters) SetResolvePTR(value bool)

func (NWParameters) SetReuseLocalAddress

func (n NWParameters) SetReuseLocalAddress(value bool)

func (NWParameters) SetSSLCipherSuites

func (n NWParameters) SetSSLCipherSuites(value foundation.INSSet)

func (NWParameters) SetSSLCipherSuitesInternal

func (n NWParameters) SetSSLCipherSuitesInternal(value foundation.INSSet)

func (NWParameters) SetTLSSessionID

func (n NWParameters) SetTLSSessionID(value foundation.INSData)

func (NWParameters) SetTrafficClass

func (n NWParameters) SetTrafficClass(value uint64)

func (NWParameters) SetTrustInvalidCertificates

func (n NWParameters) SetTrustInvalidCertificates(value bool)

func (NWParameters) SetUid

func (n NWParameters) SetUid(value uint32)

func (NWParameters) SetUrl

func (n NWParameters) SetUrl(value foundation.INSURL)

func (NWParameters) SetUseAWDL

func (n NWParameters) SetUseAWDL(value bool)

func (NWParameters) SetUseLongOutstandingQueries

func (n NWParameters) SetUseLongOutstandingQueries(value bool)

func (NWParameters) SetUseP2P

func (n NWParameters) SetUseP2P(value bool)

type NWParametersClass

type NWParametersClass struct {
	// contains filtered or unexported fields
}

func GetNWParametersClass

func GetNWParametersClass() NWParametersClass

GetNWParametersClass returns the class object for NWParameters.

func (NWParametersClass) Alloc

func (nc NWParametersClass) Alloc() NWParameters

Alloc allocates memory for a new instance of the class.

func (NWParametersClass) Class

func (nc NWParametersClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

func (NWParametersClass) SupportsSecureCoding

func (_NWParametersClass NWParametersClass) SupportsSecureCoding() bool

See: https://developer.apple.com/documentation/Network/NWParameters/supportsSecureCoding

type NWPath

type NWPath struct {
	objectivec.Object
}

Methods

See: https://developer.apple.com/documentation/Network/NWPath

func NWPathFromID

func NWPathFromID(id objc.ID) NWPath

NWPathFromID constructs a NWPath from an objc.ID.

func NewNWPath

func NewNWPath() NWPath

NewNWPath creates a new NWPath instance.

func (NWPath) Autorelease

func (n NWPath) Autorelease() NWPath

Autorelease adds the receiver to the current autorelease pool.

func (NWPath) Init

func (n NWPath) Init() NWPath

Init initializes the instance.

type NWPathClass

type NWPathClass struct {
	// contains filtered or unexported fields
}

func GetNWPathClass

func GetNWPathClass() NWPathClass

GetNWPathClass returns the class object for NWPath.

func (NWPathClass) Alloc

func (nc NWPathClass) Alloc() NWPath

Alloc allocates memory for a new instance of the class.

func (NWPathClass) Class

func (nc NWPathClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type NWPrettyDescription

type NWPrettyDescription interface {
	objectivec.IObject
}

NWPrettyDescription protocol.

See: https://developer.apple.com/documentation/Network/NWPrettyDescription

type NWPrettyDescriptionObject

type NWPrettyDescriptionObject struct {
	objectivec.Object
}

NWPrettyDescriptionObject wraps an existing Objective-C object that conforms to the NWPrettyDescription protocol.

func NWPrettyDescriptionObjectFromID

func NWPrettyDescriptionObjectFromID(id objc.ID) NWPrettyDescriptionObject

NWPrettyDescriptionObjectFromID constructs a NWPrettyDescriptionObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (NWPrettyDescriptionObject) BaseObject

Jump to

Keyboard shortcuts

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