cfnetwork

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package cfnetwork provides purego-based Go bindings for the macOS CFNetwork framework.

Apple documentation: https://developer.apple.com/documentation/cfnetwork

Index

Constants

View Source
const (
	KCFStreamErrorSOCKS4IdConflict    = 93
	KCFStreamErrorSOCKS4IdentdFailed  = 92
	KCFStreamErrorSOCKS4RequestFailed = 91
)
View Source
const (
	KCFStreamErrorSOCKS5BadResponseAddr     = 1
	KCFStreamErrorSOCKS5BadState            = 2
	KCFStreamErrorSOCKSUnknownClientVersion = 3
)
View Source
const (
	KCFStreamErrorSOCKS4SubDomainResponse   = 2
	KCFStreamErrorSOCKS5SubDomainMethod     = 4
	KCFStreamErrorSOCKS5SubDomainResponse   = 5
	KCFStreamErrorSOCKS5SubDomainUserPass   = 3
	KCFStreamErrorSOCKSSubDomainNone        = 0
	KCFStreamErrorSOCKSSubDomainVersionCode = 1
)
View Source
const (
	KSOCKS5NoAcceptableMethod = 255
)

Variables

This section is empty.

Functions

func CFFTPCreateParsedResourceListing

func CFFTPCreateParsedResourceListing(alloc unsafe.Pointer, buffer *uint8, bufferLength int, parsed unsafe.Pointer) int

func CFHTTPAuthenticationAppliesToRequest

func CFHTTPAuthenticationAppliesToRequest(auth unsafe.Pointer, request unsafe.Pointer) uint8

func CFHTTPAuthenticationCopyDomains

func CFHTTPAuthenticationCopyDomains(auth unsafe.Pointer) unsafe.Pointer

func CFHTTPAuthenticationCopyMethod

func CFHTTPAuthenticationCopyMethod(auth unsafe.Pointer) unsafe.Pointer

func CFHTTPAuthenticationCopyRealm

func CFHTTPAuthenticationCopyRealm(auth unsafe.Pointer) unsafe.Pointer

func CFHTTPAuthenticationCreateFromResponse

func CFHTTPAuthenticationCreateFromResponse(alloc unsafe.Pointer, response unsafe.Pointer) unsafe.Pointer

func CFHTTPAuthenticationGetTypeID

func CFHTTPAuthenticationGetTypeID() uint

func CFHTTPAuthenticationIsValid

func CFHTTPAuthenticationIsValid(auth unsafe.Pointer, error_ *corefoundation.CFStreamError) uint8

func CFHTTPAuthenticationRequiresAccountDomain

func CFHTTPAuthenticationRequiresAccountDomain(auth unsafe.Pointer) uint8

func CFHTTPAuthenticationRequiresOrderedRequests

func CFHTTPAuthenticationRequiresOrderedRequests(auth unsafe.Pointer) uint8

func CFHTTPAuthenticationRequiresUserNameAndPassword

func CFHTTPAuthenticationRequiresUserNameAndPassword(auth unsafe.Pointer) uint8

func CFHTTPMessageAddAuthentication

func CFHTTPMessageAddAuthentication(request unsafe.Pointer, authenticationFailureResponse unsafe.Pointer, username unsafe.Pointer, password unsafe.Pointer, authenticationScheme unsafe.Pointer, forProxy uint8) uint8

func CFHTTPMessageAppendBytes

func CFHTTPMessageAppendBytes(message unsafe.Pointer, newBytes *uint8, numBytes int) uint8

func CFHTTPMessageApplyCredentialDictionary

func CFHTTPMessageApplyCredentialDictionary(request unsafe.Pointer, auth unsafe.Pointer, dict unsafe.Pointer, error_ *corefoundation.CFStreamError) uint8

func CFHTTPMessageApplyCredentials

func CFHTTPMessageApplyCredentials(request unsafe.Pointer, auth unsafe.Pointer, username unsafe.Pointer, password unsafe.Pointer, error_ *corefoundation.CFStreamError) uint8

func CFHTTPMessageCopyAllHeaderFields

func CFHTTPMessageCopyAllHeaderFields(message unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageCopyBody

func CFHTTPMessageCopyBody(message unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageCopyHeaderFieldValue

func CFHTTPMessageCopyHeaderFieldValue(message unsafe.Pointer, headerField unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageCopyRequestMethod

func CFHTTPMessageCopyRequestMethod(request unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageCopyRequestURL

func CFHTTPMessageCopyRequestURL(request unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageCopyResponseStatusLine

func CFHTTPMessageCopyResponseStatusLine(response unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageCopySerializedMessage

func CFHTTPMessageCopySerializedMessage(message unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageCopyVersion

func CFHTTPMessageCopyVersion(message unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageCreateCopy

func CFHTTPMessageCreateCopy(alloc unsafe.Pointer, message unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageCreateEmpty

func CFHTTPMessageCreateEmpty(alloc unsafe.Pointer, isRequest uint8) unsafe.Pointer

func CFHTTPMessageCreateRequest

func CFHTTPMessageCreateRequest(alloc unsafe.Pointer, requestMethod unsafe.Pointer, url unsafe.Pointer, httpVersion unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageCreateResponse

func CFHTTPMessageCreateResponse(alloc unsafe.Pointer, statusCode int, statusDescription unsafe.Pointer, httpVersion unsafe.Pointer) unsafe.Pointer

func CFHTTPMessageGetResponseStatusCode

func CFHTTPMessageGetResponseStatusCode(response unsafe.Pointer) int

func CFHTTPMessageGetTypeID

func CFHTTPMessageGetTypeID() uint

func CFHTTPMessageIsHeaderComplete

func CFHTTPMessageIsHeaderComplete(message unsafe.Pointer) uint8

func CFHTTPMessageIsRequest

func CFHTTPMessageIsRequest(message unsafe.Pointer) uint8

func CFHTTPMessageSetBody

func CFHTTPMessageSetBody(message unsafe.Pointer, bodyData unsafe.Pointer)

func CFHTTPMessageSetHeaderFieldValue

func CFHTTPMessageSetHeaderFieldValue(message unsafe.Pointer, headerField unsafe.Pointer, value unsafe.Pointer)

func CFHostCancelInfoResolution deprecated

func CFHostCancelInfoResolution(theHost unsafe.Pointer, info CFHostInfoType)

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostCreateCopy deprecated

func CFHostCreateCopy(alloc unsafe.Pointer, host unsafe.Pointer) unsafe.Pointer

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostCreateWithAddress deprecated

func CFHostCreateWithAddress(allocator unsafe.Pointer, addr unsafe.Pointer) unsafe.Pointer

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostCreateWithName deprecated

func CFHostCreateWithName(allocator unsafe.Pointer, hostname unsafe.Pointer) unsafe.Pointer

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostGetAddressing deprecated

func CFHostGetAddressing(theHost unsafe.Pointer, hasBeenResolved *uint8) unsafe.Pointer

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostGetNames deprecated

func CFHostGetNames(theHost unsafe.Pointer, hasBeenResolved *uint8) unsafe.Pointer

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostGetReachability deprecated

func CFHostGetReachability(theHost unsafe.Pointer, hasBeenResolved *uint8) unsafe.Pointer

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostGetTypeID deprecated

func CFHostGetTypeID() uint

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostScheduleWithRunLoop deprecated

func CFHostScheduleWithRunLoop(theHost unsafe.Pointer, runLoop unsafe.Pointer, runLoopMode unsafe.Pointer)

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostSetClient deprecated

func CFHostSetClient(theHost unsafe.Pointer, clientCB unsafe.Pointer, clientContext *CFHostClientContext) uint8

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostStartInfoResolution deprecated

func CFHostStartInfoResolution(theHost unsafe.Pointer, info CFHostInfoType, error_ *corefoundation.CFStreamError) uint8

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFHostUnscheduleFromRunLoop deprecated

func CFHostUnscheduleFromRunLoop(theHost unsafe.Pointer, runLoop unsafe.Pointer, runLoopMode unsafe.Pointer)

Deprecated: Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>

func CFNetDiagnosticCopyNetworkStatusPassively

func CFNetDiagnosticCopyNetworkStatusPassively(details unsafe.Pointer, description unsafe.Pointer) int

func CFNetDiagnosticCreateWithStreams

func CFNetDiagnosticCreateWithStreams(alloc unsafe.Pointer, readStream unsafe.Pointer, writeStream unsafe.Pointer) unsafe.Pointer

func CFNetDiagnosticCreateWithURL

func CFNetDiagnosticCreateWithURL(alloc unsafe.Pointer, url unsafe.Pointer) unsafe.Pointer

func CFNetDiagnosticDiagnoseProblemInteractively

func CFNetDiagnosticDiagnoseProblemInteractively(details unsafe.Pointer) int

func CFNetDiagnosticSetName

func CFNetDiagnosticSetName(details unsafe.Pointer, name unsafe.Pointer)

func CFNetServiceBrowserCreate deprecated

func CFNetServiceBrowserCreate(alloc unsafe.Pointer, clientCB unsafe.Pointer, clientContext *CFNetServiceClientContext) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceBrowserGetTypeID deprecated

func CFNetServiceBrowserGetTypeID() uint

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceBrowserInvalidate deprecated

func CFNetServiceBrowserInvalidate(browser unsafe.Pointer)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceBrowserScheduleWithRunLoop deprecated

func CFNetServiceBrowserScheduleWithRunLoop(browser unsafe.Pointer, runLoop unsafe.Pointer, runLoopMode unsafe.Pointer)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceBrowserSearchForDomains deprecated

func CFNetServiceBrowserSearchForDomains(browser unsafe.Pointer, registrationDomains uint8, error_ *corefoundation.CFStreamError) uint8

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceBrowserSearchForServices deprecated

func CFNetServiceBrowserSearchForServices(browser unsafe.Pointer, domain unsafe.Pointer, serviceType unsafe.Pointer, error_ *corefoundation.CFStreamError) uint8

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceBrowserStopSearch deprecated

func CFNetServiceBrowserStopSearch(browser unsafe.Pointer, error_ *corefoundation.CFStreamError)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceBrowserUnscheduleFromRunLoop deprecated

func CFNetServiceBrowserUnscheduleFromRunLoop(browser unsafe.Pointer, runLoop unsafe.Pointer, runLoopMode unsafe.Pointer)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceCancel deprecated

func CFNetServiceCancel(theService unsafe.Pointer)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceCreate deprecated

func CFNetServiceCreate(alloc unsafe.Pointer, domain unsafe.Pointer, serviceType unsafe.Pointer, name unsafe.Pointer, port int) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceCreateCopy deprecated

func CFNetServiceCreateCopy(alloc unsafe.Pointer, service unsafe.Pointer) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceCreateDictionaryWithTXTData deprecated

func CFNetServiceCreateDictionaryWithTXTData(alloc unsafe.Pointer, txtRecord unsafe.Pointer) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceCreateTXTDataWithDictionary deprecated

func CFNetServiceCreateTXTDataWithDictionary(alloc unsafe.Pointer, keyValuePairs unsafe.Pointer) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceGetAddressing deprecated

func CFNetServiceGetAddressing(theService unsafe.Pointer) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceGetDomain deprecated

func CFNetServiceGetDomain(theService unsafe.Pointer) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceGetName deprecated

func CFNetServiceGetName(theService unsafe.Pointer) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceGetPortNumber deprecated

func CFNetServiceGetPortNumber(theService unsafe.Pointer) int

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceGetTXTData deprecated

func CFNetServiceGetTXTData(theService unsafe.Pointer) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceGetTargetHost deprecated

func CFNetServiceGetTargetHost(theService unsafe.Pointer) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceGetType deprecated

func CFNetServiceGetType(theService unsafe.Pointer) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceGetTypeID deprecated

func CFNetServiceGetTypeID() uint

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceMonitorCreate deprecated

func CFNetServiceMonitorCreate(alloc unsafe.Pointer, theService unsafe.Pointer, clientCB unsafe.Pointer, clientContext *CFNetServiceClientContext) unsafe.Pointer

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceMonitorGetTypeID deprecated

func CFNetServiceMonitorGetTypeID() uint

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceMonitorInvalidate deprecated

func CFNetServiceMonitorInvalidate(monitor unsafe.Pointer)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceMonitorScheduleWithRunLoop deprecated

func CFNetServiceMonitorScheduleWithRunLoop(monitor unsafe.Pointer, runLoop unsafe.Pointer, runLoopMode unsafe.Pointer)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceMonitorStart deprecated

func CFNetServiceMonitorStart(monitor unsafe.Pointer, recordType CFNetServiceMonitorType, error_ *corefoundation.CFStreamError) uint8

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceMonitorStop deprecated

func CFNetServiceMonitorStop(monitor unsafe.Pointer, error_ *corefoundation.CFStreamError)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceMonitorUnscheduleFromRunLoop deprecated

func CFNetServiceMonitorUnscheduleFromRunLoop(monitor unsafe.Pointer, runLoop unsafe.Pointer, runLoopMode unsafe.Pointer)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceRegister

func CFNetServiceRegister(theService unsafe.Pointer, error_ *corefoundation.CFStreamError) uint8

func CFNetServiceRegisterWithOptions deprecated

func CFNetServiceRegisterWithOptions(theService unsafe.Pointer, options uint, error_ *corefoundation.CFStreamError) uint8

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceResolve

func CFNetServiceResolve(theService unsafe.Pointer, error_ *corefoundation.CFStreamError) uint8

func CFNetServiceResolveWithTimeout deprecated

func CFNetServiceResolveWithTimeout(theService unsafe.Pointer, timeout float64, error_ *corefoundation.CFStreamError) uint8

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceScheduleWithRunLoop deprecated

func CFNetServiceScheduleWithRunLoop(theService unsafe.Pointer, runLoop unsafe.Pointer, runLoopMode unsafe.Pointer)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceSetClient deprecated

func CFNetServiceSetClient(theService unsafe.Pointer, clientCB unsafe.Pointer, clientContext *CFNetServiceClientContext) uint8

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceSetTXTData deprecated

func CFNetServiceSetTXTData(theService unsafe.Pointer, txtRecord unsafe.Pointer) uint8

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetServiceUnscheduleFromRunLoop deprecated

func CFNetServiceUnscheduleFromRunLoop(theService unsafe.Pointer, runLoop unsafe.Pointer, runLoopMode unsafe.Pointer)

Deprecated: Use nw_browser_t or nw_listener_t in Network framework instead

func CFNetworkCopyProxiesForAutoConfigurationScript

func CFNetworkCopyProxiesForAutoConfigurationScript(proxyAutoConfigurationScript unsafe.Pointer, targetURL unsafe.Pointer, error_ unsafe.Pointer) unsafe.Pointer

func CFNetworkCopyProxiesForURL

func CFNetworkCopyProxiesForURL(url unsafe.Pointer, proxySettings unsafe.Pointer) unsafe.Pointer

func CFNetworkCopySystemProxySettings

func CFNetworkCopySystemProxySettings() unsafe.Pointer

func CFNetworkExecuteProxyAutoConfigurationScript

func CFNetworkExecuteProxyAutoConfigurationScript(proxyAutoConfigurationScript unsafe.Pointer, targetURL unsafe.Pointer, cb unsafe.Pointer, clientContext *corefoundation.CFStreamClientContext) unsafe.Pointer

func CFNetworkExecuteProxyAutoConfigurationURL

func CFNetworkExecuteProxyAutoConfigurationURL(proxyAutoConfigURL unsafe.Pointer, targetURL unsafe.Pointer, cb unsafe.Pointer, clientContext *corefoundation.CFStreamClientContext) unsafe.Pointer

func CFReadStreamCreateForHTTPRequest

func CFReadStreamCreateForHTTPRequest(alloc unsafe.Pointer, request unsafe.Pointer) unsafe.Pointer

func CFReadStreamCreateForStreamedHTTPRequest

func CFReadStreamCreateForStreamedHTTPRequest(alloc unsafe.Pointer, requestHeaders unsafe.Pointer, requestBody unsafe.Pointer) unsafe.Pointer

func CFReadStreamCreateWithFTPURL

func CFReadStreamCreateWithFTPURL(alloc unsafe.Pointer, ftpURL unsafe.Pointer) unsafe.Pointer

func CFSocketStreamSOCKSGetError

func CFSocketStreamSOCKSGetError(error_ *corefoundation.CFStreamError) int

func CFSocketStreamSOCKSGetErrorSubdomain

func CFSocketStreamSOCKSGetErrorSubdomain(error_ *corefoundation.CFStreamError) int

func CFStreamCreatePairWithSocketToCFHost deprecated

func CFStreamCreatePairWithSocketToCFHost(alloc unsafe.Pointer, host unsafe.Pointer, port int, readStream unsafe.Pointer, writeStream unsafe.Pointer)

Deprecated: Use Network framework instead

func CFStreamCreatePairWithSocketToNetService deprecated

func CFStreamCreatePairWithSocketToNetService(alloc unsafe.Pointer, service unsafe.Pointer, readStream unsafe.Pointer, writeStream unsafe.Pointer)

Deprecated: Use Network framework instead

func CFWriteStreamCreateWithFTPURL

func CFWriteStreamCreateWithFTPURL(alloc unsafe.Pointer, ftpURL unsafe.Pointer) unsafe.Pointer

func KCFDNSServiceFailureKey

func KCFDNSServiceFailureKey() uintptr

func KCFErrorDomainCFNetwork

func KCFErrorDomainCFNetwork() uintptr

func KCFErrorDomainWinSock

func KCFErrorDomainWinSock() uintptr

func KCFFTPResourceGroup

func KCFFTPResourceGroup() uintptr
func KCFFTPResourceLink() uintptr

func KCFFTPResourceModDate

func KCFFTPResourceModDate() uintptr

func KCFFTPResourceMode

func KCFFTPResourceMode() uintptr

func KCFFTPResourceName

func KCFFTPResourceName() uintptr

func KCFFTPResourceOwner

func KCFFTPResourceOwner() uintptr

func KCFFTPResourceSize

func KCFFTPResourceSize() uintptr

func KCFFTPResourceType

func KCFFTPResourceType() uintptr

func KCFFTPStatusCodeKey

func KCFFTPStatusCodeKey() uintptr

func KCFGetAddrInfoFailureKey

func KCFGetAddrInfoFailureKey() uintptr

func KCFHTTPAuthenticationAccountDomain

func KCFHTTPAuthenticationAccountDomain() uintptr

func KCFHTTPAuthenticationPassword

func KCFHTTPAuthenticationPassword() uintptr

func KCFHTTPAuthenticationSchemeBasic

func KCFHTTPAuthenticationSchemeBasic() uintptr

func KCFHTTPAuthenticationSchemeDigest

func KCFHTTPAuthenticationSchemeDigest() uintptr

func KCFHTTPAuthenticationSchemeKerberos

func KCFHTTPAuthenticationSchemeKerberos() uintptr

func KCFHTTPAuthenticationSchemeNTLM

func KCFHTTPAuthenticationSchemeNTLM() uintptr

func KCFHTTPAuthenticationSchemeNegotiate

func KCFHTTPAuthenticationSchemeNegotiate() uintptr

func KCFHTTPAuthenticationSchemeNegotiate2

func KCFHTTPAuthenticationSchemeNegotiate2() uintptr

func KCFHTTPAuthenticationSchemeXMobileMeAuthToken

func KCFHTTPAuthenticationSchemeXMobileMeAuthToken() uintptr

func KCFHTTPAuthenticationUsername

func KCFHTTPAuthenticationUsername() uintptr

func KCFHTTPVersion1_0

func KCFHTTPVersion1_0() uintptr

func KCFHTTPVersion1_1

func KCFHTTPVersion1_1() uintptr

func KCFHTTPVersion2_0

func KCFHTTPVersion2_0() uintptr

func KCFHTTPVersion3_0

func KCFHTTPVersion3_0() uintptr

func KCFNetworkProxiesExceptionsList

func KCFNetworkProxiesExceptionsList() uintptr

func KCFNetworkProxiesExcludeSimpleHostnames

func KCFNetworkProxiesExcludeSimpleHostnames() uintptr

func KCFNetworkProxiesFTPEnable

func KCFNetworkProxiesFTPEnable() uintptr

func KCFNetworkProxiesFTPPassive

func KCFNetworkProxiesFTPPassive() uintptr

func KCFNetworkProxiesFTPPort

func KCFNetworkProxiesFTPPort() uintptr

func KCFNetworkProxiesFTPProxy

func KCFNetworkProxiesFTPProxy() uintptr

func KCFNetworkProxiesGopherEnable

func KCFNetworkProxiesGopherEnable() uintptr

func KCFNetworkProxiesGopherPort

func KCFNetworkProxiesGopherPort() uintptr

func KCFNetworkProxiesGopherProxy

func KCFNetworkProxiesGopherProxy() uintptr

func KCFNetworkProxiesHTTPEnable

func KCFNetworkProxiesHTTPEnable() uintptr

func KCFNetworkProxiesHTTPPort

func KCFNetworkProxiesHTTPPort() uintptr

func KCFNetworkProxiesHTTPProxy

func KCFNetworkProxiesHTTPProxy() uintptr

func KCFNetworkProxiesHTTPSEnable

func KCFNetworkProxiesHTTPSEnable() uintptr

func KCFNetworkProxiesHTTPSPort

func KCFNetworkProxiesHTTPSPort() uintptr

func KCFNetworkProxiesHTTPSProxy

func KCFNetworkProxiesHTTPSProxy() uintptr

func KCFNetworkProxiesProxyAutoConfigEnable

func KCFNetworkProxiesProxyAutoConfigEnable() uintptr

func KCFNetworkProxiesProxyAutoConfigJavaScript

func KCFNetworkProxiesProxyAutoConfigJavaScript() uintptr

func KCFNetworkProxiesProxyAutoConfigURLString

func KCFNetworkProxiesProxyAutoConfigURLString() uintptr

func KCFNetworkProxiesProxyAutoDiscoveryEnable

func KCFNetworkProxiesProxyAutoDiscoveryEnable() uintptr

func KCFNetworkProxiesRTSPEnable

func KCFNetworkProxiesRTSPEnable() uintptr

func KCFNetworkProxiesRTSPPort

func KCFNetworkProxiesRTSPPort() uintptr

func KCFNetworkProxiesRTSPProxy

func KCFNetworkProxiesRTSPProxy() uintptr

func KCFNetworkProxiesSOCKSEnable

func KCFNetworkProxiesSOCKSEnable() uintptr

func KCFNetworkProxiesSOCKSPort

func KCFNetworkProxiesSOCKSPort() uintptr

func KCFNetworkProxiesSOCKSProxy

func KCFNetworkProxiesSOCKSProxy() uintptr

func KCFProxyAutoConfigurationHTTPResponseKey

func KCFProxyAutoConfigurationHTTPResponseKey() uintptr

func KCFProxyAutoConfigurationJavaScriptKey

func KCFProxyAutoConfigurationJavaScriptKey() uintptr

func KCFProxyAutoConfigurationURLKey

func KCFProxyAutoConfigurationURLKey() uintptr

func KCFProxyHostNameKey

func KCFProxyHostNameKey() uintptr

func KCFProxyPasswordKey

func KCFProxyPasswordKey() uintptr

func KCFProxyPortNumberKey

func KCFProxyPortNumberKey() uintptr

func KCFProxyTypeAutoConfigurationJavaScript

func KCFProxyTypeAutoConfigurationJavaScript() uintptr

func KCFProxyTypeAutoConfigurationURL

func KCFProxyTypeAutoConfigurationURL() uintptr

func KCFProxyTypeFTP

func KCFProxyTypeFTP() uintptr

func KCFProxyTypeHTTP

func KCFProxyTypeHTTP() uintptr

func KCFProxyTypeHTTPS

func KCFProxyTypeHTTPS() uintptr

func KCFProxyTypeKey

func KCFProxyTypeKey() uintptr

func KCFProxyTypeNone

func KCFProxyTypeNone() uintptr

func KCFProxyTypeSOCKS

func KCFProxyTypeSOCKS() uintptr

func KCFProxyUsernameKey

func KCFProxyUsernameKey() uintptr

func KCFSOCKSNegotiationMethodKey

func KCFSOCKSNegotiationMethodKey() uintptr

func KCFSOCKSStatusCodeKey

func KCFSOCKSStatusCodeKey() uintptr

func KCFSOCKSVersionKey

func KCFSOCKSVersionKey() uintptr

func KCFStreamErrorDomainFTP

func KCFStreamErrorDomainFTP() int

func KCFStreamErrorDomainHTTP

func KCFStreamErrorDomainHTTP() int

func KCFStreamErrorDomainMach

func KCFStreamErrorDomainMach() int

func KCFStreamErrorDomainNetDB

func KCFStreamErrorDomainNetDB() int

func KCFStreamErrorDomainNetServices

func KCFStreamErrorDomainNetServices() int

func KCFStreamErrorDomainSystemConfiguration

func KCFStreamErrorDomainSystemConfiguration() int

func KCFStreamErrorDomainWinSock

func KCFStreamErrorDomainWinSock() int

func KCFStreamNetworkServiceType

func KCFStreamNetworkServiceType() uintptr

func KCFStreamNetworkServiceTypeAVStreaming

func KCFStreamNetworkServiceTypeAVStreaming() uintptr

func KCFStreamNetworkServiceTypeBackground

func KCFStreamNetworkServiceTypeBackground() uintptr

func KCFStreamNetworkServiceTypeCallSignaling

func KCFStreamNetworkServiceTypeCallSignaling() uintptr

func KCFStreamNetworkServiceTypeResponsiveAV

func KCFStreamNetworkServiceTypeResponsiveAV() uintptr

func KCFStreamNetworkServiceTypeResponsiveData

func KCFStreamNetworkServiceTypeResponsiveData() uintptr

func KCFStreamNetworkServiceTypeVideo

func KCFStreamNetworkServiceTypeVideo() uintptr

func KCFStreamNetworkServiceTypeVoIP

func KCFStreamNetworkServiceTypeVoIP() uintptr

func KCFStreamNetworkServiceTypeVoice

func KCFStreamNetworkServiceTypeVoice() uintptr

func KCFStreamPropertyAllowConstrainedNetworkAccess

func KCFStreamPropertyAllowConstrainedNetworkAccess() uintptr

func KCFStreamPropertyAllowExpensiveNetworkAccess

func KCFStreamPropertyAllowExpensiveNetworkAccess() uintptr

func KCFStreamPropertyConnectionIsCellular

func KCFStreamPropertyConnectionIsCellular() uintptr

func KCFStreamPropertyConnectionIsExpensive

func KCFStreamPropertyConnectionIsExpensive() uintptr

func KCFStreamPropertyFTPAttemptPersistentConnection

func KCFStreamPropertyFTPAttemptPersistentConnection() uintptr

func KCFStreamPropertyFTPFetchResourceInfo

func KCFStreamPropertyFTPFetchResourceInfo() uintptr

func KCFStreamPropertyFTPFileTransferOffset

func KCFStreamPropertyFTPFileTransferOffset() uintptr

func KCFStreamPropertyFTPPassword

func KCFStreamPropertyFTPPassword() uintptr

func KCFStreamPropertyFTPProxy

func KCFStreamPropertyFTPProxy() uintptr

func KCFStreamPropertyFTPProxyHost

func KCFStreamPropertyFTPProxyHost() uintptr

func KCFStreamPropertyFTPProxyPassword

func KCFStreamPropertyFTPProxyPassword() uintptr

func KCFStreamPropertyFTPProxyPort

func KCFStreamPropertyFTPProxyPort() uintptr

func KCFStreamPropertyFTPProxyUser

func KCFStreamPropertyFTPProxyUser() uintptr

func KCFStreamPropertyFTPResourceSize

func KCFStreamPropertyFTPResourceSize() uintptr

func KCFStreamPropertyFTPUsePassiveMode

func KCFStreamPropertyFTPUsePassiveMode() uintptr

func KCFStreamPropertyFTPUserName

func KCFStreamPropertyFTPUserName() uintptr

func KCFStreamPropertyHTTPAttemptPersistentConnection

func KCFStreamPropertyHTTPAttemptPersistentConnection() uintptr

func KCFStreamPropertyHTTPFinalRequest

func KCFStreamPropertyHTTPFinalRequest() uintptr

func KCFStreamPropertyHTTPFinalURL

func KCFStreamPropertyHTTPFinalURL() uintptr

func KCFStreamPropertyHTTPProxy

func KCFStreamPropertyHTTPProxy() uintptr

func KCFStreamPropertyHTTPProxyHost

func KCFStreamPropertyHTTPProxyHost() uintptr

func KCFStreamPropertyHTTPProxyPort

func KCFStreamPropertyHTTPProxyPort() uintptr

func KCFStreamPropertyHTTPRequestBytesWrittenCount

func KCFStreamPropertyHTTPRequestBytesWrittenCount() uintptr

func KCFStreamPropertyHTTPResponseHeader

func KCFStreamPropertyHTTPResponseHeader() uintptr

func KCFStreamPropertyHTTPSProxyHost

func KCFStreamPropertyHTTPSProxyHost() uintptr

func KCFStreamPropertyHTTPSProxyPort

func KCFStreamPropertyHTTPSProxyPort() uintptr

func KCFStreamPropertyHTTPShouldAutoredirect

func KCFStreamPropertyHTTPShouldAutoredirect() uintptr

func KCFStreamPropertyNoCellular

func KCFStreamPropertyNoCellular() uintptr

func KCFStreamPropertyProxyLocalBypass

func KCFStreamPropertyProxyLocalBypass() uintptr

func KCFStreamPropertySSLContext

func KCFStreamPropertySSLContext() uintptr

func KCFStreamPropertySSLPeerCertificates

func KCFStreamPropertySSLPeerCertificates() uintptr

func KCFStreamPropertySSLPeerTrust

func KCFStreamPropertySSLPeerTrust() uintptr

func KCFStreamPropertySSLSettings

func KCFStreamPropertySSLSettings() uintptr

func KCFStreamPropertySocketExtendedBackgroundIdleMode

func KCFStreamPropertySocketExtendedBackgroundIdleMode() uintptr

func KCFStreamPropertySocketRemoteHost

func KCFStreamPropertySocketRemoteHost() uintptr

func KCFStreamPropertySocketRemoteNetService

func KCFStreamPropertySocketRemoteNetService() uintptr

func KCFStreamSSLAllowsAnyRoot

func KCFStreamSSLAllowsAnyRoot() uintptr

func KCFStreamSSLAllowsExpiredCertificates

func KCFStreamSSLAllowsExpiredCertificates() uintptr

func KCFStreamSSLAllowsExpiredRoots

func KCFStreamSSLAllowsExpiredRoots() uintptr

func KCFStreamSSLCertificates

func KCFStreamSSLCertificates() uintptr

func KCFStreamSSLIsServer

func KCFStreamSSLIsServer() uintptr

func KCFStreamSSLLevel

func KCFStreamSSLLevel() uintptr

func KCFStreamSSLPeerName

func KCFStreamSSLPeerName() uintptr

func KCFStreamSSLValidatesCertificateChain

func KCFStreamSSLValidatesCertificateChain() uintptr

func KCFURLErrorFailingURLErrorKey

func KCFURLErrorFailingURLErrorKey() uintptr

func KCFURLErrorFailingURLStringErrorKey

func KCFURLErrorFailingURLStringErrorKey() uintptr

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type CFHTTPAuthentication

type CFHTTPAuthentication struct{}

C struct: _CFHTTPAuthentication CFHTTPAuthentication is an opaque type.

type CFHTTPMessage

type CFHTTPMessage struct{}

C struct: __CFHTTPMessage CFHTTPMessage is an opaque type.

type CFHost

type CFHost struct{}

C struct: __CFHost CFHost is an opaque type.

type CFHostClientContext

type CFHostClientContext struct {
	Version         int
	Info            unsafe.Pointer
	Retain          unsafe.Pointer
	Release         unsafe.Pointer
	CopyDescription unsafe.Pointer
}

A structure containing user-defined data and callbacks for CFHost objects.

type CFHostInfoType

type CFHostInfoType int32

Values indicating the type of data that is to be resolved or the type of data that was resolved.

const (
	// Specifies that addresses are to be resolved or that addresses were resolved.
	KCFHostAddresses CFHostInfoType = 0
	// Specifies that names are to be resolved or that names were resolved.
	KCFHostNames CFHostInfoType = 1
	// Specifies that reachability information is to be resolved or that reachability information was resolved.
	KCFHostReachability CFHostInfoType = 2
)

func (CFHostInfoType) String

func (e CFHostInfoType) String() string

type CFNetDiagnostic

type CFNetDiagnostic struct{}

C struct: __CFNetDiagnostic CFNetDiagnostic is an opaque type.

type CFNetDiagnosticStatusValues

type CFNetDiagnosticStatusValues int32

Constants for diagnostic status values.

const (
	// No error occurred but there is no status.
	KCFNetDiagnosticNoErr CFNetDiagnosticStatusValues = 0
	// An error occurred that prevented the call from completing.
	KCFNetDiagnosticErr CFNetDiagnosticStatusValues = -66560
	// The connection appears to be working.
	KCFNetDiagnosticConnectionUp CFNetDiagnosticStatusValues = -66559
	// The status of the connection is not known.
	KCFNetDiagnosticConnectionIndeterminate CFNetDiagnosticStatusValues = -66558
	// The connection does not appear to be working.
	KCFNetDiagnosticConnectionDown CFNetDiagnosticStatusValues = -66557
)

func (CFNetDiagnosticStatusValues) String

type CFNetService

type CFNetService struct{}

C struct: __CFNetService CFNetService is an opaque type.

type CFNetServiceBrowser

type CFNetServiceBrowser struct{}

C struct: __CFNetServiceBrowser CFNetServiceBrowser is an opaque type.

type CFNetServiceBrowserFlags

type CFNetServiceBrowserFlags int64

Flags that the system passes to net service browser callbacks.

const (
	// A hint that the system will call the client’s callback function again soon.
	KCFNetServiceFlagMoreComing CFNetServiceBrowserFlags = 1
	// Specifies whether the result pertains to a search for domains or services.
	KCFNetServiceFlagIsDomain CFNetServiceBrowserFlags = 2
	// Specifies whether the resulting domain is the default registration or browse domain.
	KCFNetServiceFlagIsDefault            CFNetServiceBrowserFlags = 4
	KCFNetServiceFlagIsRegistrationDomain CFNetServiceBrowserFlags = 4
	// Specifies whether the client should remove the result instead of adding it.
	KCFNetServiceFlagRemove CFNetServiceBrowserFlags = 8
)

func (CFNetServiceBrowserFlags) String

func (e CFNetServiceBrowserFlags) String() string

type CFNetServiceClientContext

type CFNetServiceClientContext struct {
	Version         int
	Info            unsafe.Pointer
	Retain          unsafe.Pointer
	Release         unsafe.Pointer
	CopyDescription unsafe.Pointer
}

A structure provided when a CFNetService is associated with a callback function or when a CFNetServiceBrowser is created.

type CFNetServiceMonitor

type CFNetServiceMonitor struct{}

C struct: __CFNetServiceMonitor CFNetServiceMonitor is an opaque type.

type CFNetServiceMonitorType

type CFNetServiceMonitorType int32

Record type specifier used to tell a service monitor the type of record changes to watch for.

const (
	// Watch for TXT record changes.
	KCFNetServiceMonitorTXT CFNetServiceMonitorType = 1
)

func (CFNetServiceMonitorType) String

func (e CFNetServiceMonitorType) String() string

type CFNetServiceRegisterFlags

type CFNetServiceRegisterFlags int64

Options to use when registering a service on the network.

const (
	// Causes registrations to fail if a name conflict occurs.
	KCFNetServiceFlagNoAutoRename CFNetServiceRegisterFlags = 1
)

func (CFNetServiceRegisterFlags) String

func (e CFNetServiceRegisterFlags) String() string

type CFNetServicesError

type CFNetServicesError int32

Error codes that may be returned by CFNetServices functions or passed to CFNetServices callback functions.

const (
	// An unknown CFNetService error occurred.
	KCFNetServicesErrorUnknown CFNetServicesError = -72000
	// An attempt was made to use a name that is already in use.
	KCFNetServicesErrorCollision CFNetServicesError = -72001
	// Not used.
	KCFNetServicesErrorNotFound CFNetServicesError = -72002
	// A search is already in progress.
	KCFNetServicesErrorInProgress CFNetServicesError = -72003
	// A required argument was not provided.
	KCFNetServicesErrorBadArgument CFNetServicesError = -72004
	// The search or service was canceled.
	KCFNetServicesErrorCancel CFNetServicesError = -72005
	// Invalid data was passed to a CFNetServices function.
	KCFNetServicesErrorInvalid CFNetServicesError = -72006
	// Resolution failed because the timeout was reached.
	KCFNetServicesErrorTimeout CFNetServicesError = -72007
	// A required configuration for local network access is missing.
	KCFNetServicesErrorMissingRequiredConfiguration CFNetServicesError = -72008
)

func (CFNetServicesError) String

func (e CFNetServicesError) String() string

type CFNetworkErrors

type CFNetworkErrors int32

This enumeration contains error codes returned under the error domain kCFErrorDomainCFNetwork.

const (
	// The specified host wasn’t found.
	KCFHostErrorHostNotFound CFNetworkErrors = 1
	// An unknown error.
	KCFHostErrorUnknown CFNetworkErrors = 2
	// The SOCKS server rejected access because it doesn’t support connections with the requested SOCKS version.
	KCFSOCKSErrorUnknownClientVersion CFNetworkErrors = 100
	// The SOCKS server doesn’t support the requested version.
	KCFSOCKSErrorUnsupportedServerVersion CFNetworkErrors = 101
	// The server rejected the request, or the request failed.
	KCFSOCKS4ErrorRequestFailed CFNetworkErrors = 110
	// The server couldn’t connect to the identd daemon on the client and rejected the request.
	KCFSOCKS4ErrorIdentdFailed CFNetworkErrors = 111
	// The server rejected the request because the client program and the identd daemon reported different user IDs.
	KCFSOCKS4ErrorIdConflict CFNetworkErrors = 112
	// The server returned an unknown status code.
	KCFSOCKS4ErrorUnknownStatusCode CFNetworkErrors = 113
	// The stream isn’t in a state that allows the requested operation.
	KCFSOCKS5ErrorBadState CFNetworkErrors = 120
	// The address type returned isn’t supported.
	KCFSOCKS5ErrorBadResponseAddr CFNetworkErrors = 121
	// The SOCKS server refused the client connection because of bad login credentials.
	KCFSOCKS5ErrorBadCredentials CFNetworkErrors = 122
	// The requested method isn’t supported.
	KCFSOCKS5ErrorUnsupportedNegotiationMethod CFNetworkErrors = 123
	// The client and server couldn’t find a mutually agreeable authentication method.
	KCFSOCKS5ErrorNoAcceptableMethod CFNetworkErrors = 124
	// The server returned an unexpected status code.
	KCFFTPErrorUnexpectedStatusCode CFNetworkErrors = 200
	// The client and server couldn’t agree on a supported authentication type.
	KCFErrorHTTPAuthenticationTypeUnsupported CFNetworkErrors = 300
	// The server rejected the credentials provided for an authenticated connection.
	KCFErrorHTTPBadCredentials CFNetworkErrors = 301
	// The connection to the server was dropped.
	KCFErrorHTTPConnectionLost CFNetworkErrors = 302
	// The HTTP server response couldn’t be parsed.
	KCFErrorHTTPParseFailure CFNetworkErrors = 303
	// Too many HTTP redirects occurred before reaching a page that didn’t redirect the client to another page.
	KCFErrorHTTPRedirectionLoopDetected CFNetworkErrors = 304
	// The requested URL couldn’t be retrieved.
	KCFErrorHTTPBadURL CFNetworkErrors = 305
	// A connection to the HTTPS proxy couldn’t be established.
	KCFErrorHTTPProxyConnectionFailure CFNetworkErrors = 306
	// The proxy rejected the authentication credentials provided for logging in.
	KCFErrorHTTPBadProxyCredentials CFNetworkErrors = 307
	// An error occurred with the proxy autoconfiguration file.
	KCFErrorPACFileError CFNetworkErrors = 308
	// The authentication credentials provided by the proxy autoconfiguration file were rejected.
	KCFErrorPACFileAuth CFNetworkErrors = 309
	// A connection couldn’t be established to the HTTPS proxy.
	KCFErrorHTTPSProxyConnectionFailure CFNetworkErrors = 310
	// The HTTPS proxy returned an unexpected status code, such as a 3xx redirect.
	KCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod CFNetworkErrors = 311
	// The background session failed because it was in use by another process.
	KCFURLErrorBackgroundSessionInUseByAnotherProcess CFNetworkErrors = -996
	// The background session failed because it was disconnected.
	KCFURLErrorBackgroundSessionWasDisconnected CFNetworkErrors = -997
	// An unknown error occurred.
	KCFURLErrorUnknown CFNetworkErrors = -998
	// The connection was cancelled.
	KCFURLErrorCancelled CFNetworkErrors = -999
	// The connection failed due to a malformed URL.
	KCFURLErrorBadURL CFNetworkErrors = -1000
	// The connection timed out.
	KCFURLErrorTimedOut CFNetworkErrors = -1001
	// The connection failed due to an unsupported URL scheme.
	KCFURLErrorUnsupportedURL CFNetworkErrors = -1002
	// The connection failed because the host couldn’t be found.
	KCFURLErrorCannotFindHost CFNetworkErrors = -1003
	// The connection failed because a connection can’t be made to the host.
	KCFURLErrorCannotConnectToHost CFNetworkErrors = -1004
	// The connection failed because the network connection was lost.
	KCFURLErrorNetworkConnectionLost CFNetworkErrors = -1005
	// The connection failed because the DNS lookup failed.
	KCFURLErrorDNSLookupFailed CFNetworkErrors = -1006
	// The HTTP connection failed due to too many redirects.
	KCFURLErrorHTTPTooManyRedirects CFNetworkErrors = -1007
	// The connection’s resource is unavailable.
	KCFURLErrorResourceUnavailable CFNetworkErrors = -1008
	// The connection failed because the device isn’t connected to the internet.
	KCFURLErrorNotConnectedToInternet CFNetworkErrors = -1009
	// The connection was redirected to a nonexistent location.
	KCFURLErrorRedirectToNonExistentLocation CFNetworkErrors = -1010
	// The connection received an invalid server response.
	KCFURLErrorBadServerResponse CFNetworkErrors = -1011
	// The connection failed because the user cancelled required authentication.
	KCFURLErrorUserCancelledAuthentication CFNetworkErrors = -1012
	// The connection failed because it requires authentication.
	KCFURLErrorUserAuthenticationRequired CFNetworkErrors = -1013
	// The resource retrieved by the connection is zero bytes.
	KCFURLErrorZeroByteResource CFNetworkErrors = -1014
	// The connection can’t decode data encoded with a known content encoding.
	KCFURLErrorCannotDecodeRawData CFNetworkErrors = -1015
	// The connection can’t decode data encoded with an unknown content encoding.
	KCFURLErrorCannotDecodeContentData CFNetworkErrors = -1016
	// The connection can’t parse the server’s response.
	KCFURLErrorCannotParseResponse CFNetworkErrors = -1017
	// The connection failed because international roaming is disabled on the device.
	KCFURLErrorInternationalRoamingOff CFNetworkErrors = -1018
	// The connection failed because a call is active.
	KCFURLErrorCallIsActive CFNetworkErrors = -1019
	// The connection failed because data use isn’t currently allowed on the device.
	KCFURLErrorDataNotAllowed CFNetworkErrors = -1020
	// The connection failed because the request’s body stream was exhausted.
	KCFURLErrorRequestBodyStreamExhausted CFNetworkErrors = -1021
	// The connection failed because the App Transport Security configuration requires a secure connection.
	KCFURLErrorAppTransportSecurityRequiresSecureConnection CFNetworkErrors = -1022
	// The file operation failed because the file doesn’t exist.
	KCFURLErrorFileDoesNotExist CFNetworkErrors = -1100
	// The file operation failed because the file is a directory.
	KCFURLErrorFileIsDirectory CFNetworkErrors = -1101
	// The file operation failed because it doesn’t have permission to read the file.
	KCFURLErrorNoPermissionsToReadFile CFNetworkErrors = -1102
	// The file operation failed because the file is too large.
	KCFURLErrorDataLengthExceedsMaximum CFNetworkErrors = -1103
	// The file is outside of the safe area.
	KCFURLErrorFileOutsideSafeArea CFNetworkErrors = -1104
	// The secure connection failed for an unknown reason.
	KCFURLErrorSecureConnectionFailed CFNetworkErrors = -1200
	// The secure connection failed because the server’s certificate has an invalid date.
	KCFURLErrorServerCertificateHasBadDate CFNetworkErrors = -1201
	// The secure connection failed because the server’s certificate isn’t trusted.
	KCFURLErrorServerCertificateUntrusted CFNetworkErrors = -1202
	// The secure connection failed because the server’s certificate has an unknown root.
	KCFURLErrorServerCertificateHasUnknownRoot CFNetworkErrors = -1203
	// The secure connection failed because the server’s certificate isn’t valid yet.
	KCFURLErrorServerCertificateNotYetValid CFNetworkErrors = -1204
	// The secure connection failed because the client’s certificate was rejected.
	KCFURLErrorClientCertificateRejected CFNetworkErrors = -1205
	// The secure connection failed because the server requires a client certificate.
	KCFURLErrorClientCertificateRequired CFNetworkErrors = -1206
	// The connection failed because it’s being required to return a cached resource, but one isn’t available.
	KCFURLErrorCannotLoadFromNetwork CFNetworkErrors = -2000
	// The file can’t be created.
	KCFURLErrorCannotCreateFile CFNetworkErrors = -3000
	// The file can’t be opened.
	KCFURLErrorCannotOpenFile CFNetworkErrors = -3001
	// The file can’t be closed.
	KCFURLErrorCannotCloseFile CFNetworkErrors = -3002
	// The file can’t be written.
	KCFURLErrorCannotWriteToFile CFNetworkErrors = -3003
	// The file can’t be removed.
	KCFURLErrorCannotRemoveFile CFNetworkErrors = -3004
	// The file can’t be moved.
	KCFURLErrorCannotMoveFile CFNetworkErrors = -3005
	// The download failed because decoding of the downloaded data failed midstream.
	KCFURLErrorDownloadDecodingFailedMidStream CFNetworkErrors = -3006
	// The download failed because decoding of the downloaded data failed to complete.
	KCFURLErrorDownloadDecodingFailedToComplete CFNetworkErrors = -3007
	// The cookie file can’t be parsed.
	KCFHTTPCookieCannotParseCookieFile CFNetworkErrors = -4000
	// An error of unknown type has occurred.
	KCFNetServiceErrorUnknown CFNetworkErrors = -72000
	// An attempt was made to use a name that’s already in use.
	KCFNetServiceErrorCollision CFNetworkErrors = -72001
	// This error isn’t used.
	KCFNetServiceErrorNotFound CFNetworkErrors = -72002
	// A new search couldn’t be started because a search is already in progress.
	KCFNetServiceErrorInProgress CFNetworkErrors = -72003
	// A required argument either wasn’t provided or wasn’t valid.
	KCFNetServiceErrorBadArgument CFNetworkErrors = -72004
	// The search or service was canceled.
	KCFNetServiceErrorCancel CFNetworkErrors = -72005
	// Invalid data was passed to a CFNetServices function.
	KCFNetServiceErrorInvalid CFNetworkErrors = -72006
	// Resolution failed because the timeout was reached.
	KCFNetServiceErrorTimeout CFNetworkErrors = -72007
	// The DNS service discovery returned an error.
	KCFNetServiceErrorDNSServiceFailure CFNetworkErrors = -73000
)

func (CFNetworkErrors) String

func (e CFNetworkErrors) String() string

type CFStreamErrorHTTP

type CFStreamErrorHTTP int32

Error codes that a read stream for an HTTP request may return.

const (
	// A parsing error occurred while an incoming message was being deserialized and appended to a message object. The headers of the incoming message may be formatted improperly.
	KCFStreamErrorHTTPParseFailure CFStreamErrorHTTP = -1
	// A redirection loop has been detected.
	KCFStreamErrorHTTPRedirectionLoop CFStreamErrorHTTP = -2
	// The URL is not properly formatted.
	KCFStreamErrorHTTPBadURL CFStreamErrorHTTP = -3
)

func (CFStreamErrorHTTP) String

func (e CFStreamErrorHTTP) String() string

type CFStreamErrorHTTPAuthentication

type CFStreamErrorHTTPAuthentication int32

Authentication error codes that may be returned when trying to apply authentication to a request.

const (
	// Specified authentication type is not supported.
	KCFStreamErrorHTTPAuthenticationTypeUnsupported CFStreamErrorHTTPAuthentication = -1000
	// User name is in a format that is not suitable for the request. Currently, user names are decoded using kCFStringEncodingISOLatin1.
	KCFStreamErrorHTTPAuthenticationBadUserName CFStreamErrorHTTPAuthentication = -1001
	// Password is in a format that is not suitable for the request. Currently, passwords are decoded using kCFStringEncodingISOLatin1.
	KCFStreamErrorHTTPAuthenticationBadPassword CFStreamErrorHTTPAuthentication = -1002
)

func (CFStreamErrorHTTPAuthentication) String

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

Jump to

Keyboard shortcuts

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