Documentation
¶
Overview ¶
Package network provides Go bindings for the Network framework.
Create network connections to send and receive data using transport and security protocols.
Use this framework when you need direct access to protocols like TLS, TCP, and UDP for your custom application protocols. Continue to use [NSURLSession], which is built upon this framework, for loading HTTP- and URL-based resources. For in-depth advice on where to start with networking, see TN3151: Choosing the right networking API.
Essentials ¶
- NWEndpoint: A local or remote endpoint in a network connection. (NWEndpointType)
- NWParameters: An object that stores the protocols to use for connections, options for sending data, and network path constraints.
Connections and Listeners ¶
- Implementing netcat with Network Framework: Build a simple tool that establishes network connections and transfers data.
- NWConnection: A bidirectional data connection between a local endpoint and a remote endpoint. (NWConnectionState)
- NWListener: An object you use to listen for incoming network connections. (NWListenerState)
- NWBrowser: An object you use to browse for available network services. (NWBrowserState)
- NWConnectionGroup: An object you use to communicate with a group of endpoints, such as an IP multicast group on a local network.
- NWEthernetChannel: An object you use to send and receive custom Ethernet frames. (NWEthernetChannelState)
Network Protocols ¶
- TCP Options: Configure options for connections that use the Transmission Control Protocol.
- TLS Options: Configure options for connections that use Transport Layer Security.
- QUIC Options: Configure options for connections that use the QUIC transport protocol.
- UDP Options: Configure options for connections that use the User Datagram Protocol.
- IP Options: Configure Internet Protocol options on connections. (NWIPEcnFlag, NWIPVersion, NWIPLocalAddressPreference)
- WebSocket Options: Configure options for connections that use WebSocket. (NWWsVersion, NWWsOpcode, NWWsCloseCode)
- Framer Protocol Options: Create custom protocols to frame applications messages over a connection. (NWFramerStartResult)
Network Security and Privacy ¶
- Security Options: Configure security options for TLS handshakes.
- Privacy Management: Configure parameters related to user privacy. (NWParametersAttribution)
- Creating an Identity for Local Network TLS: Learn how to create and use a digital identity in your application for local network TLS.
Paths and Interfaces ¶
- NWPath: An object that contains information about the properties of the network that a connection uses, or that are available to your app. (NWPathStatus)
- NWPathMonitor: An observer that you use to monitor and react to network changes.
- NWInterface: An interface that a network connection uses to send and receive data. (NWInterfaceType)
Memory Management ¶
- NWRelease: Releases a reference count on a Network.framework object.
- NWRetain: Adds a reference count to a Network.framework object.
- NWObject: The generic type for objects in the Network framework.
Errors ¶
- NWError: The errors returned by the Network framework. (NWErrorDomain)
Network Debugging ¶
- Choosing a Network Debugging Tool: Decide which tool works best for your network debugging problem.
- Debugging HTTP Server-Side Errors: Understand HTTP server-side errors and how to debug them.
- Debugging HTTPS Problems with CFNetwork Diagnostic Logging: Use CFNetwork diagnostic logging to investigate HTTP and HTTPS problems.
- Recording a Packet Trace: Learn how to record a low-level trace of network traffic.
- Taking Advantage of Third-Party Network Debugging Tools: Learn about the available third-party network debugging tools.
- Testing and Debugging L4S in Your App: Learn how to verify your app on an L4S-capable host and network to improve your app’s responsiveness.
Protocols ¶
- [OSNwAdvertiseDescriptor]
- [OSNwBrowseDescriptor]
- [OSNwBrowseResult]
- [OSNwBrowser]
- [OSNwConnection]
- [OSNwConnectionGroup]
- [OSNwContentContext]
- [OSNwDataTransferReport]
- [OSNwEndpoint]
- [OSNwError]
- [OSNwEstablishmentReport]
- [OSNwEthernetChannel]
- [OSNwFramer]
- [OSNwGroupDescriptor]
- [OSNwInterface]
- [OSNwListener]
- [OSNwObject]
- [OSNwParameters]
- [OSNwPath]
- [OSNwPathMonitor]
- [OSNwPrivacyContext]
- [OSNwProtocolDefinition]
- [OSNwProtocolMetadata]
- [OSNwProtocolOptions]
- [OSNwProtocolStack]
- [OSNwProxyConfig]
- [OSNwRelayHop]
- [OSNwResolutionReport]
- [OSNwResolverConfig]
- [OSNwTXTRecord]
- [OSNwWsRequest]
- [OSNwWsResponse]
Variables ¶
Functions ¶
- NWParametersGetAllowUltraConstrained
- NWParametersSetAllowUltraConstrained
- NWPathGetLinkQuality
- NWPathIsUltraConstrained
Enumerations ¶
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Variables
- func BindFunc(fptr any, name string) (err error)
- func NWAdvertiseDescriptorGetApplicationServiceName(advertise_descriptor NWAdvertiseDescriptor) *byte
- func NWAdvertiseDescriptorGetNoAutoRename(advertise_descriptor NWAdvertiseDescriptor) bool
- func NWAdvertiseDescriptorSetNoAutoRename(advertise_descriptor NWAdvertiseDescriptor, no_auto_rename bool)
- func NWAdvertiseDescriptorSetTXTRecord(advertise_descriptor NWAdvertiseDescriptor, txt_record unsafe.Pointer, ...)
- func NWAdvertiseDescriptorSetTXTRecordObject(advertise_descriptor NWAdvertiseDescriptor, txt_record NWTXTRecord)
- func NWBrowseDescriptorGetApplicationServiceName(descriptor NWBrowseDescriptor) *byte
- func NWBrowseDescriptorGetBonjourServiceDomain(descriptor NWBrowseDescriptor) *byte
- func NWBrowseDescriptorGetBonjourServiceType(descriptor NWBrowseDescriptor) *byte
- func NWBrowseDescriptorGetIncludeTXTRecord(descriptor NWBrowseDescriptor) bool
- func NWBrowseDescriptorSetIncludeTXTRecord(descriptor NWBrowseDescriptor, include_txt_record bool)
- func NWBrowseResultEnumerateInterfaces(result NWBrowseResult, enumerator NWBrowseResultEnumerateInterface)
- func NWBrowseResultGetInterfacesCount(result NWBrowseResult) uintptr
- func NWBrowserCancel(browser NWBrowser)
- func NWBrowserSetBrowseResultsChangedHandler(browser NWBrowser, handler NWBrowserBrowseResultsChangedHandler)
- func NWBrowserSetQueue(browser NWBrowser, queue dispatch.Queue)
- func NWBrowserSetStateChangedHandler(browser NWBrowser, state_changed_handler NWBrowserStateChangedHandler)
- func NWBrowserStart(browser NWBrowser)
- func NWConnectionAccessEstablishmentReport(connection NWConnection, queue dispatch.Queue, ...)
- func NWConnectionBatch(connection NWConnection, batch_block unsafe.Pointer)
- func NWConnectionCancel(connection NWConnection)
- func NWConnectionCancelCurrentEndpoint(connection NWConnection)
- func NWConnectionCopyDescription(connection NWConnection) *byte
- func NWConnectionForceCancel(connection NWConnection)
- func NWConnectionGetMaximumDatagramSize(connection NWConnection) uint32
- func NWConnectionGroupCancel(group NWConnectionGroup)
- func NWConnectionGroupReinsertExtractedConnection(group NWConnectionGroup, connection NWConnection) bool
- func NWConnectionGroupReply(group NWConnectionGroup, inbound_message NWContentContext, ...)
- func NWConnectionGroupSendMessage(group NWConnectionGroup, content dispatch.Data, endpoint NWEndpoint, ...)
- func NWConnectionGroupSetNewConnectionHandler(group NWConnectionGroup, ...)
- func NWConnectionGroupSetQueue(group NWConnectionGroup, queue dispatch.Queue)
- func NWConnectionGroupSetReceiveHandler(group NWConnectionGroup, maximum_message_size uint32, ...)
- func NWConnectionGroupSetStateChangedHandler(group NWConnectionGroup, ...)
- func NWConnectionGroupStart(group NWConnectionGroup)
- func NWConnectionReceive(connection NWConnection, minimum_incomplete_length uint32, ...)
- func NWConnectionReceiveMessage(connection NWConnection, completion NWConnectionReceiveCompletion)
- func NWConnectionRestart(connection NWConnection)
- func NWConnectionSend(connection NWConnection, content dispatch.Data, context NWContentContext, ...)
- func NWConnectionSetBetterPathAvailableHandler(connection NWConnection, handler NWConnectionBooleanEventHandler)
- func NWConnectionSetPathChangedHandler(connection NWConnection, handler NWConnectionPathEventHandler)
- func NWConnectionSetQueue(connection NWConnection, queue dispatch.Queue)
- func NWConnectionSetStateChangedHandler(connection NWConnection, handler NWConnectionStateChangedHandler)
- func NWConnectionSetViabilityChangedHandler(connection NWConnection, handler NWConnectionBooleanEventHandler)
- func NWConnectionStart(connection NWConnection)
- func NWContentContextForeachProtocolMetadata(context NWContentContext)
- func NWContentContextGetExpirationMilliseconds(context NWContentContext) uint64
- func NWContentContextGetIdentifier(context NWContentContext) *byte
- func NWContentContextGetIsFinal(context NWContentContext) bool
- func NWContentContextGetRelativePriority(context NWContentContext) float64
- func NWContentContextSetAntecedent(context NWContentContext, antecedent_context NWContentContext)
- func NWContentContextSetExpirationMilliseconds(context NWContentContext, expiration_milliseconds uint64)
- func NWContentContextSetIsFinal(context NWContentContext, is_final bool)
- func NWContentContextSetMetadataForProtocol(context NWContentContext, protocol_metadata NWProtocolMetadata)
- func NWContentContextSetRelativePriority(context NWContentContext, relative_priority float64)
- func NWDataTransferReportCollect(report NWDataTransferReport, queue dispatch.Queue, ...)
- func NWDataTransferReportGetDurationMilliseconds(report NWDataTransferReport) uint64
- func NWDataTransferReportGetPathCount(report NWDataTransferReport) uint32
- func NWDataTransferReportGetReceivedApplicationByteCount(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetReceivedIPPacketCount(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetReceivedTransportByteCount(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetReceivedTransportDuplicateByteCount(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetReceivedTransportOutOfOrderByteCount(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetSentApplicationByteCount(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetSentIPPacketCount(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetSentTransportByteCount(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetSentTransportRetransmittedByteCount(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetTransportMinimumRttMilliseconds(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetTransportRttVariance(report NWDataTransferReport, path_index uint32) uint64
- func NWDataTransferReportGetTransportSmoothedRttMilliseconds(report NWDataTransferReport, path_index uint32) uint64
- func NWEndpointCopyAddressString(endpoint NWEndpoint) *byte
- func NWEndpointCopyPortString(endpoint NWEndpoint) *byte
- func NWEndpointGetAddress(endpoint NWEndpoint) unsafe.Pointer
- func NWEndpointGetBonjourServiceDomain(endpoint NWEndpoint) *byte
- func NWEndpointGetBonjourServiceName(endpoint NWEndpoint) *byte
- func NWEndpointGetBonjourServiceType(endpoint NWEndpoint) *byte
- func NWEndpointGetHostname(endpoint NWEndpoint) *byte
- func NWEndpointGetPort(endpoint NWEndpoint) uint16
- func NWEndpointGetSignature(endpoint NWEndpoint, out_signature_length *uintptr) *uint8
- func NWEndpointGetURL(endpoint NWEndpoint) *byte
- func NWErrorCopyCfError(err NWError) corefoundation.CFErrorRef
- func NWErrorGetErrorCode(err NWError) int32
- func NWEstablishmentReportEnumerateProtocols(report NWEstablishmentReport, enumerate_block NWReportProtocolEnumerator)
- func NWEstablishmentReportEnumerateResolutionReports(report NWEstablishmentReport, ...)
- func NWEstablishmentReportEnumerateResolutions(report NWEstablishmentReport, enumerate_block NWReportResolutionEnumerator)
- func NWEstablishmentReportGetAttemptStartedAfterMilliseconds(report NWEstablishmentReport) uint64
- func NWEstablishmentReportGetDurationMilliseconds(report NWEstablishmentReport) uint64
- func NWEstablishmentReportGetPreviousAttemptCount(report NWEstablishmentReport) uint32
- func NWEstablishmentReportGetProxyConfigured(report NWEstablishmentReport) bool
- func NWEstablishmentReportGetUsedProxy(report NWEstablishmentReport) bool
- func NWEthernetChannelCancel(ethernet_channel NWEthernetChannel)
- func NWEthernetChannelGetMaximumPayloadSize(ethernet_channel NWEthernetChannel) uint32
- func NWEthernetChannelSend(ethernet_channel NWEthernetChannel, content dispatch.Data, vlan_tag uint16, ...)
- func NWEthernetChannelSetQueue(ethernet_channel NWEthernetChannel, queue dispatch.Queue)
- func NWEthernetChannelSetReceiveHandler(ethernet_channel NWEthernetChannel, handler NWEthernetChannelReceiveHandler)
- func NWEthernetChannelSetStateChangedHandler(ethernet_channel NWEthernetChannel, ...)
- func NWEthernetChannelStart(ethernet_channel NWEthernetChannel)
- func NWFramerAsync(framer NWFramer, async_block NWFramerBlock)
- func NWFramerDeliverInput(framer NWFramer, input_buffer []byte, input_length uintptr, ...)
- func NWFramerDeliverInputNoCopy(framer NWFramer, input_length uintptr, message NWFramerMessage, ...) bool
- func NWFramerMarkFailedWithError(framer NWFramer, error_code int32)
- func NWFramerMarkReady(framer NWFramer)
- func NWFramerMessageAccessValue(message NWFramerMessage, key string, access_value bool) bool
- func NWFramerMessageCopyObjectValue(message NWFramerMessage, key string) objectivec.Object
- func NWFramerMessageSetObjectValue(message NWFramerMessage, key string, value objectivec.Object)
- func NWFramerMessageSetValue(message NWFramerMessage, key string, value unsafe.Pointer, ...)
- func NWFramerOptionsCopyObjectValue(options NWProtocolOptions, key string) objectivec.Object
- func NWFramerOptionsSetObjectValue(options NWProtocolOptions, key string, value objectivec.Object)
- func NWFramerParseInput(framer NWFramer, minimum_incomplete_length uintptr, maximum_length uintptr, ...) bool
- func NWFramerParseOutput(framer NWFramer, minimum_incomplete_length uintptr, maximum_length uintptr, ...) bool
- func NWFramerPassThroughInput(framer NWFramer)
- func NWFramerPassThroughOutput(framer NWFramer)
- func NWFramerPrependApplicationProtocol(framer NWFramer, protocol_options NWProtocolOptions) bool
- func NWFramerScheduleWakeup(framer NWFramer, milliseconds uint64)
- func NWFramerSetCleanupHandler(framer NWFramer, cleanup_handler NWFramerCleanupHandler)
- func NWFramerSetInputHandler(framer NWFramer, input_handler NWFramerInputHandler)
- func NWFramerSetOutputHandler(framer NWFramer, output_handler NWFramerOutputHandler)
- func NWFramerSetStopHandler(framer NWFramer, stop_handler NWFramerStopHandler)
- func NWFramerSetWakeupHandler(framer NWFramer, wakeup_handler NWFramerWakeupHandler)
- func NWFramerWriteOutput(framer NWFramer, output_buffer []byte, output_length uintptr)
- func NWFramerWriteOutputData(framer NWFramer, output_data dispatch.Data)
- func NWFramerWriteOutputNoCopy(framer NWFramer, output_length uintptr) bool
- func NWGroupDescriptorAddEndpoint(descriptor NWGroupDescriptor, endpoint NWEndpoint) bool
- func NWGroupDescriptorEnumerateEndpoints(descriptor NWGroupDescriptor, ...)
- func NWIPMetadataGetReceiveTime(metadata NWProtocolMetadata) uint64
- func NWIPMetadataSetEcnFlag(metadata NWProtocolMetadata, ecn_flag NWIPEcnFlag)
- func NWIPMetadataSetServiceClass(metadata NWProtocolMetadata, service_class NWServiceClass)
- func NWIPOptionsSetCalculateReceiveTime(options NWProtocolOptions, calculate_receive_time bool)
- func NWIPOptionsSetDisableFragmentation(options NWProtocolOptions, disable_fragmentation bool)
- func NWIPOptionsSetDisableMulticastLoopback(options NWProtocolOptions, disable_multicast_loopback bool)
- func NWIPOptionsSetHopLimit(options NWProtocolOptions, hop_limit uint8)
- func NWIPOptionsSetLocalAddressPreference(options NWProtocolOptions, preference NWIPLocalAddressPreference)
- func NWIPOptionsSetUseMinimumMtu(options NWProtocolOptions, use_minimum_mtu bool)
- func NWIPOptionsSetVersion(options NWProtocolOptions, version NWIPVersion)
- func NWInterfaceGetIndex(interface_ NWInterface) uint32
- func NWInterfaceGetName(interface_ NWInterface) *byte
- func NWListenerCancel(listener NWListener)
- func NWListenerGetNewConnectionLimit(listener NWListener) uint32
- func NWListenerGetPort(listener NWListener) uint16
- func NWListenerSetAdvertiseDescriptor(listener NWListener, advertise_descriptor NWAdvertiseDescriptor)
- func NWListenerSetAdvertisedEndpointChangedHandler(listener NWListener, handler NWListenerAdvertisedEndpointChangedHandler)
- func NWListenerSetNewConnectionGroupHandler(listener NWListener, handler NWListenerNewConnectionGroupHandler)
- func NWListenerSetNewConnectionHandler(listener NWListener, handler NWListenerNewConnectionHandler)
- func NWListenerSetNewConnectionLimit(listener NWListener, new_connection_limit uint32)
- func NWListenerSetQueue(listener NWListener, queue dispatch.Queue)
- func NWListenerSetStateChangedHandler(listener NWListener, handler NWListenerStateChangedHandler)
- func NWListenerStart(listener NWListener)
- func NWMulticastGroupDescriptorGetDisableUnicastTraffic(multicast_descriptor NWGroupDescriptor) bool
- func NWMulticastGroupDescriptorSetDisableUnicastTraffic(multicast_descriptor NWGroupDescriptor, disable_unicast_traffic bool)
- func NWMulticastGroupDescriptorSetSpecificSource(multicast_descriptor NWGroupDescriptor, source NWEndpoint)
- func NWParametersClearProhibitedInterfaceTypes(parameters NWParameters)
- func NWParametersClearProhibitedInterfaces(parameters NWParameters)
- func NWParametersGetAllowUltraConstrained(parameters NWParameters) bool
- func NWParametersGetFastOpenEnabled(parameters NWParameters) bool
- func NWParametersGetIncludePeerToPeer(parameters NWParameters) bool
- func NWParametersGetLocalOnly(parameters NWParameters) bool
- func NWParametersGetPreferNoProxy(parameters NWParameters) bool
- func NWParametersGetProhibitConstrained(parameters NWParameters) bool
- func NWParametersGetProhibitExpensive(parameters NWParameters) bool
- func NWParametersGetReuseLocalAddress(parameters NWParameters) bool
- func NWParametersIterateProhibitedInterfaceTypes(parameters NWParameters, iterate_block NWParametersIterateInterfaceTypesBlock)
- func NWParametersIterateProhibitedInterfaces(parameters NWParameters, iterate_block NWParametersIterateInterfacesBlock)
- func NWParametersProhibitInterface(parameters NWParameters, interface_ NWInterface)
- func NWParametersProhibitInterfaceType(parameters NWParameters, interface_type NWInterfaceType)
- func NWParametersRequireInterface(parameters NWParameters, interface_ NWInterface)
- func NWParametersRequiresDnssecValidation(parameters NWParameters) bool
- func NWParametersSetAllowUltraConstrained(parameters NWParameters, allow_ultra_constrained bool)
- func NWParametersSetAttribution(parameters NWParameters, attribution NWParametersAttribution)
- func NWParametersSetExpiredDnsBehavior(parameters NWParameters, expired_dns_behavior NWParametersExpiredDnsBehavior)
- func NWParametersSetFastOpenEnabled(parameters NWParameters, fast_open_enabled bool)
- func NWParametersSetIncludePeerToPeer(parameters NWParameters, include_peer_to_peer bool)
- func NWParametersSetLocalEndpoint(parameters NWParameters, local_endpoint NWEndpoint)
- func NWParametersSetLocalOnly(parameters NWParameters, local_only bool)
- func NWParametersSetMultipathService(parameters NWParameters, multipath_service NWMultipathService)
- func NWParametersSetPreferNoProxy(parameters NWParameters, prefer_no_proxy bool)
- func NWParametersSetPrivacyContext(parameters NWParameters, privacy_context NWPrivacyContext)
- func NWParametersSetProhibitConstrained(parameters NWParameters, prohibit_constrained bool)
- func NWParametersSetProhibitExpensive(parameters NWParameters, prohibit_expensive bool)
- func NWParametersSetRequiredInterfaceType(parameters NWParameters, interface_type NWInterfaceType)
- func NWParametersSetRequiresDnssecValidation(parameters NWParameters, requires_dnssec_validation bool)
- func NWParametersSetReuseLocalAddress(parameters NWParameters, reuse_local_address bool)
- func NWParametersSetServiceClass(parameters NWParameters, service_class NWServiceClass)
- func NWPathEnumerateGateways(path NWPath, enumerate_block NWPathEnumerateGatewaysBlock)
- func NWPathEnumerateInterfaces(path NWPath, enumerate_block NWPathEnumerateInterfacesBlock)
- func NWPathHasDns(path NWPath) bool
- func NWPathHasIpv4(path NWPath) bool
- func NWPathHasIpv6(path NWPath) bool
- func NWPathIsConstrained(path NWPath) bool
- func NWPathIsEqual(path NWPath, other_path NWPath) bool
- func NWPathIsExpensive(path NWPath) bool
- func NWPathIsUltraConstrained(path NWPath) bool
- func NWPathMonitorCancel(monitor NWPathMonitor)
- func NWPathMonitorProhibitInterfaceType(monitor NWPathMonitor, interface_type NWInterfaceType)
- func NWPathMonitorSetCancelHandler(monitor NWPathMonitor, cancel_handler NWPathMonitorCancelHandler)
- func NWPathMonitorSetQueue(monitor NWPathMonitor, queue dispatch.Queue)
- func NWPathMonitorSetUpdateHandler(monitor NWPathMonitor, update_handler NWPathMonitorUpdateHandler)
- func NWPathMonitorStart(monitor NWPathMonitor)
- func NWPathUsesInterfaceType(path NWPath, interface_type NWInterfaceType) bool
- func NWPrivacyContextAddProxy(privacy_context NWPrivacyContext, proxy_config NWProxyConfig)
- func NWPrivacyContextClearProxies(privacy_context NWPrivacyContext)
- func NWPrivacyContextDisableLogging(privacy_context NWPrivacyContext)
- func NWPrivacyContextFlushCache(privacy_context NWPrivacyContext)
- func NWPrivacyContextRequireEncryptedNameResolution(privacy_context NWPrivacyContext, require_encrypted_name_resolution bool, ...)
- func NWProtocolDefinitionIsEqual(definition1 NWProtocolDefinition, definition2 NWProtocolDefinition) bool
- func NWProtocolMetadataIsFramerMessage(metadata NWProtocolMetadata) bool
- func NWProtocolMetadataIsIP(metadata NWProtocolMetadata) bool
- func NWProtocolMetadataIsQuic(metadata NWProtocolMetadata) bool
- func NWProtocolMetadataIsTCP(metadata NWProtocolMetadata) bool
- func NWProtocolMetadataIsTLS(metadata NWProtocolMetadata) bool
- func NWProtocolMetadataIsUDP(metadata NWProtocolMetadata) bool
- func NWProtocolMetadataIsWs(metadata NWProtocolMetadata) bool
- func NWProtocolOptionsIsQuic(options NWProtocolOptions) bool
- func NWProtocolStackClearApplicationProtocols(stack NWProtocolStack)
- func NWProtocolStackIterateApplicationProtocols(stack NWProtocolStack, iterate_block NWProtocolStackIterateProtocolsBlock)
- func NWProtocolStackPrependApplicationProtocol(stack NWProtocolStack, protocol_ NWProtocolOptions)
- func NWProtocolStackSetTransportProtocol(stack NWProtocolStack, protocol_ NWProtocolOptions)
- func NWProxyConfigAddExcludedDomain(config NWProxyConfig, excluded_domain string)
- func NWProxyConfigAddMatchDomain(config NWProxyConfig, match_domain string)
- func NWProxyConfigClearExcludedDomains(config NWProxyConfig)
- func NWProxyConfigClearMatchDomains(config NWProxyConfig)
- func NWProxyConfigEnumerateExcludedDomains(config NWProxyConfig, enumerator NWProxyDomainEnumerator)
- func NWProxyConfigEnumerateMatchDomains(config NWProxyConfig, enumerator NWProxyDomainEnumerator)
- func NWProxyConfigGetFailoverAllowed(proxy_config NWProxyConfig) bool
- func NWProxyConfigSetFailoverAllowed(proxy_config NWProxyConfig, failover_allowed bool)
- func NWProxyConfigSetUsernameAndPassword(proxy_config NWProxyConfig, username string, password string)
- func NWQuicAddTLSApplicationProtocol(options NWProtocolOptions, application_protocol string)
- func NWQuicCopySecProtocolMetadata(metadata NWProtocolMetadata) security.Sec_protocol_metadata_t
- func NWQuicCopySecProtocolOptions(options NWProtocolOptions) security.Sec_protocol_options_t
- func NWQuicGetApplicationError(metadata NWProtocolMetadata) uint64
- func NWQuicGetApplicationErrorReason(metadata NWProtocolMetadata) *byte
- func NWQuicGetIdleTimeout(options NWProtocolOptions) uint32
- func NWQuicGetInitialMaxData(options NWProtocolOptions) uint64
- func NWQuicGetInitialMaxStreamDataBidirectionalLocal(options NWProtocolOptions) uint64
- func NWQuicGetInitialMaxStreamDataBidirectionalRemote(options NWProtocolOptions) uint64
- func NWQuicGetInitialMaxStreamDataUnidirectional(options NWProtocolOptions) uint64
- func NWQuicGetInitialMaxStreamsBidirectional(options NWProtocolOptions) uint64
- func NWQuicGetInitialMaxStreamsUnidirectional(options NWProtocolOptions) uint64
- func NWQuicGetKeepaliveInterval(metadata NWProtocolMetadata) uint16
- func NWQuicGetLocalMaxStreamsBidirectional(metadata NWProtocolMetadata) uint64
- func NWQuicGetLocalMaxStreamsUnidirectional(metadata NWProtocolMetadata) uint64
- func NWQuicGetMaxDatagramFrameSize(options NWProtocolOptions) uint16
- func NWQuicGetMaxUDPPayloadSize(options NWProtocolOptions) uint16
- func NWQuicGetRemoteIdleTimeout(metadata NWProtocolMetadata) uint64
- func NWQuicGetRemoteMaxStreamsBidirectional(metadata NWProtocolMetadata) uint64
- func NWQuicGetRemoteMaxStreamsUnidirectional(metadata NWProtocolMetadata) uint64
- func NWQuicGetStreamApplicationError(metadata NWProtocolMetadata) uint64
- func NWQuicGetStreamID(metadata NWProtocolMetadata) uint64
- func NWQuicGetStreamIsDatagram(options NWProtocolOptions) bool
- func NWQuicGetStreamIsUnidirectional(options NWProtocolOptions) bool
- func NWQuicGetStreamType(stream_metadata NWProtocolMetadata) uint8
- func NWQuicGetStreamUsableDatagramFrameSize(metadata NWProtocolMetadata) uint16
- func NWQuicSetApplicationError(metadata NWProtocolMetadata, application_error uint64, reason string)
- func NWQuicSetIdleTimeout(options NWProtocolOptions, idle_timeout uint32)
- func NWQuicSetInitialMaxData(options NWProtocolOptions, initial_max_data uint64)
- func NWQuicSetInitialMaxStreamDataBidirectionalLocal(options NWProtocolOptions, initial_max_stream_data_bidirectional_local uint64)
- func NWQuicSetInitialMaxStreamDataBidirectionalRemote(options NWProtocolOptions, initial_max_stream_data_bidirectional_remote uint64)
- func NWQuicSetInitialMaxStreamDataUnidirectional(options NWProtocolOptions, initial_max_stream_data_unidirectional uint64)
- func NWQuicSetInitialMaxStreamsBidirectional(options NWProtocolOptions, initial_max_streams_bidirectional uint64)
- func NWQuicSetInitialMaxStreamsUnidirectional(options NWProtocolOptions, initial_max_streams_unidirectional uint64)
- func NWQuicSetKeepaliveInterval(metadata NWProtocolMetadata, keepalive_interval uint16)
- func NWQuicSetLocalMaxStreamsBidirectional(metadata NWProtocolMetadata, max_streams_bidirectional uint64)
- func NWQuicSetLocalMaxStreamsUnidirectional(metadata NWProtocolMetadata, max_streams_unidirectional uint64)
- func NWQuicSetMaxDatagramFrameSize(options NWProtocolOptions, max_datagram_frame_size uint16)
- func NWQuicSetMaxUDPPayloadSize(options NWProtocolOptions, max_udp_payload_size uint16)
- func NWQuicSetStreamApplicationError(metadata NWProtocolMetadata, application_error uint64)
- func NWQuicSetStreamIsDatagram(options NWProtocolOptions, is_datagram bool)
- func NWQuicSetStreamIsUnidirectional(options NWProtocolOptions, is_unidirectional bool)
- func NWRelayHopAddAdditionalHttpHeaderField(relay_hop NWRelayHop, field_name string, field_value string)
- func NWRelease(obj unsafe.Pointer)
- func NWResolutionReportGetEndpointCount(resolution_report NWResolutionReport) uint32
- func NWResolutionReportGetMilliseconds(resolution_report NWResolutionReport) uint64
- func NWResolverConfigAddServerAddress(config NWResolverConfig, server_address NWEndpoint)
- func NWRetain(obj unsafe.Pointer) unsafe.Pointer
- func NWTCPGetAvailableReceiveBuffer(metadata NWProtocolMetadata) uint32
- func NWTCPGetAvailableSendBuffer(metadata NWProtocolMetadata) uint32
- func NWTCPOptionsSetConnectionTimeout(options NWProtocolOptions, connection_timeout uint32)
- func NWTCPOptionsSetDisableAckStretching(options NWProtocolOptions, disable_ack_stretching bool)
- func NWTCPOptionsSetDisableEcn(options NWProtocolOptions, disable_ecn bool)
- func NWTCPOptionsSetEnableFastOpen(options NWProtocolOptions, enable_fast_open bool)
- func NWTCPOptionsSetEnableKeepalive(options NWProtocolOptions, enable_keepalive bool)
- func NWTCPOptionsSetKeepaliveCount(options NWProtocolOptions, keepalive_count uint32)
- func NWTCPOptionsSetKeepaliveIdleTime(options NWProtocolOptions, keepalive_idle_time uint32)
- func NWTCPOptionsSetKeepaliveInterval(options NWProtocolOptions, keepalive_interval uint32)
- func NWTCPOptionsSetMaximumSegmentSize(options NWProtocolOptions, maximum_segment_size uint32)
- func NWTCPOptionsSetMultipathForceVersion(options NWProtocolOptions, multipath_force_version NWMultipathVersion)
- func NWTCPOptionsSetNoDelay(options NWProtocolOptions, no_delay bool)
- func NWTCPOptionsSetNoOptions(options NWProtocolOptions, no_options bool)
- func NWTCPOptionsSetNoPush(options NWProtocolOptions, no_push bool)
- func NWTCPOptionsSetPersistTimeout(options NWProtocolOptions, persist_timeout uint32)
- func NWTCPOptionsSetRetransmitConnectionDropTime(options NWProtocolOptions, retransmit_connection_drop_time uint32)
- func NWTCPOptionsSetRetransmitFinDrop(options NWProtocolOptions, retransmit_fin_drop bool)
- func NWTLSCopySecProtocolMetadata(metadata NWProtocolMetadata) security.Sec_protocol_metadata_t
- func NWTLSCopySecProtocolOptions(options NWProtocolOptions) security.Sec_protocol_options_t
- func NWTXTRecordAccessBytesFunc(txt_record NWTXTRecord, access_bytes NWTXTRecordAccessBytes) bool
- func NWTXTRecordAccessKeyFunc(txt_record NWTXTRecord, key string, access_value NWTXTRecordAccessKey) bool
- func NWTXTRecordApply(txt_record NWTXTRecord, applier NWTXTRecordApplier) bool
- func NWTXTRecordGetKeyCount(txt_record NWTXTRecord) uintptr
- func NWTXTRecordIsDictionary(txt_record NWTXTRecord) bool
- func NWTXTRecordIsEqual(left NWTXTRecord, right NWTXTRecord) bool
- func NWTXTRecordRemoveKey(txt_record NWTXTRecord, key string) bool
- func NWTXTRecordSetKey(txt_record NWTXTRecord, key string, value []byte, value_len uintptr) bool
- func NWUDPOptionsSetPreferNoChecksum(options NWProtocolOptions, prefer_no_checksum bool)
- func NWWsMetadataSetCloseCode(metadata NWProtocolMetadata, close_code NWWsCloseCode)
- func NWWsMetadataSetPongHandler(metadata NWProtocolMetadata, client_queue dispatch.Queue, ...)
- func NWWsOptionsAddAdditionalHeader(options NWProtocolOptions, name string, value string)
- func NWWsOptionsAddSubprotocol(options NWProtocolOptions, subprotocol string)
- func NWWsOptionsSetAutoReplyPing(options NWProtocolOptions, auto_reply_ping bool)
- func NWWsOptionsSetClientRequestHandler(options NWProtocolOptions, client_queue dispatch.Queue, ...)
- func NWWsOptionsSetMaximumMessageSize(options NWProtocolOptions, maximum_message_size uintptr)
- func NWWsOptionsSetSkipHandshake(options NWProtocolOptions, skip_handshake bool)
- func NWWsRequestEnumerateAdditionalHeaders(request NWWsRequest, enumerator NWWsAdditionalHeaderEnumerator) bool
- func NWWsRequestEnumerateSubprotocols(request NWWsRequest, enumerator NWWsSubprotocolEnumerator) bool
- func NWWsResponseAddAdditionalHeader(response NWWsResponse, name string, value string)
- func NWWsResponseEnumerateAdditionalHeaders(response NWWsResponse, enumerator NWWsAdditionalHeaderEnumerator) bool
- func NWWsResponseGetSelectedSubprotocol(response NWWsResponse) *byte
- func NewNWBrowseResultEnumerateInterfaceBlock(handler NWBrowseResultEnumerateInterface) (objc.ID, func())
- func NewNWBrowserBrowseResultsChangedHandlerBlock(handler NWBrowserBrowseResultsChangedHandler) (objc.ID, func())
- func NewNWBrowserStateChangedHandlerBlock(handler NWBrowserStateChangedHandler) (objc.ID, func())
- func NewNWConnectionBooleanEventHandlerBlock(handler NWConnectionBooleanEventHandler) (objc.ID, func())
- func NewNWConnectionGroupNewConnectionHandlerBlock(handler NWConnectionGroupNewConnectionHandler) (objc.ID, func())
- func NewNWConnectionGroupReceiveHandlerBlock(handler NWConnectionGroupReceiveHandler) (objc.ID, func())
- func NewNWConnectionGroupSendCompletionBlock(handler NWConnectionGroupSendCompletion) (objc.ID, func())
- func NewNWConnectionGroupStateChangedHandlerBlock(handler NWConnectionGroupStateChangedHandler) (objc.ID, func())
- func NewNWConnectionPathEventHandlerBlock(handler NWConnectionPathEventHandler) (objc.ID, func())
- func NewNWConnectionReceiveCompletionBlock(handler NWConnectionReceiveCompletion) (objc.ID, func())
- func NewNWConnectionSendCompletionBlock(handler NWConnectionSendCompletion) (objc.ID, func())
- func NewNWConnectionStateChangedHandlerBlock(handler NWConnectionStateChangedHandler) (objc.ID, func())
- func NewNWDataTransferReportCollectBlock(handler NWDataTransferReportCollectBlock) (objc.ID, func())
- func NewNWEstablishmentReportAccessBlock(handler NWEstablishmentReportAccessBlock) (objc.ID, func())
- func NewNWEthernetChannelReceiveHandlerBlock(handler NWEthernetChannelReceiveHandler) (objc.ID, func())
- func NewNWEthernetChannelSendCompletionBlock(handler NWEthernetChannelSendCompletion) (objc.ID, func())
- func NewNWEthernetChannelStateChangedHandlerBlock(handler NWEthernetChannelStateChangedHandler) (objc.ID, func())
- func NewNWFramerBlock(handler NWFramerBlock) (objc.ID, func())
- func NewNWFramerCleanupHandlerBlock(handler NWFramerCleanupHandler) (objc.ID, func())
- func NewNWFramerInputHandlerBlock(handler NWFramerInputHandler) (objc.ID, func())
- func NewNWFramerMessageDisposeValueBlock(handler NWFramerMessageDisposeValue) (objc.ID, func())
- func NewNWFramerOutputHandlerBlock(handler NWFramerOutputHandler) (objc.ID, func())
- func NewNWFramerStartHandlerBlock(handler NWFramerStartHandler) (objc.ID, func())
- func NewNWFramerStopHandlerBlock(handler NWFramerStopHandler) (objc.ID, func())
- func NewNWFramerWakeupHandlerBlock(handler NWFramerWakeupHandler) (objc.ID, func())
- func NewNWGroupDescriptorEnumerateEndpointsBlock(handler NWGroupDescriptorEnumerateEndpointsBlock) (objc.ID, func())
- func NewNWListenerAdvertisedEndpointChangedHandlerBlock(handler NWListenerAdvertisedEndpointChangedHandler) (objc.ID, func())
- func NewNWListenerNewConnectionGroupHandlerBlock(handler NWListenerNewConnectionGroupHandler) (objc.ID, func())
- func NewNWListenerNewConnectionHandlerBlock(handler NWListenerNewConnectionHandler) (objc.ID, func())
- func NewNWListenerStateChangedHandlerBlock(handler NWListenerStateChangedHandler) (objc.ID, func())
- func NewNWParametersConfigureProtocolBlock(handler NWParametersConfigureProtocolBlock) (objc.ID, func())
- func NewNWParametersIterateInterfaceTypesBlock(handler NWParametersIterateInterfaceTypesBlock) (objc.ID, func())
- func NewNWParametersIterateInterfacesBlock(handler NWParametersIterateInterfacesBlock) (objc.ID, func())
- func NewNWPathEnumerateGatewaysBlock(handler NWPathEnumerateGatewaysBlock) (objc.ID, func())
- func NewNWPathEnumerateInterfacesBlock(handler NWPathEnumerateInterfacesBlock) (objc.ID, func())
- func NewNWPathMonitorCancelHandlerBlock(handler NWPathMonitorCancelHandler) (objc.ID, func())
- func NewNWPathMonitorUpdateHandlerBlock(handler NWPathMonitorUpdateHandler) (objc.ID, func())
- func NewNWProtocolStackIterateProtocolsBlock(handler NWProtocolStackIterateProtocolsBlock) (objc.ID, func())
- func NewNWProxyDomainEnumeratorBlock(handler NWProxyDomainEnumerator) (objc.ID, func())
- func NewNWReportResolutionReportEnumeratorBlock(handler NWReportResolutionReportEnumerator) (objc.ID, func())
- func NewNWWsClientRequestHandlerBlock(handler NWWsClientRequestHandler) (objc.ID, func())
- func NewNWWsPongHandlerBlock(handler NWWsPongHandler) (objc.ID, func())
- func NewNWWsSubprotocolEnumeratorBlock(handler NWWsSubprotocolEnumerator) (objc.ID, func())
- func SymbolAddress(name string) (uintptr, error)
- func TryNWAdvertiseDescriptorGetApplicationServiceName(advertise_descriptor NWAdvertiseDescriptor) (*byte, error)
- func TryNWAdvertiseDescriptorGetNoAutoRename(advertise_descriptor NWAdvertiseDescriptor) (bool, error)
- func TryNWAdvertiseDescriptorSetNoAutoRename(advertise_descriptor NWAdvertiseDescriptor, no_auto_rename bool) error
- func TryNWAdvertiseDescriptorSetTXTRecord(advertise_descriptor NWAdvertiseDescriptor, txt_record unsafe.Pointer, ...) error
- func TryNWAdvertiseDescriptorSetTXTRecordObject(advertise_descriptor NWAdvertiseDescriptor, txt_record NWTXTRecord) error
- func TryNWBrowseDescriptorGetApplicationServiceName(descriptor NWBrowseDescriptor) (*byte, error)
- func TryNWBrowseDescriptorGetBonjourServiceDomain(descriptor NWBrowseDescriptor) (*byte, error)
- func TryNWBrowseDescriptorGetBonjourServiceType(descriptor NWBrowseDescriptor) (*byte, error)
- func TryNWBrowseDescriptorGetIncludeTXTRecord(descriptor NWBrowseDescriptor) (bool, error)
- func TryNWBrowseDescriptorSetIncludeTXTRecord(descriptor NWBrowseDescriptor, include_txt_record bool) error
- func TryNWBrowseResultEnumerateInterfaces(result NWBrowseResult, enumerator NWBrowseResultEnumerateInterface) error
- func TryNWBrowseResultGetInterfacesCount(result NWBrowseResult) (uintptr, error)
- func TryNWBrowserCancel(browser NWBrowser) error
- func TryNWBrowserSetBrowseResultsChangedHandler(browser NWBrowser, handler NWBrowserBrowseResultsChangedHandler) error
- func TryNWBrowserSetQueue(browser NWBrowser, queue dispatch.Queue) error
- func TryNWBrowserSetStateChangedHandler(browser NWBrowser, state_changed_handler NWBrowserStateChangedHandler) error
- func TryNWBrowserStart(browser NWBrowser) error
- func TryNWConnectionAccessEstablishmentReport(connection NWConnection, queue dispatch.Queue, ...) error
- func TryNWConnectionBatch(connection NWConnection, batch_block unsafe.Pointer) error
- func TryNWConnectionCancel(connection NWConnection) error
- func TryNWConnectionCancelCurrentEndpoint(connection NWConnection) error
- func TryNWConnectionCopyDescription(connection NWConnection) (*byte, error)
- func TryNWConnectionForceCancel(connection NWConnection) error
- func TryNWConnectionGetMaximumDatagramSize(connection NWConnection) (uint32, error)
- func TryNWConnectionGroupCancel(group NWConnectionGroup) error
- func TryNWConnectionGroupReinsertExtractedConnection(group NWConnectionGroup, connection NWConnection) (bool, error)
- func TryNWConnectionGroupReply(group NWConnectionGroup, inbound_message NWContentContext, ...) error
- func TryNWConnectionGroupSendMessage(group NWConnectionGroup, content dispatch.Data, endpoint NWEndpoint, ...) error
- func TryNWConnectionGroupSetNewConnectionHandler(group NWConnectionGroup, ...) error
- func TryNWConnectionGroupSetQueue(group NWConnectionGroup, queue dispatch.Queue) error
- func TryNWConnectionGroupSetReceiveHandler(group NWConnectionGroup, maximum_message_size uint32, ...) error
- func TryNWConnectionGroupSetStateChangedHandler(group NWConnectionGroup, ...) error
- func TryNWConnectionGroupStart(group NWConnectionGroup) error
- func TryNWConnectionReceive(connection NWConnection, minimum_incomplete_length uint32, ...) error
- func TryNWConnectionReceiveMessage(connection NWConnection, completion NWConnectionReceiveCompletion) error
- func TryNWConnectionRestart(connection NWConnection) error
- func TryNWConnectionSend(connection NWConnection, content dispatch.Data, context NWContentContext, ...) error
- func TryNWConnectionSetBetterPathAvailableHandler(connection NWConnection, handler NWConnectionBooleanEventHandler) error
- func TryNWConnectionSetPathChangedHandler(connection NWConnection, handler NWConnectionPathEventHandler) error
- func TryNWConnectionSetQueue(connection NWConnection, queue dispatch.Queue) error
- func TryNWConnectionSetStateChangedHandler(connection NWConnection, handler NWConnectionStateChangedHandler) error
- func TryNWConnectionSetViabilityChangedHandler(connection NWConnection, handler NWConnectionBooleanEventHandler) error
- func TryNWConnectionStart(connection NWConnection) error
- func TryNWContentContextForeachProtocolMetadata(context NWContentContext) error
- func TryNWContentContextGetExpirationMilliseconds(context NWContentContext) (uint64, error)
- func TryNWContentContextGetIdentifier(context NWContentContext) (*byte, error)
- func TryNWContentContextGetIsFinal(context NWContentContext) (bool, error)
- func TryNWContentContextGetRelativePriority(context NWContentContext) (float64, error)
- func TryNWContentContextSetAntecedent(context NWContentContext, antecedent_context NWContentContext) error
- func TryNWContentContextSetExpirationMilliseconds(context NWContentContext, expiration_milliseconds uint64) error
- func TryNWContentContextSetIsFinal(context NWContentContext, is_final bool) error
- func TryNWContentContextSetMetadataForProtocol(context NWContentContext, protocol_metadata NWProtocolMetadata) error
- func TryNWContentContextSetRelativePriority(context NWContentContext, relative_priority float64) error
- func TryNWDataTransferReportCollect(report NWDataTransferReport, queue dispatch.Queue, ...) error
- func TryNWDataTransferReportGetDurationMilliseconds(report NWDataTransferReport) (uint64, error)
- func TryNWDataTransferReportGetPathCount(report NWDataTransferReport) (uint32, error)
- func TryNWDataTransferReportGetReceivedApplicationByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetReceivedIPPacketCount(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetReceivedTransportByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetReceivedTransportDuplicateByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetReceivedTransportOutOfOrderByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetSentApplicationByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetSentIPPacketCount(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetSentTransportByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetSentTransportRetransmittedByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetTransportMinimumRttMilliseconds(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetTransportRttVariance(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWDataTransferReportGetTransportSmoothedRttMilliseconds(report NWDataTransferReport, path_index uint32) (uint64, error)
- func TryNWEndpointCopyAddressString(endpoint NWEndpoint) (*byte, error)
- func TryNWEndpointCopyPortString(endpoint NWEndpoint) (*byte, error)
- func TryNWEndpointGetAddress(endpoint NWEndpoint) (unsafe.Pointer, error)
- func TryNWEndpointGetBonjourServiceDomain(endpoint NWEndpoint) (*byte, error)
- func TryNWEndpointGetBonjourServiceName(endpoint NWEndpoint) (*byte, error)
- func TryNWEndpointGetBonjourServiceType(endpoint NWEndpoint) (*byte, error)
- func TryNWEndpointGetHostname(endpoint NWEndpoint) (*byte, error)
- func TryNWEndpointGetPort(endpoint NWEndpoint) (uint16, error)
- func TryNWEndpointGetSignature(endpoint NWEndpoint, out_signature_length *uintptr) (*uint8, error)
- func TryNWEndpointGetURL(endpoint NWEndpoint) (*byte, error)
- func TryNWErrorCopyCfError(err NWError) (corefoundation.CFErrorRef, error)
- func TryNWErrorGetErrorCode(err NWError) (int32, error)
- func TryNWEstablishmentReportEnumerateProtocols(report NWEstablishmentReport, enumerate_block NWReportProtocolEnumerator) error
- func TryNWEstablishmentReportEnumerateResolutionReports(report NWEstablishmentReport, ...) error
- func TryNWEstablishmentReportEnumerateResolutions(report NWEstablishmentReport, enumerate_block NWReportResolutionEnumerator) error
- func TryNWEstablishmentReportGetAttemptStartedAfterMilliseconds(report NWEstablishmentReport) (uint64, error)
- func TryNWEstablishmentReportGetDurationMilliseconds(report NWEstablishmentReport) (uint64, error)
- func TryNWEstablishmentReportGetPreviousAttemptCount(report NWEstablishmentReport) (uint32, error)
- func TryNWEstablishmentReportGetProxyConfigured(report NWEstablishmentReport) (bool, error)
- func TryNWEstablishmentReportGetUsedProxy(report NWEstablishmentReport) (bool, error)
- func TryNWEthernetChannelCancel(ethernet_channel NWEthernetChannel) error
- func TryNWEthernetChannelGetMaximumPayloadSize(ethernet_channel NWEthernetChannel) (uint32, error)
- func TryNWEthernetChannelSend(ethernet_channel NWEthernetChannel, content dispatch.Data, vlan_tag uint16, ...) error
- func TryNWEthernetChannelSetQueue(ethernet_channel NWEthernetChannel, queue dispatch.Queue) error
- func TryNWEthernetChannelSetReceiveHandler(ethernet_channel NWEthernetChannel, handler NWEthernetChannelReceiveHandler) error
- func TryNWEthernetChannelSetStateChangedHandler(ethernet_channel NWEthernetChannel, ...) error
- func TryNWEthernetChannelStart(ethernet_channel NWEthernetChannel) error
- func TryNWFramerAsync(framer NWFramer, async_block NWFramerBlock) error
- func TryNWFramerDeliverInput(framer NWFramer, input_buffer []byte, input_length uintptr, ...) error
- func TryNWFramerDeliverInputNoCopy(framer NWFramer, input_length uintptr, message NWFramerMessage, ...) (bool, error)
- func TryNWFramerMarkFailedWithError(framer NWFramer, error_code int32) error
- func TryNWFramerMarkReady(framer NWFramer) error
- func TryNWFramerMessageAccessValue(message NWFramerMessage, key string, access_value bool) (bool, error)
- func TryNWFramerMessageCopyObjectValue(message NWFramerMessage, key string) (objectivec.Object, error)
- func TryNWFramerMessageSetObjectValue(message NWFramerMessage, key string, value objectivec.Object) error
- func TryNWFramerMessageSetValue(message NWFramerMessage, key string, value unsafe.Pointer, ...) error
- func TryNWFramerOptionsCopyObjectValue(options NWProtocolOptions, key string) (objectivec.Object, error)
- func TryNWFramerOptionsSetObjectValue(options NWProtocolOptions, key string, value objectivec.Object) error
- func TryNWFramerParseInput(framer NWFramer, minimum_incomplete_length uintptr, maximum_length uintptr, ...) (bool, error)
- func TryNWFramerParseOutput(framer NWFramer, minimum_incomplete_length uintptr, maximum_length uintptr, ...) (bool, error)
- func TryNWFramerPassThroughInput(framer NWFramer) error
- func TryNWFramerPassThroughOutput(framer NWFramer) error
- func TryNWFramerPrependApplicationProtocol(framer NWFramer, protocol_options NWProtocolOptions) (bool, error)
- func TryNWFramerScheduleWakeup(framer NWFramer, milliseconds uint64) error
- func TryNWFramerSetCleanupHandler(framer NWFramer, cleanup_handler NWFramerCleanupHandler) error
- func TryNWFramerSetInputHandler(framer NWFramer, input_handler NWFramerInputHandler) error
- func TryNWFramerSetOutputHandler(framer NWFramer, output_handler NWFramerOutputHandler) error
- func TryNWFramerSetStopHandler(framer NWFramer, stop_handler NWFramerStopHandler) error
- func TryNWFramerSetWakeupHandler(framer NWFramer, wakeup_handler NWFramerWakeupHandler) error
- func TryNWFramerWriteOutput(framer NWFramer, output_buffer []byte, output_length uintptr) error
- func TryNWFramerWriteOutputData(framer NWFramer, output_data dispatch.Data) error
- func TryNWFramerWriteOutputNoCopy(framer NWFramer, output_length uintptr) (bool, error)
- func TryNWGroupDescriptorAddEndpoint(descriptor NWGroupDescriptor, endpoint NWEndpoint) (bool, error)
- func TryNWGroupDescriptorEnumerateEndpoints(descriptor NWGroupDescriptor, ...) error
- func TryNWIPMetadataGetReceiveTime(metadata NWProtocolMetadata) (uint64, error)
- func TryNWIPMetadataSetEcnFlag(metadata NWProtocolMetadata, ecn_flag NWIPEcnFlag) error
- func TryNWIPMetadataSetServiceClass(metadata NWProtocolMetadata, service_class NWServiceClass) error
- func TryNWIPOptionsSetCalculateReceiveTime(options NWProtocolOptions, calculate_receive_time bool) error
- func TryNWIPOptionsSetDisableFragmentation(options NWProtocolOptions, disable_fragmentation bool) error
- func TryNWIPOptionsSetDisableMulticastLoopback(options NWProtocolOptions, disable_multicast_loopback bool) error
- func TryNWIPOptionsSetHopLimit(options NWProtocolOptions, hop_limit uint8) error
- func TryNWIPOptionsSetLocalAddressPreference(options NWProtocolOptions, preference NWIPLocalAddressPreference) error
- func TryNWIPOptionsSetUseMinimumMtu(options NWProtocolOptions, use_minimum_mtu bool) error
- func TryNWIPOptionsSetVersion(options NWProtocolOptions, version NWIPVersion) error
- func TryNWInterfaceGetIndex(interface_ NWInterface) (uint32, error)
- func TryNWInterfaceGetName(interface_ NWInterface) (*byte, error)
- func TryNWListenerCancel(listener NWListener) error
- func TryNWListenerGetNewConnectionLimit(listener NWListener) (uint32, error)
- func TryNWListenerGetPort(listener NWListener) (uint16, error)
- func TryNWListenerSetAdvertiseDescriptor(listener NWListener, advertise_descriptor NWAdvertiseDescriptor) error
- func TryNWListenerSetAdvertisedEndpointChangedHandler(listener NWListener, handler NWListenerAdvertisedEndpointChangedHandler) error
- func TryNWListenerSetNewConnectionGroupHandler(listener NWListener, handler NWListenerNewConnectionGroupHandler) error
- func TryNWListenerSetNewConnectionHandler(listener NWListener, handler NWListenerNewConnectionHandler) error
- func TryNWListenerSetNewConnectionLimit(listener NWListener, new_connection_limit uint32) error
- func TryNWListenerSetQueue(listener NWListener, queue dispatch.Queue) error
- func TryNWListenerSetStateChangedHandler(listener NWListener, handler NWListenerStateChangedHandler) error
- func TryNWListenerStart(listener NWListener) error
- func TryNWMulticastGroupDescriptorGetDisableUnicastTraffic(multicast_descriptor NWGroupDescriptor) (bool, error)
- func TryNWMulticastGroupDescriptorSetDisableUnicastTraffic(multicast_descriptor NWGroupDescriptor, disable_unicast_traffic bool) error
- func TryNWMulticastGroupDescriptorSetSpecificSource(multicast_descriptor NWGroupDescriptor, source NWEndpoint) error
- func TryNWParametersClearProhibitedInterfaceTypes(parameters NWParameters) error
- func TryNWParametersClearProhibitedInterfaces(parameters NWParameters) error
- func TryNWParametersGetAllowUltraConstrained(parameters NWParameters) (bool, error)
- func TryNWParametersGetFastOpenEnabled(parameters NWParameters) (bool, error)
- func TryNWParametersGetIncludePeerToPeer(parameters NWParameters) (bool, error)
- func TryNWParametersGetLocalOnly(parameters NWParameters) (bool, error)
- func TryNWParametersGetPreferNoProxy(parameters NWParameters) (bool, error)
- func TryNWParametersGetProhibitConstrained(parameters NWParameters) (bool, error)
- func TryNWParametersGetProhibitExpensive(parameters NWParameters) (bool, error)
- func TryNWParametersGetReuseLocalAddress(parameters NWParameters) (bool, error)
- func TryNWParametersIterateProhibitedInterfaceTypes(parameters NWParameters, iterate_block NWParametersIterateInterfaceTypesBlock) error
- func TryNWParametersIterateProhibitedInterfaces(parameters NWParameters, iterate_block NWParametersIterateInterfacesBlock) error
- func TryNWParametersProhibitInterface(parameters NWParameters, interface_ NWInterface) error
- func TryNWParametersProhibitInterfaceType(parameters NWParameters, interface_type NWInterfaceType) error
- func TryNWParametersRequireInterface(parameters NWParameters, interface_ NWInterface) error
- func TryNWParametersRequiresDnssecValidation(parameters NWParameters) (bool, error)
- func TryNWParametersSetAllowUltraConstrained(parameters NWParameters, allow_ultra_constrained bool) error
- func TryNWParametersSetAttribution(parameters NWParameters, attribution NWParametersAttribution) error
- func TryNWParametersSetExpiredDnsBehavior(parameters NWParameters, expired_dns_behavior NWParametersExpiredDnsBehavior) error
- func TryNWParametersSetFastOpenEnabled(parameters NWParameters, fast_open_enabled bool) error
- func TryNWParametersSetIncludePeerToPeer(parameters NWParameters, include_peer_to_peer bool) error
- func TryNWParametersSetLocalEndpoint(parameters NWParameters, local_endpoint NWEndpoint) error
- func TryNWParametersSetLocalOnly(parameters NWParameters, local_only bool) error
- func TryNWParametersSetMultipathService(parameters NWParameters, multipath_service NWMultipathService) error
- func TryNWParametersSetPreferNoProxy(parameters NWParameters, prefer_no_proxy bool) error
- func TryNWParametersSetPrivacyContext(parameters NWParameters, privacy_context NWPrivacyContext) error
- func TryNWParametersSetProhibitConstrained(parameters NWParameters, prohibit_constrained bool) error
- func TryNWParametersSetProhibitExpensive(parameters NWParameters, prohibit_expensive bool) error
- func TryNWParametersSetRequiredInterfaceType(parameters NWParameters, interface_type NWInterfaceType) error
- func TryNWParametersSetRequiresDnssecValidation(parameters NWParameters, requires_dnssec_validation bool) error
- func TryNWParametersSetReuseLocalAddress(parameters NWParameters, reuse_local_address bool) error
- func TryNWParametersSetServiceClass(parameters NWParameters, service_class NWServiceClass) error
- func TryNWPathEnumerateGateways(path NWPath, enumerate_block NWPathEnumerateGatewaysBlock) error
- func TryNWPathEnumerateInterfaces(path NWPath, enumerate_block NWPathEnumerateInterfacesBlock) error
- func TryNWPathHasDns(path NWPath) (bool, error)
- func TryNWPathHasIpv4(path NWPath) (bool, error)
- func TryNWPathHasIpv6(path NWPath) (bool, error)
- func TryNWPathIsConstrained(path NWPath) (bool, error)
- func TryNWPathIsEqual(path NWPath, other_path NWPath) (bool, error)
- func TryNWPathIsExpensive(path NWPath) (bool, error)
- func TryNWPathIsUltraConstrained(path NWPath) (bool, error)
- func TryNWPathMonitorCancel(monitor NWPathMonitor) error
- func TryNWPathMonitorProhibitInterfaceType(monitor NWPathMonitor, interface_type NWInterfaceType) error
- func TryNWPathMonitorSetCancelHandler(monitor NWPathMonitor, cancel_handler NWPathMonitorCancelHandler) error
- func TryNWPathMonitorSetQueue(monitor NWPathMonitor, queue dispatch.Queue) error
- func TryNWPathMonitorSetUpdateHandler(monitor NWPathMonitor, update_handler NWPathMonitorUpdateHandler) error
- func TryNWPathMonitorStart(monitor NWPathMonitor) error
- func TryNWPathUsesInterfaceType(path NWPath, interface_type NWInterfaceType) (bool, error)
- func TryNWPrivacyContextAddProxy(privacy_context NWPrivacyContext, proxy_config NWProxyConfig) error
- func TryNWPrivacyContextClearProxies(privacy_context NWPrivacyContext) error
- func TryNWPrivacyContextDisableLogging(privacy_context NWPrivacyContext) error
- func TryNWPrivacyContextFlushCache(privacy_context NWPrivacyContext) error
- func TryNWPrivacyContextRequireEncryptedNameResolution(privacy_context NWPrivacyContext, require_encrypted_name_resolution bool, ...) error
- func TryNWProtocolDefinitionIsEqual(definition1 NWProtocolDefinition, definition2 NWProtocolDefinition) (bool, error)
- func TryNWProtocolMetadataIsFramerMessage(metadata NWProtocolMetadata) (bool, error)
- func TryNWProtocolMetadataIsIP(metadata NWProtocolMetadata) (bool, error)
- func TryNWProtocolMetadataIsQuic(metadata NWProtocolMetadata) (bool, error)
- func TryNWProtocolMetadataIsTCP(metadata NWProtocolMetadata) (bool, error)
- func TryNWProtocolMetadataIsTLS(metadata NWProtocolMetadata) (bool, error)
- func TryNWProtocolMetadataIsUDP(metadata NWProtocolMetadata) (bool, error)
- func TryNWProtocolMetadataIsWs(metadata NWProtocolMetadata) (bool, error)
- func TryNWProtocolOptionsIsQuic(options NWProtocolOptions) (bool, error)
- func TryNWProtocolStackClearApplicationProtocols(stack NWProtocolStack) error
- func TryNWProtocolStackIterateApplicationProtocols(stack NWProtocolStack, iterate_block NWProtocolStackIterateProtocolsBlock) error
- func TryNWProtocolStackPrependApplicationProtocol(stack NWProtocolStack, protocol_ NWProtocolOptions) error
- func TryNWProtocolStackSetTransportProtocol(stack NWProtocolStack, protocol_ NWProtocolOptions) error
- func TryNWProxyConfigAddExcludedDomain(config NWProxyConfig, excluded_domain string) error
- func TryNWProxyConfigAddMatchDomain(config NWProxyConfig, match_domain string) error
- func TryNWProxyConfigClearExcludedDomains(config NWProxyConfig) error
- func TryNWProxyConfigClearMatchDomains(config NWProxyConfig) error
- func TryNWProxyConfigEnumerateExcludedDomains(config NWProxyConfig, enumerator NWProxyDomainEnumerator) error
- func TryNWProxyConfigEnumerateMatchDomains(config NWProxyConfig, enumerator NWProxyDomainEnumerator) error
- func TryNWProxyConfigGetFailoverAllowed(proxy_config NWProxyConfig) (bool, error)
- func TryNWProxyConfigSetFailoverAllowed(proxy_config NWProxyConfig, failover_allowed bool) error
- func TryNWProxyConfigSetUsernameAndPassword(proxy_config NWProxyConfig, username string, password string) error
- func TryNWQuicAddTLSApplicationProtocol(options NWProtocolOptions, application_protocol string) error
- func TryNWQuicCopySecProtocolMetadata(metadata NWProtocolMetadata) (security.Sec_protocol_metadata_t, error)
- func TryNWQuicCopySecProtocolOptions(options NWProtocolOptions) (security.Sec_protocol_options_t, error)
- func TryNWQuicGetApplicationError(metadata NWProtocolMetadata) (uint64, error)
- func TryNWQuicGetApplicationErrorReason(metadata NWProtocolMetadata) (*byte, error)
- func TryNWQuicGetIdleTimeout(options NWProtocolOptions) (uint32, error)
- func TryNWQuicGetInitialMaxData(options NWProtocolOptions) (uint64, error)
- func TryNWQuicGetInitialMaxStreamDataBidirectionalLocal(options NWProtocolOptions) (uint64, error)
- func TryNWQuicGetInitialMaxStreamDataBidirectionalRemote(options NWProtocolOptions) (uint64, error)
- func TryNWQuicGetInitialMaxStreamDataUnidirectional(options NWProtocolOptions) (uint64, error)
- func TryNWQuicGetInitialMaxStreamsBidirectional(options NWProtocolOptions) (uint64, error)
- func TryNWQuicGetInitialMaxStreamsUnidirectional(options NWProtocolOptions) (uint64, error)
- func TryNWQuicGetKeepaliveInterval(metadata NWProtocolMetadata) (uint16, error)
- func TryNWQuicGetLocalMaxStreamsBidirectional(metadata NWProtocolMetadata) (uint64, error)
- func TryNWQuicGetLocalMaxStreamsUnidirectional(metadata NWProtocolMetadata) (uint64, error)
- func TryNWQuicGetMaxDatagramFrameSize(options NWProtocolOptions) (uint16, error)
- func TryNWQuicGetMaxUDPPayloadSize(options NWProtocolOptions) (uint16, error)
- func TryNWQuicGetRemoteIdleTimeout(metadata NWProtocolMetadata) (uint64, error)
- func TryNWQuicGetRemoteMaxStreamsBidirectional(metadata NWProtocolMetadata) (uint64, error)
- func TryNWQuicGetRemoteMaxStreamsUnidirectional(metadata NWProtocolMetadata) (uint64, error)
- func TryNWQuicGetStreamApplicationError(metadata NWProtocolMetadata) (uint64, error)
- func TryNWQuicGetStreamID(metadata NWProtocolMetadata) (uint64, error)
- func TryNWQuicGetStreamIsDatagram(options NWProtocolOptions) (bool, error)
- func TryNWQuicGetStreamIsUnidirectional(options NWProtocolOptions) (bool, error)
- func TryNWQuicGetStreamType(stream_metadata NWProtocolMetadata) (uint8, error)
- func TryNWQuicGetStreamUsableDatagramFrameSize(metadata NWProtocolMetadata) (uint16, error)
- func TryNWQuicSetApplicationError(metadata NWProtocolMetadata, application_error uint64, reason string) error
- func TryNWQuicSetIdleTimeout(options NWProtocolOptions, idle_timeout uint32) error
- func TryNWQuicSetInitialMaxData(options NWProtocolOptions, initial_max_data uint64) error
- func TryNWQuicSetInitialMaxStreamDataBidirectionalLocal(options NWProtocolOptions, initial_max_stream_data_bidirectional_local uint64) error
- func TryNWQuicSetInitialMaxStreamDataBidirectionalRemote(options NWProtocolOptions, initial_max_stream_data_bidirectional_remote uint64) error
- func TryNWQuicSetInitialMaxStreamDataUnidirectional(options NWProtocolOptions, initial_max_stream_data_unidirectional uint64) error
- func TryNWQuicSetInitialMaxStreamsBidirectional(options NWProtocolOptions, initial_max_streams_bidirectional uint64) error
- func TryNWQuicSetInitialMaxStreamsUnidirectional(options NWProtocolOptions, initial_max_streams_unidirectional uint64) error
- func TryNWQuicSetKeepaliveInterval(metadata NWProtocolMetadata, keepalive_interval uint16) error
- func TryNWQuicSetLocalMaxStreamsBidirectional(metadata NWProtocolMetadata, max_streams_bidirectional uint64) error
- func TryNWQuicSetLocalMaxStreamsUnidirectional(metadata NWProtocolMetadata, max_streams_unidirectional uint64) error
- func TryNWQuicSetMaxDatagramFrameSize(options NWProtocolOptions, max_datagram_frame_size uint16) error
- func TryNWQuicSetMaxUDPPayloadSize(options NWProtocolOptions, max_udp_payload_size uint16) error
- func TryNWQuicSetStreamApplicationError(metadata NWProtocolMetadata, application_error uint64) error
- func TryNWQuicSetStreamIsDatagram(options NWProtocolOptions, is_datagram bool) error
- func TryNWQuicSetStreamIsUnidirectional(options NWProtocolOptions, is_unidirectional bool) error
- func TryNWRelayHopAddAdditionalHttpHeaderField(relay_hop NWRelayHop, field_name string, field_value string) error
- func TryNWRelease(obj unsafe.Pointer) error
- func TryNWResolutionReportGetEndpointCount(resolution_report NWResolutionReport) (uint32, error)
- func TryNWResolutionReportGetMilliseconds(resolution_report NWResolutionReport) (uint64, error)
- func TryNWResolverConfigAddServerAddress(config NWResolverConfig, server_address NWEndpoint) error
- func TryNWRetain(obj unsafe.Pointer) (unsafe.Pointer, error)
- func TryNWTCPGetAvailableReceiveBuffer(metadata NWProtocolMetadata) (uint32, error)
- func TryNWTCPGetAvailableSendBuffer(metadata NWProtocolMetadata) (uint32, error)
- func TryNWTCPOptionsSetConnectionTimeout(options NWProtocolOptions, connection_timeout uint32) error
- func TryNWTCPOptionsSetDisableAckStretching(options NWProtocolOptions, disable_ack_stretching bool) error
- func TryNWTCPOptionsSetDisableEcn(options NWProtocolOptions, disable_ecn bool) error
- func TryNWTCPOptionsSetEnableFastOpen(options NWProtocolOptions, enable_fast_open bool) error
- func TryNWTCPOptionsSetEnableKeepalive(options NWProtocolOptions, enable_keepalive bool) error
- func TryNWTCPOptionsSetKeepaliveCount(options NWProtocolOptions, keepalive_count uint32) error
- func TryNWTCPOptionsSetKeepaliveIdleTime(options NWProtocolOptions, keepalive_idle_time uint32) error
- func TryNWTCPOptionsSetKeepaliveInterval(options NWProtocolOptions, keepalive_interval uint32) error
- func TryNWTCPOptionsSetMaximumSegmentSize(options NWProtocolOptions, maximum_segment_size uint32) error
- func TryNWTCPOptionsSetMultipathForceVersion(options NWProtocolOptions, multipath_force_version NWMultipathVersion) error
- func TryNWTCPOptionsSetNoDelay(options NWProtocolOptions, no_delay bool) error
- func TryNWTCPOptionsSetNoOptions(options NWProtocolOptions, no_options bool) error
- func TryNWTCPOptionsSetNoPush(options NWProtocolOptions, no_push bool) error
- func TryNWTCPOptionsSetPersistTimeout(options NWProtocolOptions, persist_timeout uint32) error
- func TryNWTCPOptionsSetRetransmitConnectionDropTime(options NWProtocolOptions, retransmit_connection_drop_time uint32) error
- func TryNWTCPOptionsSetRetransmitFinDrop(options NWProtocolOptions, retransmit_fin_drop bool) error
- func TryNWTLSCopySecProtocolMetadata(metadata NWProtocolMetadata) (security.Sec_protocol_metadata_t, error)
- func TryNWTLSCopySecProtocolOptions(options NWProtocolOptions) (security.Sec_protocol_options_t, error)
- func TryNWTXTRecordAccessBytesFunc(txt_record NWTXTRecord, access_bytes NWTXTRecordAccessBytes) (bool, error)
- func TryNWTXTRecordAccessKeyFunc(txt_record NWTXTRecord, key string, access_value NWTXTRecordAccessKey) (bool, error)
- func TryNWTXTRecordApply(txt_record NWTXTRecord, applier NWTXTRecordApplier) (bool, error)
- func TryNWTXTRecordGetKeyCount(txt_record NWTXTRecord) (uintptr, error)
- func TryNWTXTRecordIsDictionary(txt_record NWTXTRecord) (bool, error)
- func TryNWTXTRecordIsEqual(left NWTXTRecord, right NWTXTRecord) (bool, error)
- func TryNWTXTRecordRemoveKey(txt_record NWTXTRecord, key string) (bool, error)
- func TryNWTXTRecordSetKey(txt_record NWTXTRecord, key string, value []byte, value_len uintptr) (bool, error)
- func TryNWUDPOptionsSetPreferNoChecksum(options NWProtocolOptions, prefer_no_checksum bool) error
- func TryNWWsMetadataSetCloseCode(metadata NWProtocolMetadata, close_code NWWsCloseCode) error
- func TryNWWsMetadataSetPongHandler(metadata NWProtocolMetadata, client_queue dispatch.Queue, ...) error
- func TryNWWsOptionsAddAdditionalHeader(options NWProtocolOptions, name string, value string) error
- func TryNWWsOptionsAddSubprotocol(options NWProtocolOptions, subprotocol string) error
- func TryNWWsOptionsSetAutoReplyPing(options NWProtocolOptions, auto_reply_ping bool) error
- func TryNWWsOptionsSetClientRequestHandler(options NWProtocolOptions, client_queue dispatch.Queue, ...) error
- func TryNWWsOptionsSetMaximumMessageSize(options NWProtocolOptions, maximum_message_size uintptr) error
- func TryNWWsOptionsSetSkipHandshake(options NWProtocolOptions, skip_handshake bool) error
- func TryNWWsRequestEnumerateAdditionalHeaders(request NWWsRequest, enumerator NWWsAdditionalHeaderEnumerator) (bool, error)
- func TryNWWsRequestEnumerateSubprotocols(request NWWsRequest, enumerator NWWsSubprotocolEnumerator) (bool, error)
- func TryNWWsResponseAddAdditionalHeader(response NWWsResponse, name string, value string) error
- func TryNWWsResponseEnumerateAdditionalHeaders(response NWWsResponse, enumerator NWWsAdditionalHeaderEnumerator) (bool, error)
- func TryNWWsResponseGetSelectedSubprotocol(response NWWsResponse) (*byte, error)
- type NWAdvertiseDescriptor
- func NWAdvertiseDescriptorCreateApplicationService(application_service_name string) NWAdvertiseDescriptor
- func NWAdvertiseDescriptorCreateBonjourService(name string, type_ string, domain string) NWAdvertiseDescriptor
- func NWAdvertiseDescriptorFromID(id objc.ID) NWAdvertiseDescriptor
- func TryNWAdvertiseDescriptorCreateApplicationService(application_service_name string) (NWAdvertiseDescriptor, error)
- func TryNWAdvertiseDescriptorCreateBonjourService(name string, type_ string, domain string) (NWAdvertiseDescriptor, error)
- type NWBrowseDescriptor
- func NWBrowseDescriptorCreateApplicationService(application_service_name string) NWBrowseDescriptor
- func NWBrowseDescriptorCreateBonjourService(type_ string, domain string) NWBrowseDescriptor
- func NWBrowseDescriptorFromID(id objc.ID) NWBrowseDescriptor
- func NWBrowserCopyBrowseDescriptor(browser NWBrowser) NWBrowseDescriptor
- func TryNWBrowseDescriptorCreateApplicationService(application_service_name string) (NWBrowseDescriptor, error)
- func TryNWBrowseDescriptorCreateBonjourService(type_ string, domain string) (NWBrowseDescriptor, error)
- func TryNWBrowserCopyBrowseDescriptor(browser NWBrowser) (NWBrowseDescriptor, error)
- type NWBrowseResult
- type NWBrowseResultChange
- type NWBrowseResultEnumerateInterface
- type NWBrowser
- type NWBrowserBrowseResultsChangedHandler
- type NWBrowserState
- type NWBrowserStateChangedHandler
- type NWConnection
- func NWConnectionCreate(endpoint NWEndpoint, parameters NWParameters) NWConnection
- func NWConnectionFromID(id objc.ID) NWConnection
- func NWConnectionGroupExtractConnection(group NWConnectionGroup, endpoint NWEndpoint, ...) NWConnection
- func NWConnectionGroupExtractConnectionForMessage(group NWConnectionGroup, context NWContentContext) NWConnection
- func TryNWConnectionCreate(endpoint NWEndpoint, parameters NWParameters) (NWConnection, error)
- func TryNWConnectionGroupExtractConnection(group NWConnectionGroup, endpoint NWEndpoint, ...) (NWConnection, error)
- func TryNWConnectionGroupExtractConnectionForMessage(group NWConnectionGroup, context NWContentContext) (NWConnection, error)
- type NWConnectionBooleanEventHandler
- type NWConnectionGroup
- type NWConnectionGroupNewConnectionHandler
- type NWConnectionGroupReceiveHandler
- type NWConnectionGroupSendCompletion
- type NWConnectionGroupState
- type NWConnectionGroupStateChangedHandler
- type NWConnectionPathEventHandler
- type NWConnectionReceiveCompletion
- type NWConnectionSendCompletion
- type NWConnectionState
- type NWConnectionStateChangedHandler
- type NWContentContext
- func NWContentContextCopyAntecedent(context NWContentContext) NWContentContext
- func NWContentContextCreate(context_identifier string) NWContentContext
- func NWContentContextFromID(id objc.ID) NWContentContext
- func TryNWContentContextCopyAntecedent(context NWContentContext) (NWContentContext, error)
- func TryNWContentContextCreate(context_identifier string) (NWContentContext, error)
- type NWDataTransferReport
- type NWDataTransferReportCollectBlock
- type NWDataTransferReportState
- type NWEndpoint
- func NWBrowseResultCopyEndpoint(result NWBrowseResult) NWEndpoint
- func NWConnectionCopyEndpoint(connection NWConnection) NWEndpoint
- func NWConnectionGroupCopyLocalEndpointForMessage(group NWConnectionGroup, context NWContentContext) NWEndpoint
- func NWConnectionGroupCopyRemoteEndpointForMessage(group NWConnectionGroup, context NWContentContext) NWEndpoint
- func NWEndpointCreateAddress(address unsafe.Pointer) NWEndpoint
- func NWEndpointCreateBonjourService(name string, type_ string, domain string) NWEndpoint
- func NWEndpointCreateHost(hostname string, port string) NWEndpoint
- func NWEndpointCreateURL(url string) NWEndpoint
- func NWEndpointFromID(id objc.ID) NWEndpoint
- func NWEstablishmentReportCopyProxyEndpoint(report NWEstablishmentReport) NWEndpoint
- func NWFramerCopyLocalEndpoint(framer NWFramer) NWEndpoint
- func NWFramerCopyRemoteEndpoint(framer NWFramer) NWEndpoint
- func NWParametersCopyLocalEndpoint(parameters NWParameters) NWEndpoint
- func NWPathCopyEffectiveLocalEndpoint(path NWPath) NWEndpoint
- func NWPathCopyEffectiveRemoteEndpoint(path NWPath) NWEndpoint
- func NWResolutionReportCopyPreferredEndpoint(resolution_report NWResolutionReport) NWEndpoint
- func NWResolutionReportCopySuccessfulEndpoint(resolution_report NWResolutionReport) NWEndpoint
- func TryNWBrowseResultCopyEndpoint(result NWBrowseResult) (NWEndpoint, error)
- func TryNWConnectionCopyEndpoint(connection NWConnection) (NWEndpoint, error)
- func TryNWConnectionGroupCopyLocalEndpointForMessage(group NWConnectionGroup, context NWContentContext) (NWEndpoint, error)
- func TryNWConnectionGroupCopyRemoteEndpointForMessage(group NWConnectionGroup, context NWContentContext) (NWEndpoint, error)
- func TryNWEndpointCreateAddress(address unsafe.Pointer) (NWEndpoint, error)
- func TryNWEndpointCreateBonjourService(name string, type_ string, domain string) (NWEndpoint, error)
- func TryNWEndpointCreateHost(hostname string, port string) (NWEndpoint, error)
- func TryNWEndpointCreateURL(url string) (NWEndpoint, error)
- func TryNWEstablishmentReportCopyProxyEndpoint(report NWEstablishmentReport) (NWEndpoint, error)
- func TryNWFramerCopyLocalEndpoint(framer NWFramer) (NWEndpoint, error)
- func TryNWFramerCopyRemoteEndpoint(framer NWFramer) (NWEndpoint, error)
- func TryNWParametersCopyLocalEndpoint(parameters NWParameters) (NWEndpoint, error)
- func TryNWPathCopyEffectiveLocalEndpoint(path NWPath) (NWEndpoint, error)
- func TryNWPathCopyEffectiveRemoteEndpoint(path NWPath) (NWEndpoint, error)
- func TryNWResolutionReportCopyPreferredEndpoint(resolution_report NWResolutionReport) (NWEndpoint, error)
- func TryNWResolutionReportCopySuccessfulEndpoint(resolution_report NWResolutionReport) (NWEndpoint, error)
- type NWEndpointType
- type NWError
- type NWErrorDomain
- type NWEstablishmentReport
- type NWEstablishmentReportAccessBlock
- type NWEthernetAddress
- type NWEthernetChannel
- func NWEthernetChannelCreate(ether_type uint16, interface_ NWInterface) NWEthernetChannel
- func NWEthernetChannelCreateWithParameters(ether_type uint16, interface_ NWInterface, parameters NWParameters) NWEthernetChannel
- func NWEthernetChannelFromID(id objc.ID) NWEthernetChannel
- func TryNWEthernetChannelCreate(ether_type uint16, interface_ NWInterface) (NWEthernetChannel, error)
- func TryNWEthernetChannelCreateWithParameters(ether_type uint16, interface_ NWInterface, parameters NWParameters) (NWEthernetChannel, error)
- type NWEthernetChannelReceiveHandler
- type NWEthernetChannelSendCompletion
- type NWEthernetChannelState
- type NWEthernetChannelStateChangedHandler
- type NWFramer
- type NWFramerBlock
- type NWFramerCleanupHandler
- type NWFramerInputHandler
- type NWFramerMessage
- func NWFramerMessageCreate(framer NWFramer) NWFramerMessage
- func NWFramerProtocolCreateMessage(definition NWProtocolDefinition) NWFramerMessage
- func TryNWFramerMessageCreate(framer NWFramer) (NWFramerMessage, error)
- func TryNWFramerProtocolCreateMessage(definition NWProtocolDefinition) (NWFramerMessage, error)
- type NWFramerMessageDisposeValue
- type NWFramerOutputHandler
- type NWFramerParseCompletion
- type NWFramerStartHandler
- type NWFramerStartResult
- type NWFramerStopHandler
- type NWFramerWakeupHandler
- type NWGroupDescriptor
- func NWConnectionGroupCopyDescriptor(group NWConnectionGroup) NWGroupDescriptor
- func NWGroupDescriptorCreateMulticast(multicast_group NWEndpoint) NWGroupDescriptor
- func NWGroupDescriptorCreateMultiplex(remote_endpoint NWEndpoint) NWGroupDescriptor
- func NWGroupDescriptorFromID(id objc.ID) NWGroupDescriptor
- func TryNWConnectionGroupCopyDescriptor(group NWConnectionGroup) (NWGroupDescriptor, error)
- func TryNWGroupDescriptorCreateMulticast(multicast_group NWEndpoint) (NWGroupDescriptor, error)
- func TryNWGroupDescriptorCreateMultiplex(remote_endpoint NWEndpoint) (NWGroupDescriptor, error)
- type NWGroupDescriptorEnumerateEndpointsBlock
- type NWIPEcnFlag
- type NWIPLocalAddressPreference
- type NWIPVersion
- type NWInterface
- func NWDataTransferReportCopyPathInterface(report NWDataTransferReport, path_index uint32) NWInterface
- func NWInterfaceFromID(id objc.ID) NWInterface
- func NWParametersCopyRequiredInterface(parameters NWParameters) NWInterface
- func TryNWDataTransferReportCopyPathInterface(report NWDataTransferReport, path_index uint32) (NWInterface, error)
- func TryNWParametersCopyRequiredInterface(parameters NWParameters) (NWInterface, error)
- type NWInterfaceRadioType
- type NWInterfaceType
- func NWInterfaceGetType(interface_ NWInterface) NWInterfaceType
- func NWParametersGetRequiredInterfaceType(parameters NWParameters) NWInterfaceType
- func TryNWInterfaceGetType(interface_ NWInterface) (NWInterfaceType, error)
- func TryNWParametersGetRequiredInterfaceType(parameters NWParameters) (NWInterfaceType, error)
- type NWLinkQuality
- type NWListener
- func NWListenerCreate(parameters NWParameters) NWListener
- func NWListenerCreateWithConnection(connection NWConnection, parameters NWParameters) NWListener
- func NWListenerCreateWithLaunchdKey(parameters NWParameters, launchd_key string) NWListener
- func NWListenerCreateWithPort(port string, parameters NWParameters) NWListener
- func NWListenerFromID(id objc.ID) NWListener
- func TryNWListenerCreate(parameters NWParameters) (NWListener, error)
- func TryNWListenerCreateWithConnection(connection NWConnection, parameters NWParameters) (NWListener, error)
- func TryNWListenerCreateWithLaunchdKey(parameters NWParameters, launchd_key string) (NWListener, error)
- func TryNWListenerCreateWithPort(port string, parameters NWParameters) (NWListener, error)
- type NWListenerAdvertisedEndpointChangedHandler
- type NWListenerNewConnectionGroupHandler
- type NWListenerNewConnectionHandler
- type NWListenerState
- type NWListenerStateChangedHandler
- type NWMultipathService
- type NWMultipathVersion
- type NWObject
- type NWParameters
- func NWBrowserCopyParameters(browser NWBrowser) NWParameters
- func NWConnectionCopyParameters(connection NWConnection) NWParameters
- func NWConnectionGroupCopyParameters(group NWConnectionGroup) NWParameters
- func NWFramerCopyParameters(framer NWFramer) NWParameters
- func NWParametersCopy(parameters NWParameters) NWParameters
- func NWParametersCreate() NWParameters
- func NWParametersCreateApplicationService() NWParameters
- func NWParametersCreateCustomIP(custom_ip_protocol_number uint8, ...) NWParameters
- func NWParametersCreatePlainTCP(configureTCP NWParametersConfigureProtocolBlock) NWParameters
- func NWParametersCreateQuic(configure_quic NWParametersConfigureProtocolBlock) NWParameters
- func NWParametersCreateSecureTCP(configure_tls NWParametersConfigureProtocolBlock, ...) NWParameters
- func NWParametersCreateSecureUDP(configure_dtls NWParametersConfigureProtocolBlock, ...) NWParameters
- func NWParametersFromID(id objc.ID) NWParameters
- func TryNWBrowserCopyParameters(browser NWBrowser) (NWParameters, error)
- func TryNWConnectionCopyParameters(connection NWConnection) (NWParameters, error)
- func TryNWConnectionGroupCopyParameters(group NWConnectionGroup) (NWParameters, error)
- func TryNWFramerCopyParameters(framer NWFramer) (NWParameters, error)
- func TryNWParametersCopy(parameters NWParameters) (NWParameters, error)
- func TryNWParametersCreate() (NWParameters, error)
- func TryNWParametersCreateApplicationService() (NWParameters, error)
- func TryNWParametersCreateCustomIP(custom_ip_protocol_number uint8, ...) (NWParameters, error)
- func TryNWParametersCreatePlainTCP(configureTCP NWParametersConfigureProtocolBlock) (NWParameters, error)
- func TryNWParametersCreateQuic(configure_quic NWParametersConfigureProtocolBlock) (NWParameters, error)
- func TryNWParametersCreateSecureTCP(configure_tls NWParametersConfigureProtocolBlock, ...) (NWParameters, error)
- func TryNWParametersCreateSecureUDP(configure_dtls NWParametersConfigureProtocolBlock, ...) (NWParameters, error)
- type NWParametersAttribution
- type NWParametersConfigureProtocolBlock
- type NWParametersExpiredDnsBehavior
- type NWParametersIterateInterfaceTypesBlock
- type NWParametersIterateInterfacesBlock
- type NWPath
- func NWConnectionCopyCurrentPath(connection NWConnection) NWPath
- func NWConnectionGroupCopyPathForMessage(group NWConnectionGroup, context NWContentContext) NWPath
- func NWPathFromID(id objc.ID) NWPath
- func TryNWConnectionCopyCurrentPath(connection NWConnection) (NWPath, error)
- func TryNWConnectionGroupCopyPathForMessage(group NWConnectionGroup, context NWContentContext) (NWPath, error)
- type NWPathEnumerateGatewaysBlock
- type NWPathEnumerateInterfacesBlock
- type NWPathMonitor
- func NWPathMonitorCreate() NWPathMonitor
- func NWPathMonitorCreateForEthernetChannel() NWPathMonitor
- func NWPathMonitorCreateWithType(required_interface_type NWInterfaceType) NWPathMonitor
- func NWPathMonitorFromID(id objc.ID) NWPathMonitor
- func TryNWPathMonitorCreate() (NWPathMonitor, error)
- func TryNWPathMonitorCreateForEthernetChannel() (NWPathMonitor, error)
- func TryNWPathMonitorCreateWithType(required_interface_type NWInterfaceType) (NWPathMonitor, error)
- type NWPathMonitorCancelHandler
- type NWPathMonitorUpdateHandler
- type NWPathStatus
- type NWPathUnsatisfiedReason
- type NWPrivacyContext
- type NWProtocolDefinition
- func NWFramerCreateDefinition(identifier string, flags uint32, start_handler NWFramerStartHandler) NWProtocolDefinition
- func NWProtocolCopyIPDefinition() NWProtocolDefinition
- func NWProtocolCopyQuicDefinition() NWProtocolDefinition
- func NWProtocolCopyTCPDefinition() NWProtocolDefinition
- func NWProtocolCopyTLSDefinition() NWProtocolDefinition
- func NWProtocolCopyUDPDefinition() NWProtocolDefinition
- func NWProtocolCopyWsDefinition() NWProtocolDefinition
- func NWProtocolDefinitionFromID(id objc.ID) NWProtocolDefinition
- func NWProtocolMetadataCopyDefinition(metadata NWProtocolMetadata) NWProtocolDefinition
- func NWProtocolOptionsCopyDefinition(options NWProtocolOptions) NWProtocolDefinition
- func TryNWFramerCreateDefinition(identifier string, flags uint32, start_handler NWFramerStartHandler) (NWProtocolDefinition, error)
- func TryNWProtocolCopyIPDefinition() (NWProtocolDefinition, error)
- func TryNWProtocolCopyQuicDefinition() (NWProtocolDefinition, error)
- func TryNWProtocolCopyTCPDefinition() (NWProtocolDefinition, error)
- func TryNWProtocolCopyTLSDefinition() (NWProtocolDefinition, error)
- func TryNWProtocolCopyUDPDefinition() (NWProtocolDefinition, error)
- func TryNWProtocolCopyWsDefinition() (NWProtocolDefinition, error)
- func TryNWProtocolMetadataCopyDefinition(metadata NWProtocolMetadata) (NWProtocolDefinition, error)
- func TryNWProtocolOptionsCopyDefinition(options NWProtocolOptions) (NWProtocolDefinition, error)
- type NWProtocolMetadata
- func NWConnectionCopyProtocolMetadata(connection NWConnection, definition NWProtocolDefinition) NWProtocolMetadata
- func NWConnectionGroupCopyProtocolMetadata(group NWConnectionGroup, definition NWProtocolDefinition) NWProtocolMetadata
- func NWConnectionGroupCopyProtocolMetadataForMessage(group NWConnectionGroup, context NWContentContext, ...) NWProtocolMetadata
- func NWContentContextCopyProtocolMetadata(context NWContentContext, protocol_ NWProtocolDefinition) NWProtocolMetadata
- func NWIPCreateMetadata() NWProtocolMetadata
- func NWProtocolMetadataFromID(id objc.ID) NWProtocolMetadata
- func NWUDPCreateMetadata() NWProtocolMetadata
- func NWWsCreateMetadata(opcode NWWsOpcode) NWProtocolMetadata
- func TryNWConnectionCopyProtocolMetadata(connection NWConnection, definition NWProtocolDefinition) (NWProtocolMetadata, error)
- func TryNWConnectionGroupCopyProtocolMetadata(group NWConnectionGroup, definition NWProtocolDefinition) (NWProtocolMetadata, error)
- func TryNWConnectionGroupCopyProtocolMetadataForMessage(group NWConnectionGroup, context NWContentContext, ...) (NWProtocolMetadata, error)
- func TryNWContentContextCopyProtocolMetadata(context NWContentContext, protocol_ NWProtocolDefinition) (NWProtocolMetadata, error)
- func TryNWIPCreateMetadata() (NWProtocolMetadata, error)
- func TryNWUDPCreateMetadata() (NWProtocolMetadata, error)
- func TryNWWsCreateMetadata(opcode NWWsOpcode) (NWProtocolMetadata, error)
- type NWProtocolOptions
- func NWFramerCopyOptions(framer NWFramer) NWProtocolOptions
- func NWFramerCreateOptions(framer_definition NWProtocolDefinition) NWProtocolOptions
- func NWProtocolOptionsFromID(id objc.ID) NWProtocolOptions
- func NWProtocolStackCopyInternetProtocol(stack NWProtocolStack) NWProtocolOptions
- func NWProtocolStackCopyTransportProtocol(stack NWProtocolStack) NWProtocolOptions
- func NWQuicCreateOptions() NWProtocolOptions
- func NWTCPCreateOptions() NWProtocolOptions
- func NWTLSCreateOptions() NWProtocolOptions
- func NWUDPCreateOptions() NWProtocolOptions
- func NWWsCreateOptions(version NWWsVersion) NWProtocolOptions
- func TryNWFramerCopyOptions(framer NWFramer) (NWProtocolOptions, error)
- func TryNWFramerCreateOptions(framer_definition NWProtocolDefinition) (NWProtocolOptions, error)
- func TryNWProtocolStackCopyInternetProtocol(stack NWProtocolStack) (NWProtocolOptions, error)
- func TryNWProtocolStackCopyTransportProtocol(stack NWProtocolStack) (NWProtocolOptions, error)
- func TryNWQuicCreateOptions() (NWProtocolOptions, error)
- func TryNWTCPCreateOptions() (NWProtocolOptions, error)
- func TryNWTLSCreateOptions() (NWProtocolOptions, error)
- func TryNWUDPCreateOptions() (NWProtocolOptions, error)
- func TryNWWsCreateOptions(version NWWsVersion) (NWProtocolOptions, error)
- type NWProtocolStack
- type NWProtocolStackIterateProtocolsBlock
- type NWProxyConfig
- func NWProxyConfigCreateHttpConnect(proxy_endpoint NWEndpoint, proxy_tls_options NWProtocolOptions) NWProxyConfig
- func NWProxyConfigCreateObliviousHttp(relay NWRelayHop, relay_resource_path string, gateway_key_config []byte, ...) NWProxyConfig
- func NWProxyConfigCreateRelay(first_hop NWRelayHop, second_hop NWRelayHop) NWProxyConfig
- func NWProxyConfigCreateSocksv5(proxy_endpoint NWEndpoint) NWProxyConfig
- func NWProxyConfigFromID(id objc.ID) NWProxyConfig
- func TryNWProxyConfigCreateHttpConnect(proxy_endpoint NWEndpoint, proxy_tls_options NWProtocolOptions) (NWProxyConfig, error)
- func TryNWProxyConfigCreateObliviousHttp(relay NWRelayHop, relay_resource_path string, gateway_key_config []byte, ...) (NWProxyConfig, error)
- func TryNWProxyConfigCreateRelay(first_hop NWRelayHop, second_hop NWRelayHop) (NWProxyConfig, error)
- func TryNWProxyConfigCreateSocksv5(proxy_endpoint NWEndpoint) (NWProxyConfig, error)
- type NWProxyDomainEnumerator
- type NWQuicStreamType
- type NWRelayHop
- type NWReportProtocolEnumerator
- type NWReportResolutionEnumerator
- type NWReportResolutionProtocol
- type NWReportResolutionReportEnumerator
- type NWReportResolutionSource
- type NWResolutionReport
- type NWResolverConfig
- func NWResolverConfigCreateHttps(url_endpoint NWEndpoint) NWResolverConfig
- func NWResolverConfigCreateTLS(server_endpoint NWEndpoint) NWResolverConfig
- func NWResolverConfigFromID(id objc.ID) NWResolverConfig
- func TryNWResolverConfigCreateHttps(url_endpoint NWEndpoint) (NWResolverConfig, error)
- func TryNWResolverConfigCreateTLS(server_endpoint NWEndpoint) (NWResolverConfig, error)
- type NWServiceClass
- func NWIPMetadataGetServiceClass(metadata NWProtocolMetadata) NWServiceClass
- func NWParametersGetServiceClass(parameters NWParameters) NWServiceClass
- func TryNWIPMetadataGetServiceClass(metadata NWProtocolMetadata) (NWServiceClass, error)
- func TryNWParametersGetServiceClass(parameters NWParameters) (NWServiceClass, error)
- type NWTXTRecord
- func NWAdvertiseDescriptorCopyTXTRecordObject(advertise_descriptor NWAdvertiseDescriptor) NWTXTRecord
- func NWBrowseResultCopyTXTRecordObject(result NWBrowseResult) NWTXTRecord
- func NWEndpointCopyTXTRecord(endpoint NWEndpoint) NWTXTRecord
- func NWTXTRecordCopy(txt_record NWTXTRecord) NWTXTRecord
- func NWTXTRecordCreateDictionary() NWTXTRecord
- func NWTXTRecordCreateWithBytes(txt_bytes []byte, txt_len uintptr) NWTXTRecord
- func NWTXTRecordFromID(id objc.ID) NWTXTRecord
- func TryNWAdvertiseDescriptorCopyTXTRecordObject(advertise_descriptor NWAdvertiseDescriptor) (NWTXTRecord, error)
- func TryNWBrowseResultCopyTXTRecordObject(result NWBrowseResult) (NWTXTRecord, error)
- func TryNWEndpointCopyTXTRecord(endpoint NWEndpoint) (NWTXTRecord, error)
- func TryNWTXTRecordCopy(txt_record NWTXTRecord) (NWTXTRecord, error)
- func TryNWTXTRecordCreateDictionary() (NWTXTRecord, error)
- func TryNWTXTRecordCreateWithBytes(txt_bytes []byte, txt_len uintptr) (NWTXTRecord, error)
- type NWTXTRecordAccessBytes
- type NWTXTRecordAccessKey
- type NWTXTRecordApplier
- type NWTXTRecordFindKey
- type NWWsAdditionalHeaderEnumerator
- type NWWsClientRequestHandler
- type NWWsCloseCode
- type NWWsOpcode
- type NWWsPongHandler
- type NWWsRequest
- type NWWsResponse
- func NWWsMetadataCopyServerResponse(metadata NWProtocolMetadata) NWWsResponse
- func NWWsResponseCreate(status NWWsResponseStatus, selected_subprotocol string) NWWsResponse
- func NWWsResponseFromID(id objc.ID) NWWsResponse
- func TryNWWsMetadataCopyServerResponse(metadata NWProtocolMetadata) (NWWsResponse, error)
- func TryNWWsResponseCreate(status NWWsResponseStatus, selected_subprotocol string) (NWWsResponse, error)
- type NWWsResponseStatus
- type NWWsSubprotocolEnumerator
- type NWWsVersion
- type Nw_advertise_descriptor_t
- type Nw_browse_descriptor_t
- type Nw_browse_result_change_t
- type Nw_browse_result_enumerate_interface_t
- type Nw_browse_result_t
- type Nw_browser_browse_results_changed_handler_t
- type Nw_browser_state_changed_handler_t
- type Nw_browser_state_t
- type Nw_browser_t
- type Nw_connection_boolean_event_handler_t
- type Nw_connection_group_new_connection_handler_t
- type Nw_connection_group_receive_handler_t
- type Nw_connection_group_send_completion_t
- type Nw_connection_group_state_changed_handler_t
- type Nw_connection_group_state_t
- type Nw_connection_group_t
- type Nw_connection_path_event_handler_t
- type Nw_connection_receive_completion_t
- type Nw_connection_send_completion_t
- type Nw_connection_state_changed_handler_t
- type Nw_connection_state_t
- type Nw_connection_t
- type Nw_content_context_t
- type Nw_data_transfer_report_collect_block_t
- type Nw_data_transfer_report_state_t
- type Nw_data_transfer_report_t
- type Nw_endpoint_t
- type Nw_endpoint_type_t
- type Nw_error_domain_t
- type Nw_establishment_report_access_block_t
- type Nw_establishment_report_t
- type Nw_ethernet_address_t
- type Nw_ethernet_channel_receive_handler_t
- type Nw_ethernet_channel_send_completion_t
- type Nw_ethernet_channel_state_changed_handler_t
- type Nw_ethernet_channel_state_t
- type Nw_ethernet_channel_t
- type Nw_framer_block_t
- type Nw_framer_cleanup_handler_t
- type Nw_framer_input_handler_t
- type Nw_framer_message_dispose_value_t
- type Nw_framer_message_t
- type Nw_framer_output_handler_t
- type Nw_framer_parse_completion_t
- type Nw_framer_start_handler_t
- type Nw_framer_start_result_t
- type Nw_framer_stop_handler_t
- type Nw_framer_t
- type Nw_framer_wakeup_handler_t
- type Nw_group_descriptor_enumerate_endpoints_block_t
- type Nw_group_descriptor_t
- type Nw_interface_radio_type_t
- type Nw_interface_t
- type Nw_interface_type_t
- type Nw_ip_ecn_flag_t
- type Nw_ip_local_address_preference_t
- type Nw_ip_version_t
- type Nw_link_quality_t
- type Nw_listener_advertised_endpoint_changed_handler_t
- type Nw_listener_new_connection_group_handler_t
- type Nw_listener_new_connection_handler_t
- type Nw_listener_state_changed_handler_t
- type Nw_listener_state_t
- type Nw_listener_t
- type Nw_multipath_service_t
- type Nw_multipath_version_t
- type Nw_object_t
- type Nw_parameters_attribution_t
- type Nw_parameters_configure_protocol_block_t
- type Nw_parameters_expired_dns_behavior_t
- type Nw_parameters_iterate_interface_types_block_t
- type Nw_parameters_iterate_interfaces_block_t
- type Nw_parameters_t
- type Nw_path_enumerate_gateways_block_t
- type Nw_path_enumerate_interfaces_block_t
- type Nw_path_monitor_cancel_handler_t
- type Nw_path_monitor_t
- type Nw_path_monitor_update_handler_t
- type Nw_path_status_t
- type Nw_path_t
- type Nw_path_unsatisfied_reason_t
- type Nw_privacy_context_t
- type Nw_protocol_definition_t
- type Nw_protocol_metadata_t
- type Nw_protocol_options_t
- type Nw_protocol_stack_iterate_protocols_block_t
- type Nw_protocol_stack_t
- type Nw_proxy_config_t
- type Nw_proxy_domain_enumerator_t
- type Nw_quic_stream_type_t
- type Nw_relay_hop_t
- type Nw_report_protocol_enumerator_t
- type Nw_report_resolution_enumerator_t
- type Nw_report_resolution_protocol_t
- type Nw_report_resolution_report_enumerator_t
- type Nw_report_resolution_source_t
- type Nw_resolution_report_t
- type Nw_resolver_config_t
- type Nw_service_class_t
- type Nw_txt_record_access_bytes_t
- type Nw_txt_record_access_key_t
- type Nw_txt_record_applier_t
- type Nw_txt_record_find_key_t
- type Nw_txt_record_t
- type Nw_ws_additional_header_enumerator_t
- type Nw_ws_client_request_handler_t
- type Nw_ws_close_code_t
- type Nw_ws_opcode_t
- type Nw_ws_pong_handler_t
- type Nw_ws_request_t
- type Nw_ws_response_status_t
- type Nw_ws_response_t
- type Nw_ws_subprotocol_enumerator_t
- type Nw_ws_version_t
- type OS_nw_advertise_descriptor
- type OS_nw_advertise_descriptorObject
- type OS_nw_browse_descriptor
- type OS_nw_browse_descriptorObject
- type OS_nw_browse_result
- type OS_nw_browse_resultObject
- type OS_nw_browser
- type OS_nw_browserObject
- type OS_nw_connection
- type OS_nw_connectionObject
- type OS_nw_connection_group
- type OS_nw_connection_groupObject
- type OS_nw_content_context
- type OS_nw_content_contextObject
- type OS_nw_data_transfer_report
- type OS_nw_data_transfer_reportObject
- type OS_nw_endpoint
- type OS_nw_endpointObject
- type OS_nw_error
- type OS_nw_errorObject
- type OS_nw_establishment_report
- type OS_nw_establishment_reportObject
- type OS_nw_ethernet_channel
- type OS_nw_ethernet_channelObject
- type OS_nw_framer
- type OS_nw_framerObject
- type OS_nw_group_descriptor
- type OS_nw_group_descriptorObject
- type OS_nw_interface
- type OS_nw_interfaceObject
- type OS_nw_listener
- type OS_nw_listenerObject
- type OS_nw_object
- type OS_nw_objectObject
- type OS_nw_parameters
- type OS_nw_parametersObject
- type OS_nw_path
- type OS_nw_pathObject
- type OS_nw_path_monitor
- type OS_nw_path_monitorObject
- type OS_nw_privacy_context
- type OS_nw_privacy_contextObject
- type OS_nw_protocol_definition
- type OS_nw_protocol_definitionObject
- type OS_nw_protocol_metadata
- type OS_nw_protocol_metadataObject
- type OS_nw_protocol_options
- type OS_nw_protocol_optionsObject
- type OS_nw_protocol_stack
- type OS_nw_protocol_stackObject
- type OS_nw_proxy_config
- type OS_nw_proxy_configObject
- type OS_nw_relay_hop
- type OS_nw_relay_hopObject
- type OS_nw_resolution_report
- type OS_nw_resolution_reportObject
- type OS_nw_resolver_config
- type OS_nw_resolver_configObject
- type OS_nw_txt_record
- type OS_nw_txt_recordObject
- type OS_nw_ws_request
- type OS_nw_ws_requestObject
- type OS_nw_ws_response
- type OS_nw_ws_responseObject
Constants ¶
This section is empty.
Variables ¶
var ( // KNWErrorDomainDNS is a DNS error encountered in resolving, browsing, or advertising. // // See: https://developer.apple.com/documentation/Network/kNWErrorDomainDNS KNWErrorDomainDNS string // KNWErrorDomainPOSIX is a POSIX error, which is used for most network protocol and routing errors. // // See: https://developer.apple.com/documentation/Network/kNWErrorDomainPOSIX KNWErrorDomainPOSIX string // KNWErrorDomainTLS is a TLS error reported by a TLS connection or listener. // // See: https://developer.apple.com/documentation/Network/kNWErrorDomainTLS KNWErrorDomainTLS string // See: https://developer.apple.com/documentation/Network/kNWErrorDomainWiFiAware KNWErrorDomainWiFiAware string )
Functions ¶
func BindFunc ¶
BindFunc binds the Network symbol name into fptr, which must be a pointer to a func variable.
The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.
func NWAdvertiseDescriptorGetApplicationServiceName ¶ added in v0.6.3
func NWAdvertiseDescriptorGetApplicationServiceName(advertise_descriptor NWAdvertiseDescriptor) *byte
NWAdvertiseDescriptorGetApplicationServiceName.
It panics if nw_advertise_descriptor_get_application_service_name is unavailable at run time; use TryNWAdvertiseDescriptorGetApplicationServiceName to get an error instead.
func NWAdvertiseDescriptorGetNoAutoRename ¶ added in v0.6.3
func NWAdvertiseDescriptorGetNoAutoRename(advertise_descriptor NWAdvertiseDescriptor) bool
NWAdvertiseDescriptorGetNoAutoRename checks whether the service prohibits automatic renaming in the event of a name conflict.
It panics if nw_advertise_descriptor_get_no_auto_rename is unavailable at run time; use TryNWAdvertiseDescriptorGetNoAutoRename to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_advertise_descriptor_get_no_auto_rename(_:)
func NWAdvertiseDescriptorSetNoAutoRename ¶ added in v0.6.3
func NWAdvertiseDescriptorSetNoAutoRename(advertise_descriptor NWAdvertiseDescriptor, no_auto_rename bool)
NWAdvertiseDescriptorSetNoAutoRename sets a Boolean to indicate whether the service prohibits automatic renaming in the event of a name conflict.
It panics if nw_advertise_descriptor_set_no_auto_rename is unavailable at run time; use TryNWAdvertiseDescriptorSetNoAutoRename to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_advertise_descriptor_set_no_auto_rename(_:_:)
func NWAdvertiseDescriptorSetTXTRecord ¶ added in v0.6.3
func NWAdvertiseDescriptorSetTXTRecord(advertise_descriptor NWAdvertiseDescriptor, txt_record unsafe.Pointer, txt_length uintptr)
NWAdvertiseDescriptorSetTXTRecord sets the TXT record as a raw buffer to advertise with the service.
It panics if nw_advertise_descriptor_set_txt_record is unavailable at run time; use TryNWAdvertiseDescriptorSetTXTRecord to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_advertise_descriptor_set_txt_record(_:_:_:)
func NWAdvertiseDescriptorSetTXTRecordObject ¶ added in v0.6.3
func NWAdvertiseDescriptorSetTXTRecordObject(advertise_descriptor NWAdvertiseDescriptor, txt_record NWTXTRecord)
NWAdvertiseDescriptorSetTXTRecordObject sets the TXT record to advertise with the service.
It panics if nw_advertise_descriptor_set_txt_record_object is unavailable at run time; use TryNWAdvertiseDescriptorSetTXTRecordObject to get an error instead.
func NWBrowseDescriptorGetApplicationServiceName ¶ added in v0.6.3
func NWBrowseDescriptorGetApplicationServiceName(descriptor NWBrowseDescriptor) *byte
NWBrowseDescriptorGetApplicationServiceName.
It panics if nw_browse_descriptor_get_application_service_name is unavailable at run time; use TryNWBrowseDescriptorGetApplicationServiceName to get an error instead.
func NWBrowseDescriptorGetBonjourServiceDomain ¶ added in v0.6.3
func NWBrowseDescriptorGetBonjourServiceDomain(descriptor NWBrowseDescriptor) *byte
NWBrowseDescriptorGetBonjourServiceDomain accesses the Bonjour service domain set on a browse descriptor.
It panics if nw_browse_descriptor_get_bonjour_service_domain is unavailable at run time; use TryNWBrowseDescriptorGetBonjourServiceDomain to get an error instead.
func NWBrowseDescriptorGetBonjourServiceType ¶ added in v0.6.3
func NWBrowseDescriptorGetBonjourServiceType(descriptor NWBrowseDescriptor) *byte
NWBrowseDescriptorGetBonjourServiceType accesses the Bonjour service type set on a browse descriptor.
It panics if nw_browse_descriptor_get_bonjour_service_type is unavailable at run time; use TryNWBrowseDescriptorGetBonjourServiceType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browse_descriptor_get_bonjour_service_type(_:)
func NWBrowseDescriptorGetIncludeTXTRecord ¶ added in v0.6.3
func NWBrowseDescriptorGetIncludeTXTRecord(descriptor NWBrowseDescriptor) bool
NWBrowseDescriptorGetIncludeTXTRecord checks if the browse descriptor requires including associated TXT records with all results.
It panics if nw_browse_descriptor_get_include_txt_record is unavailable at run time; use TryNWBrowseDescriptorGetIncludeTXTRecord to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browse_descriptor_get_include_txt_record(_:)
func NWBrowseDescriptorSetIncludeTXTRecord ¶ added in v0.6.3
func NWBrowseDescriptorSetIncludeTXTRecord(descriptor NWBrowseDescriptor, include_txt_record bool)
NWBrowseDescriptorSetIncludeTXTRecord requires including associated TXT records with all results generated for this service descriptor.
It panics if nw_browse_descriptor_set_include_txt_record is unavailable at run time; use TryNWBrowseDescriptorSetIncludeTXTRecord to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browse_descriptor_set_include_txt_record(_:_:)
func NWBrowseResultEnumerateInterfaces ¶ added in v0.6.3
func NWBrowseResultEnumerateInterfaces(result NWBrowseResult, enumerator NWBrowseResultEnumerateInterface)
NWBrowseResultEnumerateInterfaces enumerates the list of interfaces on which the service was discovered.
It panics if nw_browse_result_enumerate_interfaces is unavailable at run time; use TryNWBrowseResultEnumerateInterfaces to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browse_result_enumerate_interfaces(_:_:)
func NWBrowseResultGetInterfacesCount ¶ added in v0.6.3
func NWBrowseResultGetInterfacesCount(result NWBrowseResult) uintptr
NWBrowseResultGetInterfacesCount accesses the number of interfaces associated with a discovered service.
It panics if nw_browse_result_get_interfaces_count is unavailable at run time; use TryNWBrowseResultGetInterfacesCount to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browse_result_get_interfaces_count(_:)
func NWBrowserCancel ¶ added in v0.6.3
func NWBrowserCancel(browser NWBrowser)
NWBrowserCancel stops browsing for services.
It panics if nw_browser_cancel is unavailable at run time; use TryNWBrowserCancel to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browser_cancel(_:)
func NWBrowserSetBrowseResultsChangedHandler ¶ added in v0.6.3
func NWBrowserSetBrowseResultsChangedHandler(browser NWBrowser, handler NWBrowserBrowseResultsChangedHandler)
NWBrowserSetBrowseResultsChangedHandler sets the handler to receive updates about discovered services.
It panics if nw_browser_set_browse_results_changed_handler is unavailable at run time; use TryNWBrowserSetBrowseResultsChangedHandler to get an error instead.
func NWBrowserSetQueue ¶ added in v0.6.3
NWBrowserSetQueue sets the queue on which all browser events will be delivered.
It panics if nw_browser_set_queue is unavailable at run time; use TryNWBrowserSetQueue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browser_set_queue(_:_:)
func NWBrowserSetStateChangedHandler ¶ added in v0.6.3
func NWBrowserSetStateChangedHandler(browser NWBrowser, state_changed_handler NWBrowserStateChangedHandler)
NWBrowserSetStateChangedHandler sets a handler to receive browser state updates.
It panics if nw_browser_set_state_changed_handler is unavailable at run time; use TryNWBrowserSetStateChangedHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browser_set_state_changed_handler(_:_:)
func NWBrowserStart ¶ added in v0.6.3
func NWBrowserStart(browser NWBrowser)
NWBrowserStart starts browsing for services.
It panics if nw_browser_start is unavailable at run time; use TryNWBrowserStart to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browser_start(_:)
func NWConnectionAccessEstablishmentReport ¶ added in v0.6.3
func NWConnectionAccessEstablishmentReport(connection NWConnection, queue dispatch.Queue, access_block NWEstablishmentReportAccessBlock)
NWConnectionAccessEstablishmentReport requests a copy of the connection’s establishment report once the connection is in the ready state.
It panics if nw_connection_access_establishment_report is unavailable at run time; use TryNWConnectionAccessEstablishmentReport to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_access_establishment_report(_:_:_:)
func NWConnectionBatch ¶ added in v0.6.3
func NWConnectionBatch(connection NWConnection, batch_block unsafe.Pointer)
NWConnectionBatch defines a block in which calls to send and receive are processed as a batch to improve performance.
It panics if nw_connection_batch is unavailable at run time; use TryNWConnectionBatch to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_batch(_:_:)
func NWConnectionCancel ¶ added in v0.6.3
func NWConnectionCancel(connection NWConnection)
NWConnectionCancel cancels the connection and gracefully disconnects any established network protocols.
It panics if nw_connection_cancel is unavailable at run time; use TryNWConnectionCancel to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_cancel(_:)
func NWConnectionCancelCurrentEndpoint ¶ added in v0.6.3
func NWConnectionCancelCurrentEndpoint(connection NWConnection)
NWConnectionCancelCurrentEndpoint causes the current endpoint to be rejected, allowing the connection to try another resolved address.
It panics if nw_connection_cancel_current_endpoint is unavailable at run time; use TryNWConnectionCancelCurrentEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_cancel_current_endpoint(_:)
func NWConnectionCopyDescription ¶ added in v0.6.3
func NWConnectionCopyDescription(connection NWConnection) *byte
NWConnectionCopyDescription copies the description of the connection as a string.
It panics if nw_connection_copy_description is unavailable at run time; use TryNWConnectionCopyDescription to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_copy_description(_:)
func NWConnectionForceCancel ¶ added in v0.6.3
func NWConnectionForceCancel(connection NWConnection)
NWConnectionForceCancel cancels the connection and immediately disconnects any established network protocols.
It panics if nw_connection_force_cancel is unavailable at run time; use TryNWConnectionForceCancel to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_force_cancel(_:)
func NWConnectionGetMaximumDatagramSize ¶ added in v0.6.3
func NWConnectionGetMaximumDatagramSize(connection NWConnection) uint32
NWConnectionGetMaximumDatagramSize accesses the maximum size of a datagram message that can be sent on a connection.
It panics if nw_connection_get_maximum_datagram_size is unavailable at run time; use TryNWConnectionGetMaximumDatagramSize to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_get_maximum_datagram_size(_:)
func NWConnectionGroupCancel ¶ added in v0.6.3
func NWConnectionGroupCancel(group NWConnectionGroup)
NWConnectionGroupCancel cancels the connection group object and leaves the network group.
It panics if nw_connection_group_cancel is unavailable at run time; use TryNWConnectionGroupCancel to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_cancel(_:)
func NWConnectionGroupReinsertExtractedConnection ¶ added in v0.6.3
func NWConnectionGroupReinsertExtractedConnection(group NWConnectionGroup, connection NWConnection) bool
NWConnectionGroupReinsertExtractedConnection.
It panics if nw_connection_group_reinsert_extracted_connection is unavailable at run time; use TryNWConnectionGroupReinsertExtractedConnection to get an error instead.
func NWConnectionGroupReply ¶ added in v0.6.3
func NWConnectionGroupReply(group NWConnectionGroup, inbound_message NWContentContext, outbound_message NWContentContext, content dispatch.Data)
NWConnectionGroupReply sends a reply to the specific endpoint that originates a group message you receive.
It panics if nw_connection_group_reply is unavailable at run time; use TryNWConnectionGroupReply to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_reply(_:_:_:_:)
func NWConnectionGroupSendMessage ¶ added in v0.6.3
func NWConnectionGroupSendMessage(group NWConnectionGroup, content dispatch.Data, endpoint NWEndpoint, context NWContentContext, completion NWConnectionGroupSendCompletion)
NWConnectionGroupSendMessage sends data to the entire group, or to a specific member of the group.
It panics if nw_connection_group_send_message is unavailable at run time; use TryNWConnectionGroupSendMessage to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_send_message(_:_:_:_:_:)
func NWConnectionGroupSetNewConnectionHandler ¶ added in v0.6.3
func NWConnectionGroupSetNewConnectionHandler(group NWConnectionGroup, new_connection_handler NWConnectionGroupNewConnectionHandler)
NWConnectionGroupSetNewConnectionHandler.
It panics if nw_connection_group_set_new_connection_handler is unavailable at run time; use TryNWConnectionGroupSetNewConnectionHandler to get an error instead.
func NWConnectionGroupSetQueue ¶ added in v0.6.3
func NWConnectionGroupSetQueue(group NWConnectionGroup, queue dispatch.Queue)
NWConnectionGroupSetQueue sets the queue on which you handle connection group events.
It panics if nw_connection_group_set_queue is unavailable at run time; use TryNWConnectionGroupSetQueue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_set_queue(_:_:)
func NWConnectionGroupSetReceiveHandler ¶ added in v0.6.3
func NWConnectionGroupSetReceiveHandler(group NWConnectionGroup, maximum_message_size uint32, reject_oversized_messages bool, receive_handler NWConnectionGroupReceiveHandler)
NWConnectionGroupSetReceiveHandler sets a handler that receives inbound messages from members of the group.
It panics if nw_connection_group_set_receive_handler is unavailable at run time; use TryNWConnectionGroupSetReceiveHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_set_receive_handler(_:_:_:_:)
func NWConnectionGroupSetStateChangedHandler ¶ added in v0.6.3
func NWConnectionGroupSetStateChangedHandler(group NWConnectionGroup, state_changed_handler NWConnectionGroupStateChangedHandler)
NWConnectionGroupSetStateChangedHandler sets a handler that receives connection group state updates.
It panics if nw_connection_group_set_state_changed_handler is unavailable at run time; use TryNWConnectionGroupSetStateChangedHandler to get an error instead.
func NWConnectionGroupStart ¶ added in v0.6.3
func NWConnectionGroupStart(group NWConnectionGroup)
NWConnectionGroupStart joins the group and registers to receive messages.
It panics if nw_connection_group_start is unavailable at run time; use TryNWConnectionGroupStart to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_start(_:)
func NWConnectionReceive ¶ added in v0.6.3
func NWConnectionReceive(connection NWConnection, minimum_incomplete_length uint32, maximum_length uint32, completion NWConnectionReceiveCompletion)
NWConnectionReceive schedules a single receive completion handler, with a range indicating how many bytes the handler can receive at one time.
It panics if nw_connection_receive is unavailable at run time; use TryNWConnectionReceive to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_receive(_:_:_:_:)
func NWConnectionReceiveMessage ¶ added in v0.6.3
func NWConnectionReceiveMessage(connection NWConnection, completion NWConnectionReceiveCompletion)
NWConnectionReceiveMessage schedules a single receive completion handler for a complete message, as opposed to a range of bytes.
It panics if nw_connection_receive_message is unavailable at run time; use TryNWConnectionReceiveMessage to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_receive_message(_:_:)
func NWConnectionRestart ¶ added in v0.6.3
func NWConnectionRestart(connection NWConnection)
NWConnectionRestart restarts a connection that is in the waiting state.
It panics if nw_connection_restart is unavailable at run time; use TryNWConnectionRestart to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_restart(_:)
func NWConnectionSend ¶ added in v0.6.3
func NWConnectionSend(connection NWConnection, content dispatch.Data, context NWContentContext, is_complete bool, completion NWConnectionSendCompletion)
NWConnectionSend sends data on a connection.
It panics if nw_connection_send is unavailable at run time; use TryNWConnectionSend to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_send(_:_:_:_:_:)
func NWConnectionSetBetterPathAvailableHandler ¶ added in v0.6.3
func NWConnectionSetBetterPathAvailableHandler(connection NWConnection, handler NWConnectionBooleanEventHandler)
NWConnectionSetBetterPathAvailableHandler sets a handler that receives updates when an alternative network path is preferred over the current path.
It panics if nw_connection_set_better_path_available_handler is unavailable at run time; use TryNWConnectionSetBetterPathAvailableHandler to get an error instead.
func NWConnectionSetPathChangedHandler ¶ added in v0.6.3
func NWConnectionSetPathChangedHandler(connection NWConnection, handler NWConnectionPathEventHandler)
NWConnectionSetPathChangedHandler sets a handler that receives network path updates.
It panics if nw_connection_set_path_changed_handler is unavailable at run time; use TryNWConnectionSetPathChangedHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_set_path_changed_handler(_:_:)
func NWConnectionSetQueue ¶ added in v0.6.3
func NWConnectionSetQueue(connection NWConnection, queue dispatch.Queue)
NWConnectionSetQueue sets the queue on which all connection events are delivered.
It panics if nw_connection_set_queue is unavailable at run time; use TryNWConnectionSetQueue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_set_queue(_:_:)
func NWConnectionSetStateChangedHandler ¶ added in v0.6.3
func NWConnectionSetStateChangedHandler(connection NWConnection, handler NWConnectionStateChangedHandler)
NWConnectionSetStateChangedHandler sets a handler to receive connection state updates.
It panics if nw_connection_set_state_changed_handler is unavailable at run time; use TryNWConnectionSetStateChangedHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_set_state_changed_handler(_:_:)
func NWConnectionSetViabilityChangedHandler ¶ added in v0.6.3
func NWConnectionSetViabilityChangedHandler(connection NWConnection, handler NWConnectionBooleanEventHandler)
NWConnectionSetViabilityChangedHandler sets a handler that receives updates when data can be sent and received.
It panics if nw_connection_set_viability_changed_handler is unavailable at run time; use TryNWConnectionSetViabilityChangedHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_set_viability_changed_handler(_:_:)
func NWConnectionStart ¶ added in v0.6.3
func NWConnectionStart(connection NWConnection)
NWConnectionStart starts establishing a connection.
It panics if nw_connection_start is unavailable at run time; use TryNWConnectionStart to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_start(_:)
func NWContentContextForeachProtocolMetadata ¶ added in v0.6.3
func NWContentContextForeachProtocolMetadata(context NWContentContext)
NWContentContextForeachProtocolMetadata iterates through all protocol metadata associated with the message context.
It panics if nw_content_context_foreach_protocol_metadata is unavailable at run time; use TryNWContentContextForeachProtocolMetadata to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_foreach_protocol_metadata(_:_:)
func NWContentContextGetExpirationMilliseconds ¶ added in v0.6.3
func NWContentContextGetExpirationMilliseconds(context NWContentContext) uint64
NWContentContextGetExpirationMilliseconds accesses the expiration set for this message context.
It panics if nw_content_context_get_expiration_milliseconds is unavailable at run time; use TryNWContentContextGetExpirationMilliseconds to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_get_expiration_milliseconds(_:)
func NWContentContextGetIdentifier ¶ added in v0.6.3
func NWContentContextGetIdentifier(context NWContentContext) *byte
NWContentContextGetIdentifier accesses the identifier used to create this message context.
It panics if nw_content_context_get_identifier is unavailable at run time; use TryNWContentContextGetIdentifier to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_get_identifier(_:)
func NWContentContextGetIsFinal ¶ added in v0.6.3
func NWContentContextGetIsFinal(context NWContentContext) bool
NWContentContextGetIsFinal checks whether this context represents the final message being received.
It panics if nw_content_context_get_is_final is unavailable at run time; use TryNWContentContextGetIsFinal to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_get_is_final(_:)
func NWContentContextGetRelativePriority ¶ added in v0.6.3
func NWContentContextGetRelativePriority(context NWContentContext) float64
NWContentContextGetRelativePriority accesses the relative value of priority used to reorder contexts when sending.
It panics if nw_content_context_get_relative_priority is unavailable at run time; use TryNWContentContextGetRelativePriority to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_get_relative_priority(_:)
func NWContentContextSetAntecedent ¶ added in v0.6.3
func NWContentContextSetAntecedent(context NWContentContext, antecedent_context NWContentContext)
NWContentContextSetAntecedent set an optional message context that must be sent before the context you are sending.
It panics if nw_content_context_set_antecedent is unavailable at run time; use TryNWContentContextSetAntecedent to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_set_antecedent(_:_:)
func NWContentContextSetExpirationMilliseconds ¶ added in v0.6.3
func NWContentContextSetExpirationMilliseconds(context NWContentContext, expiration_milliseconds uint64)
NWContentContextSetExpirationMilliseconds sets the number of milliseconds after which sending the data associated with this context must begin, otherwise the data is discarded.
It panics if nw_content_context_set_expiration_milliseconds is unavailable at run time; use TryNWContentContextSetExpirationMilliseconds to get an error instead.
func NWContentContextSetIsFinal ¶ added in v0.6.3
func NWContentContextSetIsFinal(context NWContentContext, is_final bool)
NWContentContextSetIsFinal sets a Boolean indicating if this context represents the final message being sent.
It panics if nw_content_context_set_is_final is unavailable at run time; use TryNWContentContextSetIsFinal to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_set_is_final(_:_:)
func NWContentContextSetMetadataForProtocol ¶ added in v0.6.3
func NWContentContextSetMetadataForProtocol(context NWContentContext, protocol_metadata NWProtocolMetadata)
NWContentContextSetMetadataForProtocol sets protocol metadata to configure per-message or per-packet properties.
It panics if nw_content_context_set_metadata_for_protocol is unavailable at run time; use TryNWContentContextSetMetadataForProtocol to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_set_metadata_for_protocol(_:_:)
func NWContentContextSetRelativePriority ¶ added in v0.6.3
func NWContentContextSetRelativePriority(context NWContentContext, relative_priority float64)
NWContentContextSetRelativePriority sets the relative value of priority used to reorder contexts when sending.
It panics if nw_content_context_set_relative_priority is unavailable at run time; use TryNWContentContextSetRelativePriority to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_set_relative_priority(_:_:)
func NWDataTransferReportCollect ¶ added in v0.6.3
func NWDataTransferReportCollect(report NWDataTransferReport, queue dispatch.Queue, collect_block NWDataTransferReportCollectBlock)
NWDataTransferReportCollect stops an outstanding data transfer report and calculates the results.
It panics if nw_data_transfer_report_collect is unavailable at run time; use TryNWDataTransferReportCollect to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_collect(_:_:_:)
func NWDataTransferReportGetDurationMilliseconds ¶ added in v0.6.3
func NWDataTransferReportGetDurationMilliseconds(report NWDataTransferReport) uint64
NWDataTransferReportGetDurationMilliseconds checks the duration of the data transfer report, from when it was started to when it was collected.
It panics if nw_data_transfer_report_get_duration_milliseconds is unavailable at run time; use TryNWDataTransferReportGetDurationMilliseconds to get an error instead.
func NWDataTransferReportGetPathCount ¶ added in v0.6.3
func NWDataTransferReportGetPathCount(report NWDataTransferReport) uint32
NWDataTransferReportGetPathCount checks the number of valid paths in the report.
It panics if nw_data_transfer_report_get_path_count is unavailable at run time; use TryNWDataTransferReportGetPathCount to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_path_count(_:)
func NWDataTransferReportGetReceivedApplicationByteCount ¶ added in v0.6.3
func NWDataTransferReportGetReceivedApplicationByteCount(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetReceivedApplicationByteCount accesses the number of bytes the connection delivered.
It panics if nw_data_transfer_report_get_received_application_byte_count is unavailable at run time; use TryNWDataTransferReportGetReceivedApplicationByteCount to get an error instead.
func NWDataTransferReportGetReceivedIPPacketCount ¶ added in v0.6.3
func NWDataTransferReportGetReceivedIPPacketCount(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetReceivedIPPacketCount accesses the number of IP packets the connection received.
It panics if nw_data_transfer_report_get_received_ip_packet_count is unavailable at run time; use TryNWDataTransferReportGetReceivedIPPacketCount to get an error instead.
func NWDataTransferReportGetReceivedTransportByteCount ¶ added in v0.6.3
func NWDataTransferReportGetReceivedTransportByteCount(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetReceivedTransportByteCount accesses the number of bytes the transport protocol delivered.
It panics if nw_data_transfer_report_get_received_transport_byte_count is unavailable at run time; use TryNWDataTransferReportGetReceivedTransportByteCount to get an error instead.
func NWDataTransferReportGetReceivedTransportDuplicateByteCount ¶ added in v0.6.3
func NWDataTransferReportGetReceivedTransportDuplicateByteCount(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetReceivedTransportDuplicateByteCount accesses the number of duplicated bytes the transport protocol detected.
It panics if nw_data_transfer_report_get_received_transport_duplicate_byte_count is unavailable at run time; use TryNWDataTransferReportGetReceivedTransportDuplicateByteCount to get an error instead.
func NWDataTransferReportGetReceivedTransportOutOfOrderByteCount ¶ added in v0.6.3
func NWDataTransferReportGetReceivedTransportOutOfOrderByteCount(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetReceivedTransportOutOfOrderByteCount accesses the number of bytes the transport protocol received out of order.
It panics if nw_data_transfer_report_get_received_transport_out_of_order_byte_count is unavailable at run time; use TryNWDataTransferReportGetReceivedTransportOutOfOrderByteCount to get an error instead.
func NWDataTransferReportGetSentApplicationByteCount ¶ added in v0.6.3
func NWDataTransferReportGetSentApplicationByteCount(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetSentApplicationByteCount accesses the number of bytes sent on the connection.
It panics if nw_data_transfer_report_get_sent_application_byte_count is unavailable at run time; use TryNWDataTransferReportGetSentApplicationByteCount to get an error instead.
func NWDataTransferReportGetSentIPPacketCount ¶ added in v0.6.3
func NWDataTransferReportGetSentIPPacketCount(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetSentIPPacketCount accesses the number of IP packets the connection sent.
It panics if nw_data_transfer_report_get_sent_ip_packet_count is unavailable at run time; use TryNWDataTransferReportGetSentIPPacketCount to get an error instead.
func NWDataTransferReportGetSentTransportByteCount ¶ added in v0.6.3
func NWDataTransferReportGetSentTransportByteCount(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetSentTransportByteCount accesses the number of bytes sent into the transport protocol.
It panics if nw_data_transfer_report_get_sent_transport_byte_count is unavailable at run time; use TryNWDataTransferReportGetSentTransportByteCount to get an error instead.
func NWDataTransferReportGetSentTransportRetransmittedByteCount ¶ added in v0.6.3
func NWDataTransferReportGetSentTransportRetransmittedByteCount(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetSentTransportRetransmittedByteCount accesses the number of bytes the transport protocol retransmitted.
It panics if nw_data_transfer_report_get_sent_transport_retransmitted_byte_count is unavailable at run time; use TryNWDataTransferReportGetSentTransportRetransmittedByteCount to get an error instead.
func NWDataTransferReportGetTransportMinimumRttMilliseconds ¶ added in v0.6.3
func NWDataTransferReportGetTransportMinimumRttMilliseconds(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetTransportMinimumRttMilliseconds accesses the minimum round-trip time the transport protocol measured, in milliseconds.
It panics if nw_data_transfer_report_get_transport_minimum_rtt_milliseconds is unavailable at run time; use TryNWDataTransferReportGetTransportMinimumRttMilliseconds to get an error instead.
func NWDataTransferReportGetTransportRttVariance ¶ added in v0.6.3
func NWDataTransferReportGetTransportRttVariance(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetTransportRttVariance accesses the variance of the round-trip time the transport protocol measured.
It panics if nw_data_transfer_report_get_transport_rtt_variance is unavailable at run time; use TryNWDataTransferReportGetTransportRttVariance to get an error instead.
func NWDataTransferReportGetTransportSmoothedRttMilliseconds ¶ added in v0.6.3
func NWDataTransferReportGetTransportSmoothedRttMilliseconds(report NWDataTransferReport, path_index uint32) uint64
NWDataTransferReportGetTransportSmoothedRttMilliseconds accesses the smoothed round-trip time the transport protocol measured, in milliseconds.
It panics if nw_data_transfer_report_get_transport_smoothed_rtt_milliseconds is unavailable at run time; use TryNWDataTransferReportGetTransportSmoothedRttMilliseconds to get an error instead.
func NWEndpointCopyAddressString ¶ added in v0.6.3
func NWEndpointCopyAddressString(endpoint NWEndpoint) *byte
NWEndpointCopyAddressString copies the address of an endpoint as a string.
It panics if nw_endpoint_copy_address_string is unavailable at run time; use TryNWEndpointCopyAddressString to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_copy_address_string(_:)
func NWEndpointCopyPortString ¶ added in v0.6.3
func NWEndpointCopyPortString(endpoint NWEndpoint) *byte
NWEndpointCopyPortString copies the port of an endpoint as a string.
It panics if nw_endpoint_copy_port_string is unavailable at run time; use TryNWEndpointCopyPortString to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_copy_port_string(_:)
func NWEndpointGetAddress ¶ added in v0.6.3
func NWEndpointGetAddress(endpoint NWEndpoint) unsafe.Pointer
NWEndpointGetAddress accesses the address structure stored in an address endpoint.
It panics if nw_endpoint_get_address is unavailable at run time; use TryNWEndpointGetAddress to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_address(_:)
func NWEndpointGetBonjourServiceDomain ¶ added in v0.6.3
func NWEndpointGetBonjourServiceDomain(endpoint NWEndpoint) *byte
NWEndpointGetBonjourServiceDomain accesses the Bonjour service domain stored in an endpoint.
It panics if nw_endpoint_get_bonjour_service_domain is unavailable at run time; use TryNWEndpointGetBonjourServiceDomain to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_bonjour_service_domain(_:)
func NWEndpointGetBonjourServiceName ¶ added in v0.6.3
func NWEndpointGetBonjourServiceName(endpoint NWEndpoint) *byte
NWEndpointGetBonjourServiceName accesses the Bonjour service name stored in an endpoint.
It panics if nw_endpoint_get_bonjour_service_name is unavailable at run time; use TryNWEndpointGetBonjourServiceName to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_bonjour_service_name(_:)
func NWEndpointGetBonjourServiceType ¶ added in v0.6.3
func NWEndpointGetBonjourServiceType(endpoint NWEndpoint) *byte
NWEndpointGetBonjourServiceType accesses the Bonjour service type stored in an endpoint.
It panics if nw_endpoint_get_bonjour_service_type is unavailable at run time; use TryNWEndpointGetBonjourServiceType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_bonjour_service_type(_:)
func NWEndpointGetHostname ¶ added in v0.6.3
func NWEndpointGetHostname(endpoint NWEndpoint) *byte
NWEndpointGetHostname accesses the hostname stored in an endpoint.
It panics if nw_endpoint_get_hostname is unavailable at run time; use TryNWEndpointGetHostname to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_hostname(_:)
func NWEndpointGetPort ¶ added in v0.6.3
func NWEndpointGetPort(endpoint NWEndpoint) uint16
NWEndpointGetPort accesses the port stored in an endpoint, in host-byte order.
It panics if nw_endpoint_get_port is unavailable at run time; use TryNWEndpointGetPort to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_port(_:)
func NWEndpointGetSignature ¶ added in v0.6.3
func NWEndpointGetSignature(endpoint NWEndpoint, out_signature_length *uintptr) *uint8
NWEndpointGetSignature.
It panics if nw_endpoint_get_signature is unavailable at run time; use TryNWEndpointGetSignature to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_signature(_:_:)
func NWEndpointGetURL ¶ added in v0.6.3
func NWEndpointGetURL(endpoint NWEndpoint) *byte
NWEndpointGetURL accesses the URL string stored in an endpoint.
It panics if nw_endpoint_get_url is unavailable at run time; use TryNWEndpointGetURL to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_url(_:)
func NWErrorCopyCfError ¶ added in v0.6.3
func NWErrorCopyCfError(err NWError) corefoundation.CFErrorRef
NWErrorCopyCfError returns a copy of a network error.
It panics if nw_error_copy_cf_error is unavailable at run time; use TryNWErrorCopyCfError to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_error_copy_cf_error(_:)
func NWErrorGetErrorCode ¶ added in v0.6.3
NWErrorGetErrorCode accesses the specific code of the network error.
It panics if nw_error_get_error_code is unavailable at run time; use TryNWErrorGetErrorCode to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_error_get_error_code(_:)
func NWEstablishmentReportEnumerateProtocols ¶ added in v0.6.3
func NWEstablishmentReportEnumerateProtocols(report NWEstablishmentReport, enumerate_block NWReportProtocolEnumerator)
NWEstablishmentReportEnumerateProtocols iterates a list of protocol handshakes in order from first completed to last completed.
It panics if nw_establishment_report_enumerate_protocols is unavailable at run time; use TryNWEstablishmentReportEnumerateProtocols to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_establishment_report_enumerate_protocols(_:_:)
func NWEstablishmentReportEnumerateResolutionReports ¶ added in v0.6.3
func NWEstablishmentReportEnumerateResolutionReports(report NWEstablishmentReport, enumerate_block NWReportResolutionReportEnumerator)
NWEstablishmentReportEnumerateResolutionReports.
It panics if nw_establishment_report_enumerate_resolution_reports is unavailable at run time; use TryNWEstablishmentReportEnumerateResolutionReports to get an error instead.
func NWEstablishmentReportEnumerateResolutions ¶ added in v0.6.3
func NWEstablishmentReportEnumerateResolutions(report NWEstablishmentReport, enumerate_block NWReportResolutionEnumerator)
NWEstablishmentReportEnumerateResolutions iterates a list of resolution steps performed during connection establishment, in order from first resolved to last resolved.
It panics if nw_establishment_report_enumerate_resolutions is unavailable at run time; use TryNWEstablishmentReportEnumerateResolutions to get an error instead.
func NWEstablishmentReportGetAttemptStartedAfterMilliseconds ¶ added in v0.6.3
func NWEstablishmentReportGetAttemptStartedAfterMilliseconds(report NWEstablishmentReport) uint64
NWEstablishmentReportGetAttemptStartedAfterMilliseconds accesses the time between the call to start and the beginning of the successful connection attempt, in milliseconds.
It panics if nw_establishment_report_get_attempt_started_after_milliseconds is unavailable at run time; use TryNWEstablishmentReportGetAttemptStartedAfterMilliseconds to get an error instead.
func NWEstablishmentReportGetDurationMilliseconds ¶ added in v0.6.3
func NWEstablishmentReportGetDurationMilliseconds(report NWEstablishmentReport) uint64
NWEstablishmentReportGetDurationMilliseconds checks the total duration of the successful connection establishment attempt, from the preparing state to the ready state.
It panics if nw_establishment_report_get_duration_milliseconds is unavailable at run time; use TryNWEstablishmentReportGetDurationMilliseconds to get an error instead.
func NWEstablishmentReportGetPreviousAttemptCount ¶ added in v0.6.3
func NWEstablishmentReportGetPreviousAttemptCount(report NWEstablishmentReport) uint32
NWEstablishmentReportGetPreviousAttemptCount checks the number of attempts made before the successful attempt, when the connection moved from the preparing state back to the waiting state.
It panics if nw_establishment_report_get_previous_attempt_count is unavailable at run time; use TryNWEstablishmentReportGetPreviousAttemptCount to get an error instead.
func NWEstablishmentReportGetProxyConfigured ¶ added in v0.6.3
func NWEstablishmentReportGetProxyConfigured(report NWEstablishmentReport) bool
NWEstablishmentReportGetProxyConfigured checks whether a proxy was configured on the connection.
It panics if nw_establishment_report_get_proxy_configured is unavailable at run time; use TryNWEstablishmentReportGetProxyConfigured to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_establishment_report_get_proxy_configured(_:)
func NWEstablishmentReportGetUsedProxy ¶ added in v0.6.3
func NWEstablishmentReportGetUsedProxy(report NWEstablishmentReport) bool
NWEstablishmentReportGetUsedProxy checks whether the connection used a proxy.
It panics if nw_establishment_report_get_used_proxy is unavailable at run time; use TryNWEstablishmentReportGetUsedProxy to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_establishment_report_get_used_proxy(_:)
func NWEthernetChannelCancel ¶ added in v0.6.3
func NWEthernetChannelCancel(ethernet_channel NWEthernetChannel)
NWEthernetChannelCancel unregisters the channel from the interface.
It panics if nw_ethernet_channel_cancel is unavailable at run time; use TryNWEthernetChannelCancel to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_cancel(_:)
func NWEthernetChannelGetMaximumPayloadSize ¶ added in v0.6.3
func NWEthernetChannelGetMaximumPayloadSize(ethernet_channel NWEthernetChannel) uint32
NWEthernetChannelGetMaximumPayloadSize.
It panics if nw_ethernet_channel_get_maximum_payload_size is unavailable at run time; use TryNWEthernetChannelGetMaximumPayloadSize to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_get_maximum_payload_size(_:)
func NWEthernetChannelSend ¶ added in v0.6.3
func NWEthernetChannelSend(ethernet_channel NWEthernetChannel, content dispatch.Data, vlan_tag uint16, remote_address NWEthernetAddress, completion NWEthernetChannelSendCompletion)
NWEthernetChannelSend sends a single Ethernet frame over a channel to a specific Ethernet address.
It panics if nw_ethernet_channel_send is unavailable at run time; use TryNWEthernetChannelSend to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_send(_:_:_:_:_:)
func NWEthernetChannelSetQueue ¶ added in v0.6.3
func NWEthernetChannelSetQueue(ethernet_channel NWEthernetChannel, queue dispatch.Queue)
NWEthernetChannelSetQueue sets the queue on which all channel events are delivered.
It panics if nw_ethernet_channel_set_queue is unavailable at run time; use TryNWEthernetChannelSetQueue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_set_queue(_:_:)
func NWEthernetChannelSetReceiveHandler ¶ added in v0.6.3
func NWEthernetChannelSetReceiveHandler(ethernet_channel NWEthernetChannel, handler NWEthernetChannelReceiveHandler)
NWEthernetChannelSetReceiveHandler sets a handler to receive inbound Ethernet frames.
It panics if nw_ethernet_channel_set_receive_handler is unavailable at run time; use TryNWEthernetChannelSetReceiveHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_set_receive_handler(_:_:)
func NWEthernetChannelSetStateChangedHandler ¶ added in v0.6.3
func NWEthernetChannelSetStateChangedHandler(ethernet_channel NWEthernetChannel, handler NWEthernetChannelStateChangedHandler)
NWEthernetChannelSetStateChangedHandler sets a handler to receive channel state updates.
It panics if nw_ethernet_channel_set_state_changed_handler is unavailable at run time; use TryNWEthernetChannelSetStateChangedHandler to get an error instead.
func NWEthernetChannelStart ¶ added in v0.6.3
func NWEthernetChannelStart(ethernet_channel NWEthernetChannel)
NWEthernetChannelStart starts the process of registering the channel.
It panics if nw_ethernet_channel_start is unavailable at run time; use TryNWEthernetChannelStart to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_start(_:)
func NWFramerAsync ¶ added in v0.6.3
func NWFramerAsync(framer NWFramer, async_block NWFramerBlock)
NWFramerAsync requests that a block be executed on the connection’s internal scheduling context.
It panics if nw_framer_async is unavailable at run time; use TryNWFramerAsync to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_async(_:_:)
func NWFramerDeliverInput ¶ added in v0.6.3
func NWFramerDeliverInput(framer NWFramer, input_buffer []byte, input_length uintptr, message NWFramerMessage, is_complete bool)
NWFramerDeliverInput delivers an inbound message containing arbitrary data from your protocol to the application.
It panics if nw_framer_deliver_input is unavailable at run time; use TryNWFramerDeliverInput to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_deliver_input(_:_:_:_:_:)
func NWFramerDeliverInputNoCopy ¶ added in v0.6.3
func NWFramerDeliverInputNoCopy(framer NWFramer, input_length uintptr, message NWFramerMessage, is_complete bool) bool
NWFramerDeliverInputNoCopy delivers an inbound message containing a specific number of next received bytes.
It panics if nw_framer_deliver_input_no_copy is unavailable at run time; use TryNWFramerDeliverInputNoCopy to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_deliver_input_no_copy(_:_:_:_:)
func NWFramerMarkFailedWithError ¶ added in v0.6.3
NWFramerMarkFailedWithError indicates to a connection that your protocol has encountered an error, or has gracefully closed.
It panics if nw_framer_mark_failed_with_error is unavailable at run time; use TryNWFramerMarkFailedWithError to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_mark_failed_with_error(_:_:)
func NWFramerMarkReady ¶ added in v0.6.3
func NWFramerMarkReady(framer NWFramer)
NWFramerMarkReady indicates to a connection that your protocol’s handshake is complete.
It panics if nw_framer_mark_ready is unavailable at run time; use TryNWFramerMarkReady to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_mark_ready(_:)
func NWFramerMessageAccessValue ¶ added in v0.6.3
func NWFramerMessageAccessValue(message NWFramerMessage, key string, access_value bool) bool
NWFramerMessageAccessValue accesses a custom value stored in a framer message.
It panics if nw_framer_message_access_value is unavailable at run time; use TryNWFramerMessageAccessValue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_message_access_value(_:_:_:)
func NWFramerMessageCopyObjectValue ¶ added in v0.6.3
func NWFramerMessageCopyObjectValue(message NWFramerMessage, key string) objectivec.Object
NWFramerMessageCopyObjectValue accesses an NSObject value stored in a framer message.
It panics if nw_framer_message_copy_object_value is unavailable at run time; use TryNWFramerMessageCopyObjectValue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_message_copy_object_value(_:_:)
func NWFramerMessageSetObjectValue ¶ added in v0.6.3
func NWFramerMessageSetObjectValue(message NWFramerMessage, key string, value objectivec.Object)
NWFramerMessageSetObjectValue sets an NSObject value to be stored in a framer message.
It panics if nw_framer_message_set_object_value is unavailable at run time; use TryNWFramerMessageSetObjectValue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_message_set_object_value(_:_:_:)
func NWFramerMessageSetValue ¶ added in v0.6.3
func NWFramerMessageSetValue(message NWFramerMessage, key string, value unsafe.Pointer, dispose_value func(kernel.Pointer))
NWFramerMessageSetValue sets a value to be stored in a framer message, with a completion to call to disposed the stored value when the message is released.
It panics if nw_framer_message_set_value is unavailable at run time; use TryNWFramerMessageSetValue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_message_set_value(_:_:_:_:)
func NWFramerOptionsCopyObjectValue ¶ added in v0.6.3
func NWFramerOptionsCopyObjectValue(options NWProtocolOptions, key string) objectivec.Object
NWFramerOptionsCopyObjectValue.
It panics if nw_framer_options_copy_object_value is unavailable at run time; use TryNWFramerOptionsCopyObjectValue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_options_copy_object_value(_:_:)
func NWFramerOptionsSetObjectValue ¶ added in v0.6.3
func NWFramerOptionsSetObjectValue(options NWProtocolOptions, key string, value objectivec.Object)
NWFramerOptionsSetObjectValue.
It panics if nw_framer_options_set_object_value is unavailable at run time; use TryNWFramerOptionsSetObjectValue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_options_set_object_value(_:_:_:)
func NWFramerParseInput ¶ added in v0.6.3
func NWFramerParseInput(framer NWFramer, minimum_incomplete_length uintptr, maximum_length uintptr, temp_buffer []byte, parse NWFramerParseCompletion) bool
NWFramerParseInput examines the content of input data while inside your input handler block.
It panics if nw_framer_parse_input is unavailable at run time; use TryNWFramerParseInput to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_parse_input(_:_:_:_:_:)
func NWFramerParseOutput ¶ added in v0.6.3
func NWFramerParseOutput(framer NWFramer, minimum_incomplete_length uintptr, maximum_length uintptr, temp_buffer []byte, parse NWFramerParseCompletion) bool
NWFramerParseOutput examines the content of output data while inside your output handler.
It panics if nw_framer_parse_output is unavailable at run time; use TryNWFramerParseOutput to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_parse_output(_:_:_:_:_:)
func NWFramerPassThroughInput ¶ added in v0.6.3
func NWFramerPassThroughInput(framer NWFramer)
NWFramerPassThroughInput indicates that your protocol no longer needs to handle input data.
It panics if nw_framer_pass_through_input is unavailable at run time; use TryNWFramerPassThroughInput to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_pass_through_input(_:)
func NWFramerPassThroughOutput ¶ added in v0.6.3
func NWFramerPassThroughOutput(framer NWFramer)
NWFramerPassThroughOutput indicates that your protocol no longer needs to handle output data.
It panics if nw_framer_pass_through_output is unavailable at run time; use TryNWFramerPassThroughOutput to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_pass_through_output(_:)
func NWFramerPrependApplicationProtocol ¶ added in v0.6.3
func NWFramerPrependApplicationProtocol(framer NWFramer, protocol_options NWProtocolOptions) bool
NWFramerPrependApplicationProtocol dynamically adds another protocol that will run above your protocol after your protocol calls nw_framer_mark_ready(_:).
It panics if nw_framer_prepend_application_protocol is unavailable at run time; use TryNWFramerPrependApplicationProtocol to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_prepend_application_protocol(_:_:)
func NWFramerScheduleWakeup ¶ added in v0.6.3
NWFramerScheduleWakeup requests that the nw_framer_wakeup_handler_t be called on your protocol at a specific time in the future.
It panics if nw_framer_schedule_wakeup is unavailable at run time; use TryNWFramerScheduleWakeup to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_schedule_wakeup(_:_:)
func NWFramerSetCleanupHandler ¶ added in v0.6.3
func NWFramerSetCleanupHandler(framer NWFramer, cleanup_handler NWFramerCleanupHandler)
NWFramerSetCleanupHandler sets a block to handle the final cleanup of allocations made by your protocol instance.
It panics if nw_framer_set_cleanup_handler is unavailable at run time; use TryNWFramerSetCleanupHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_set_cleanup_handler(_:_:)
func NWFramerSetInputHandler ¶ added in v0.6.3
func NWFramerSetInputHandler(framer NWFramer, input_handler NWFramerInputHandler)
NWFramerSetInputHandler sets a block to handle new inbound data.
It panics if nw_framer_set_input_handler is unavailable at run time; use TryNWFramerSetInputHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_set_input_handler(_:_:)
func NWFramerSetOutputHandler ¶ added in v0.6.3
func NWFramerSetOutputHandler(framer NWFramer, output_handler NWFramerOutputHandler)
NWFramerSetOutputHandler sets a block to handle new outbound messages.
It panics if nw_framer_set_output_handler is unavailable at run time; use TryNWFramerSetOutputHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_set_output_handler(_:_:)
func NWFramerSetStopHandler ¶ added in v0.6.3
func NWFramerSetStopHandler(framer NWFramer, stop_handler NWFramerStopHandler)
NWFramerSetStopHandler sets a block to handle when the connection is being closed.
It panics if nw_framer_set_stop_handler is unavailable at run time; use TryNWFramerSetStopHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_set_stop_handler(_:_:)
func NWFramerSetWakeupHandler ¶ added in v0.6.3
func NWFramerSetWakeupHandler(framer NWFramer, wakeup_handler NWFramerWakeupHandler)
NWFramerSetWakeupHandler sets a handler to receive scheduled wakeup events.
It panics if nw_framer_set_wakeup_handler is unavailable at run time; use TryNWFramerSetWakeupHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_set_wakeup_handler(_:_:)
func NWFramerWriteOutput ¶ added in v0.6.3
NWFramerWriteOutput sends arbitrary output data in a buffer from your protocol to the next protocol.
It panics if nw_framer_write_output is unavailable at run time; use TryNWFramerWriteOutput to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_write_output(_:_:_:)
func NWFramerWriteOutputData ¶ added in v0.6.3
NWFramerWriteOutputData sends arbitrary output data from your protocol to the next protocol.
It panics if nw_framer_write_output_data is unavailable at run time; use TryNWFramerWriteOutputData to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_write_output_data(_:_:)
func NWFramerWriteOutputNoCopy ¶ added in v0.6.3
NWFramerWriteOutputNoCopy sends a specific number of bytes from a message while inside your output handler.
It panics if nw_framer_write_output_no_copy is unavailable at run time; use TryNWFramerWriteOutputNoCopy to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_write_output_no_copy(_:_:)
func NWGroupDescriptorAddEndpoint ¶ added in v0.6.3
func NWGroupDescriptorAddEndpoint(descriptor NWGroupDescriptor, endpoint NWEndpoint) bool
NWGroupDescriptorAddEndpoint adds a multicast address endpoint you specify to define an extra IP multicast group to join.
It panics if nw_group_descriptor_add_endpoint is unavailable at run time; use TryNWGroupDescriptorAddEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_group_descriptor_add_endpoint(_:_:)
func NWGroupDescriptorEnumerateEndpoints ¶ added in v0.6.3
func NWGroupDescriptorEnumerateEndpoints(descriptor NWGroupDescriptor, enumerate_block NWGroupDescriptorEnumerateEndpointsBlock)
NWGroupDescriptorEnumerateEndpoints sets a handler to list all endpoints added to the group descriptor.
It panics if nw_group_descriptor_enumerate_endpoints is unavailable at run time; use TryNWGroupDescriptorEnumerateEndpoints to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_group_descriptor_enumerate_endpoints(_:_:)
func NWIPMetadataGetReceiveTime ¶ added in v0.6.3
func NWIPMetadataGetReceiveTime(metadata NWProtocolMetadata) uint64
NWIPMetadataGetReceiveTime access the time at which a packet was received, in nanoseconds, based on `CLOCK_MONOTONIC_RAW`.
It panics if nw_ip_metadata_get_receive_time is unavailable at run time; use TryNWIPMetadataGetReceiveTime to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_metadata_get_receive_time(_:)
func NWIPMetadataSetEcnFlag ¶ added in v0.6.3
func NWIPMetadataSetEcnFlag(metadata NWProtocolMetadata, ecn_flag NWIPEcnFlag)
NWIPMetadataSetEcnFlag sets a specific Explicit Congestion Notification flag value to set on an IP packet.
It panics if nw_ip_metadata_set_ecn_flag is unavailable at run time; use TryNWIPMetadataSetEcnFlag to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_metadata_set_ecn_flag(_:_:)
func NWIPMetadataSetServiceClass ¶ added in v0.6.3
func NWIPMetadataSetServiceClass(metadata NWProtocolMetadata, service_class NWServiceClass)
NWIPMetadataSetServiceClass sets a specific service class to mark on an IP packet.
It panics if nw_ip_metadata_set_service_class is unavailable at run time; use TryNWIPMetadataSetServiceClass to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_metadata_set_service_class(_:_:)
func NWIPOptionsSetCalculateReceiveTime ¶ added in v0.6.3
func NWIPOptionsSetCalculateReceiveTime(options NWProtocolOptions, calculate_receive_time bool)
NWIPOptionsSetCalculateReceiveTime configures a connection to deliver receive timestamps for IP packets.
It panics if nw_ip_options_set_calculate_receive_time is unavailable at run time; use TryNWIPOptionsSetCalculateReceiveTime to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_options_set_calculate_receive_time(_:_:)
func NWIPOptionsSetDisableFragmentation ¶ added in v0.6.3
func NWIPOptionsSetDisableFragmentation(options NWProtocolOptions, disable_fragmentation bool)
NWIPOptionsSetDisableFragmentation configures a connection to disable fragmentation on outbound packets.
It panics if nw_ip_options_set_disable_fragmentation is unavailable at run time; use TryNWIPOptionsSetDisableFragmentation to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_options_set_disable_fragmentation(_:_:)
func NWIPOptionsSetDisableMulticastLoopback ¶ added in v0.6.3
func NWIPOptionsSetDisableMulticastLoopback(options NWProtocolOptions, disable_multicast_loopback bool)
NWIPOptionsSetDisableMulticastLoopback.
It panics if nw_ip_options_set_disable_multicast_loopback is unavailable at run time; use TryNWIPOptionsSetDisableMulticastLoopback to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_options_set_disable_multicast_loopback(_:_:)
func NWIPOptionsSetHopLimit ¶ added in v0.6.3
func NWIPOptionsSetHopLimit(options NWProtocolOptions, hop_limit uint8)
NWIPOptionsSetHopLimit configures the default hop limit for packets generated by a connection.
It panics if nw_ip_options_set_hop_limit is unavailable at run time; use TryNWIPOptionsSetHopLimit to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_options_set_hop_limit(_:_:)
func NWIPOptionsSetLocalAddressPreference ¶ added in v0.6.3
func NWIPOptionsSetLocalAddressPreference(options NWProtocolOptions, preference NWIPLocalAddressPreference)
NWIPOptionsSetLocalAddressPreference configures a connection to prefer certain types of local addresses, such as temporary or stable.
It panics if nw_ip_options_set_local_address_preference is unavailable at run time; use TryNWIPOptionsSetLocalAddressPreference to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_options_set_local_address_preference(_:_:)
func NWIPOptionsSetUseMinimumMtu ¶ added in v0.6.3
func NWIPOptionsSetUseMinimumMtu(options NWProtocolOptions, use_minimum_mtu bool)
NWIPOptionsSetUseMinimumMtu configures a connection to use the minimum MTU value, which is 1280 bytes for IPv6.
It panics if nw_ip_options_set_use_minimum_mtu is unavailable at run time; use TryNWIPOptionsSetUseMinimumMtu to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_options_set_use_minimum_mtu(_:_:)
func NWIPOptionsSetVersion ¶ added in v0.6.3
func NWIPOptionsSetVersion(options NWProtocolOptions, version NWIPVersion)
NWIPOptionsSetVersion sets a required IP version to disable all other versions for a connection.
It panics if nw_ip_options_set_version is unavailable at run time; use TryNWIPOptionsSetVersion to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_options_set_version(_:_:)
func NWInterfaceGetIndex ¶ added in v0.6.3
func NWInterfaceGetIndex(interface_ NWInterface) uint32
NWInterfaceGetIndex accesses the system interface index associated with the interface.
It panics if nw_interface_get_index is unavailable at run time; use TryNWInterfaceGetIndex to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_interface_get_index(_:)
func NWInterfaceGetName ¶ added in v0.6.3
func NWInterfaceGetName(interface_ NWInterface) *byte
NWInterfaceGetName accesses the name of the interface.
It panics if nw_interface_get_name is unavailable at run time; use TryNWInterfaceGetName to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_interface_get_name(_:)
func NWListenerCancel ¶ added in v0.6.3
func NWListenerCancel(listener NWListener)
NWListenerCancel stops listening for inbound connections.
It panics if nw_listener_cancel is unavailable at run time; use TryNWListenerCancel to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_cancel(_:)
func NWListenerGetNewConnectionLimit ¶ added in v0.6.3
func NWListenerGetNewConnectionLimit(listener NWListener) uint32
NWListenerGetNewConnectionLimit checks the remaining number of inbound connections to deliver before rejecting connections.
It panics if nw_listener_get_new_connection_limit is unavailable at run time; use TryNWListenerGetNewConnectionLimit to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_get_new_connection_limit(_:)
func NWListenerGetPort ¶ added in v0.6.3
func NWListenerGetPort(listener NWListener) uint16
NWListenerGetPort the port on which the listener can accept connections.
It panics if nw_listener_get_port is unavailable at run time; use TryNWListenerGetPort to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_get_port(_:)
func NWListenerSetAdvertiseDescriptor ¶ added in v0.6.3
func NWListenerSetAdvertiseDescriptor(listener NWListener, advertise_descriptor NWAdvertiseDescriptor)
NWListenerSetAdvertiseDescriptor sets a Bonjour service that advertises the listener on the local network.
It panics if nw_listener_set_advertise_descriptor is unavailable at run time; use TryNWListenerSetAdvertiseDescriptor to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_set_advertise_descriptor(_:_:)
func NWListenerSetAdvertisedEndpointChangedHandler ¶ added in v0.6.3
func NWListenerSetAdvertisedEndpointChangedHandler(listener NWListener, handler NWListenerAdvertisedEndpointChangedHandler)
NWListenerSetAdvertisedEndpointChangedHandler sets a handler that receives updates for the service endpoint being advertised.
It panics if nw_listener_set_advertised_endpoint_changed_handler is unavailable at run time; use TryNWListenerSetAdvertisedEndpointChangedHandler to get an error instead.
func NWListenerSetNewConnectionGroupHandler ¶ added in v0.6.3
func NWListenerSetNewConnectionGroupHandler(listener NWListener, handler NWListenerNewConnectionGroupHandler)
NWListenerSetNewConnectionGroupHandler.
It panics if nw_listener_set_new_connection_group_handler is unavailable at run time; use TryNWListenerSetNewConnectionGroupHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_set_new_connection_group_handler(_:_:)
func NWListenerSetNewConnectionHandler ¶ added in v0.6.3
func NWListenerSetNewConnectionHandler(listener NWListener, handler NWListenerNewConnectionHandler)
NWListenerSetNewConnectionHandler sets a handler that receives inbound connections.
It panics if nw_listener_set_new_connection_handler is unavailable at run time; use TryNWListenerSetNewConnectionHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_set_new_connection_handler(_:_:)
func NWListenerSetNewConnectionLimit ¶ added in v0.6.3
func NWListenerSetNewConnectionLimit(listener NWListener, new_connection_limit uint32)
NWListenerSetNewConnectionLimit resets the number of inbound connections to deliver before rejecting connections.
It panics if nw_listener_set_new_connection_limit is unavailable at run time; use TryNWListenerSetNewConnectionLimit to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_set_new_connection_limit(_:_:)
func NWListenerSetQueue ¶ added in v0.6.3
func NWListenerSetQueue(listener NWListener, queue dispatch.Queue)
NWListenerSetQueue sets the queue on which all listener events are delivered.
It panics if nw_listener_set_queue is unavailable at run time; use TryNWListenerSetQueue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_set_queue(_:_:)
func NWListenerSetStateChangedHandler ¶ added in v0.6.3
func NWListenerSetStateChangedHandler(listener NWListener, handler NWListenerStateChangedHandler)
NWListenerSetStateChangedHandler sets a handler to receive listener state updates.
It panics if nw_listener_set_state_changed_handler is unavailable at run time; use TryNWListenerSetStateChangedHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_set_state_changed_handler(_:_:)
func NWListenerStart ¶ added in v0.6.3
func NWListenerStart(listener NWListener)
NWListenerStart registers for listening for inbound connections.
It panics if nw_listener_start is unavailable at run time; use TryNWListenerStart to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_start(_:)
func NWMulticastGroupDescriptorGetDisableUnicastTraffic ¶ added in v0.6.3
func NWMulticastGroupDescriptorGetDisableUnicastTraffic(multicast_descriptor NWGroupDescriptor) bool
NWMulticastGroupDescriptorGetDisableUnicastTraffic checks a Boolean that indicates whether a connection group should reject unicast traffic.
It panics if nw_multicast_group_descriptor_get_disable_unicast_traffic is unavailable at run time; use TryNWMulticastGroupDescriptorGetDisableUnicastTraffic to get an error instead.
func NWMulticastGroupDescriptorSetDisableUnicastTraffic ¶ added in v0.6.3
func NWMulticastGroupDescriptorSetDisableUnicastTraffic(multicast_descriptor NWGroupDescriptor, disable_unicast_traffic bool)
NWMulticastGroupDescriptorSetDisableUnicastTraffic sets a Boolean that indicates whether a connection group should reject unicast traffic.
It panics if nw_multicast_group_descriptor_set_disable_unicast_traffic is unavailable at run time; use TryNWMulticastGroupDescriptorSetDisableUnicastTraffic to get an error instead.
func NWMulticastGroupDescriptorSetSpecificSource ¶ added in v0.6.3
func NWMulticastGroupDescriptorSetSpecificSource(multicast_descriptor NWGroupDescriptor, source NWEndpoint)
NWMulticastGroupDescriptorSetSpecificSource sets an optional address endpoint used to filter received multicast packets.
It panics if nw_multicast_group_descriptor_set_specific_source is unavailable at run time; use TryNWMulticastGroupDescriptorSetSpecificSource to get an error instead.
func NWParametersClearProhibitedInterfaceTypes ¶ added in v0.6.3
func NWParametersClearProhibitedInterfaceTypes(parameters NWParameters)
NWParametersClearProhibitedInterfaceTypes removes all prohibited interface types.
It panics if nw_parameters_clear_prohibited_interface_types is unavailable at run time; use TryNWParametersClearProhibitedInterfaceTypes to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_clear_prohibited_interface_types(_:)
func NWParametersClearProhibitedInterfaces ¶ added in v0.6.3
func NWParametersClearProhibitedInterfaces(parameters NWParameters)
NWParametersClearProhibitedInterfaces removes all prohibited interface types.
It panics if nw_parameters_clear_prohibited_interfaces is unavailable at run time; use TryNWParametersClearProhibitedInterfaces to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_clear_prohibited_interfaces(_:)
func NWParametersGetAllowUltraConstrained ¶ added in v0.6.3
func NWParametersGetAllowUltraConstrained(parameters NWParameters) bool
NWParametersGetAllowUltraConstrained.
It panics if nw_parameters_get_allow_ultra_constrained is unavailable at run time; use TryNWParametersGetAllowUltraConstrained to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_allow_ultra_constrained(_:)
func NWParametersGetFastOpenEnabled ¶ added in v0.6.3
func NWParametersGetFastOpenEnabled(parameters NWParameters) bool
NWParametersGetFastOpenEnabled checks if sending application data with protocol handshakes is enabled.
It panics if nw_parameters_get_fast_open_enabled is unavailable at run time; use TryNWParametersGetFastOpenEnabled to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_fast_open_enabled(_:)
func NWParametersGetIncludePeerToPeer ¶ added in v0.6.3
func NWParametersGetIncludePeerToPeer(parameters NWParameters) bool
NWParametersGetIncludePeerToPeer checks whether a connection is allowed to use peer-to-peer link technologies.
It panics if nw_parameters_get_include_peer_to_peer is unavailable at run time; use TryNWParametersGetIncludePeerToPeer to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_include_peer_to_peer(_:)
func NWParametersGetLocalOnly ¶ added in v0.6.3
func NWParametersGetLocalOnly(parameters NWParameters) bool
NWParametersGetLocalOnly checks if a listener is restricted to accepting connections from the local link.
It panics if nw_parameters_get_local_only is unavailable at run time; use TryNWParametersGetLocalOnly to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_local_only(_:)
func NWParametersGetPreferNoProxy ¶ added in v0.6.3
func NWParametersGetPreferNoProxy(parameters NWParameters) bool
NWParametersGetPreferNoProxy checks if proxies are ignored by default.
It panics if nw_parameters_get_prefer_no_proxy is unavailable at run time; use TryNWParametersGetPreferNoProxy to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_prefer_no_proxy(_:)
func NWParametersGetProhibitConstrained ¶ added in v0.6.3
func NWParametersGetProhibitConstrained(parameters NWParameters) bool
NWParametersGetProhibitConstrained checks if connections, listeners, and browsers are prevented from using network paths marked as constrained by Low Data Mode.
It panics if nw_parameters_get_prohibit_constrained is unavailable at run time; use TryNWParametersGetProhibitConstrained to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_prohibit_constrained(_:)
func NWParametersGetProhibitExpensive ¶ added in v0.6.3
func NWParametersGetProhibitExpensive(parameters NWParameters) bool
NWParametersGetProhibitExpensive checks if connections, listeners, and browsers are prevented from using network paths marked as expensive.
It panics if nw_parameters_get_prohibit_expensive is unavailable at run time; use TryNWParametersGetProhibitExpensive to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_prohibit_expensive(_:)
func NWParametersGetReuseLocalAddress ¶ added in v0.6.3
func NWParametersGetReuseLocalAddress(parameters NWParameters) bool
NWParametersGetReuseLocalAddress checks whether a connection allows reusing local addresses and ports.
It panics if nw_parameters_get_reuse_local_address is unavailable at run time; use TryNWParametersGetReuseLocalAddress to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_reuse_local_address(_:)
func NWParametersIterateProhibitedInterfaceTypes ¶ added in v0.6.3
func NWParametersIterateProhibitedInterfaceTypes(parameters NWParameters, iterate_block NWParametersIterateInterfaceTypesBlock)
NWParametersIterateProhibitedInterfaceTypes examines the list of prohibited interface types.
It panics if nw_parameters_iterate_prohibited_interface_types is unavailable at run time; use TryNWParametersIterateProhibitedInterfaceTypes to get an error instead.
func NWParametersIterateProhibitedInterfaces ¶ added in v0.6.3
func NWParametersIterateProhibitedInterfaces(parameters NWParameters, iterate_block NWParametersIterateInterfacesBlock)
NWParametersIterateProhibitedInterfaces examines the list of prohibited interfaces.
It panics if nw_parameters_iterate_prohibited_interfaces is unavailable at run time; use TryNWParametersIterateProhibitedInterfaces to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_iterate_prohibited_interfaces(_:_:)
func NWParametersProhibitInterface ¶ added in v0.6.3
func NWParametersProhibitInterface(parameters NWParameters, interface_ NWInterface)
NWParametersProhibitInterface prevents connections and listeners from using a specific interface.
It panics if nw_parameters_prohibit_interface is unavailable at run time; use TryNWParametersProhibitInterface to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_prohibit_interface(_:_:)
func NWParametersProhibitInterfaceType ¶ added in v0.6.3
func NWParametersProhibitInterfaceType(parameters NWParameters, interface_type NWInterfaceType)
NWParametersProhibitInterfaceType prevents connections, listeners, and browsers from using a specific interface type.
It panics if nw_parameters_prohibit_interface_type is unavailable at run time; use TryNWParametersProhibitInterfaceType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_prohibit_interface_type(_:_:)
func NWParametersRequireInterface ¶ added in v0.6.3
func NWParametersRequireInterface(parameters NWParameters, interface_ NWInterface)
NWParametersRequireInterface sets a specific interface to require on connections, listeners, and browsers.
It panics if nw_parameters_require_interface is unavailable at run time; use TryNWParametersRequireInterface to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_require_interface(_:_:)
func NWParametersRequiresDnssecValidation ¶ added in v0.6.3
func NWParametersRequiresDnssecValidation(parameters NWParameters) bool
NWParametersRequiresDnssecValidation checks whether a connection requires DNSSEC validation when resolving endpoints.
It panics if nw_parameters_requires_dnssec_validation is unavailable at run time; use TryNWParametersRequiresDnssecValidation to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_requires_dnssec_validation(_:)
func NWParametersSetAllowUltraConstrained ¶ added in v0.6.3
func NWParametersSetAllowUltraConstrained(parameters NWParameters, allow_ultra_constrained bool)
NWParametersSetAllowUltraConstrained.
It panics if nw_parameters_set_allow_ultra_constrained is unavailable at run time; use TryNWParametersSetAllowUltraConstrained to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_allow_ultra_constrained(_:_:)
func NWParametersSetAttribution ¶ added in v0.6.3
func NWParametersSetAttribution(parameters NWParameters, attribution NWParametersAttribution)
NWParametersSetAttribution sets a flag that indicates whether the network request originates from the developer or the user.
It panics if nw_parameters_set_attribution is unavailable at run time; use TryNWParametersSetAttribution to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_attribution(_:_:)
func NWParametersSetExpiredDnsBehavior ¶ added in v0.6.3
func NWParametersSetExpiredDnsBehavior(parameters NWParameters, expired_dns_behavior NWParametersExpiredDnsBehavior)
NWParametersSetExpiredDnsBehavior sets the behavior for how expired DNS answers should be used.
It panics if nw_parameters_set_expired_dns_behavior is unavailable at run time; use TryNWParametersSetExpiredDnsBehavior to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_expired_dns_behavior(_:_:)
func NWParametersSetFastOpenEnabled ¶ added in v0.6.3
func NWParametersSetFastOpenEnabled(parameters NWParameters, fast_open_enabled bool)
NWParametersSetFastOpenEnabled enables sending application data with protocol handshakes.
It panics if nw_parameters_set_fast_open_enabled is unavailable at run time; use TryNWParametersSetFastOpenEnabled to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_fast_open_enabled(_:_:)
func NWParametersSetIncludePeerToPeer ¶ added in v0.6.3
func NWParametersSetIncludePeerToPeer(parameters NWParameters, include_peer_to_peer bool)
NWParametersSetIncludePeerToPeer enables peer-to-peer link technologies for connections and listeners.
It panics if nw_parameters_set_include_peer_to_peer is unavailable at run time; use TryNWParametersSetIncludePeerToPeer to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_include_peer_to_peer(_:_:)
func NWParametersSetLocalEndpoint ¶ added in v0.6.3
func NWParametersSetLocalEndpoint(parameters NWParameters, local_endpoint NWEndpoint)
NWParametersSetLocalEndpoint sets a specific local IP address and port to use for connections and listeners.
It panics if nw_parameters_set_local_endpoint is unavailable at run time; use TryNWParametersSetLocalEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_local_endpoint(_:_:)
func NWParametersSetLocalOnly ¶ added in v0.6.3
func NWParametersSetLocalOnly(parameters NWParameters, local_only bool)
NWParametersSetLocalOnly restricts listeners to only accepting connections from the local link.
It panics if nw_parameters_set_local_only is unavailable at run time; use TryNWParametersSetLocalOnly to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_local_only(_:_:)
func NWParametersSetMultipathService ¶ added in v0.6.3
func NWParametersSetMultipathService(parameters NWParameters, multipath_service NWMultipathService)
NWParametersSetMultipathService enables multipath protocols to allow connections to use multiple interfaces.
It panics if nw_parameters_set_multipath_service is unavailable at run time; use TryNWParametersSetMultipathService to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_multipath_service(_:_:)
func NWParametersSetPreferNoProxy ¶ added in v0.6.3
func NWParametersSetPreferNoProxy(parameters NWParameters, prefer_no_proxy bool)
NWParametersSetPreferNoProxy sets a Boolean that indicates that connections should ignore proxies when they are enabled on the system.
It panics if nw_parameters_set_prefer_no_proxy is unavailable at run time; use TryNWParametersSetPreferNoProxy to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_prefer_no_proxy(_:_:)
func NWParametersSetPrivacyContext ¶ added in v0.6.3
func NWParametersSetPrivacyContext(parameters NWParameters, privacy_context NWPrivacyContext)
NWParametersSetPrivacyContext associates a privacy context with any connections or listeners that use the parameters.
It panics if nw_parameters_set_privacy_context is unavailable at run time; use TryNWParametersSetPrivacyContext to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_privacy_context(_:_:)
func NWParametersSetProhibitConstrained ¶ added in v0.6.3
func NWParametersSetProhibitConstrained(parameters NWParameters, prohibit_constrained bool)
NWParametersSetProhibitConstrained prevents connections, listeners, and browsers from using network paths marked as constrained by Low Data Mode.
It panics if nw_parameters_set_prohibit_constrained is unavailable at run time; use TryNWParametersSetProhibitConstrained to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_prohibit_constrained(_:_:)
func NWParametersSetProhibitExpensive ¶ added in v0.6.3
func NWParametersSetProhibitExpensive(parameters NWParameters, prohibit_expensive bool)
NWParametersSetProhibitExpensive prevents connections, listeners, and browsers from using network paths marked as expensive.
It panics if nw_parameters_set_prohibit_expensive is unavailable at run time; use TryNWParametersSetProhibitExpensive to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_prohibit_expensive(_:_:)
func NWParametersSetRequiredInterfaceType ¶ added in v0.6.3
func NWParametersSetRequiredInterfaceType(parameters NWParameters, interface_type NWInterfaceType)
NWParametersSetRequiredInterfaceType sets an interface type to require on connections and listeners.
It panics if nw_parameters_set_required_interface_type is unavailable at run time; use TryNWParametersSetRequiredInterfaceType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_required_interface_type(_:_:)
func NWParametersSetRequiresDnssecValidation ¶ added in v0.6.3
func NWParametersSetRequiresDnssecValidation(parameters NWParameters, requires_dnssec_validation bool)
NWParametersSetRequiresDnssecValidation determines whether a connection requires DNSSEC validation when resolving endpoints.
It panics if nw_parameters_set_requires_dnssec_validation is unavailable at run time; use TryNWParametersSetRequiresDnssecValidation to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_requires_dnssec_validation(_:_:)
func NWParametersSetReuseLocalAddress ¶ added in v0.6.3
func NWParametersSetReuseLocalAddress(parameters NWParameters, reuse_local_address bool)
NWParametersSetReuseLocalAddress allows reusing local addresses and ports across connections.
It panics if nw_parameters_set_reuse_local_address is unavailable at run time; use TryNWParametersSetReuseLocalAddress to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_reuse_local_address(_:_:)
func NWParametersSetServiceClass ¶ added in v0.6.3
func NWParametersSetServiceClass(parameters NWParameters, service_class NWServiceClass)
NWParametersSetServiceClass sets a level of service quality to use for connections.
It panics if nw_parameters_set_service_class is unavailable at run time; use TryNWParametersSetServiceClass to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_service_class(_:_:)
func NWPathEnumerateGateways ¶ added in v0.6.3
func NWPathEnumerateGateways(path NWPath, enumerate_block NWPathEnumerateGatewaysBlock)
NWPathEnumerateGateways enumerates the list of gateways configured on the interfaces available to a path.
It panics if nw_path_enumerate_gateways is unavailable at run time; use TryNWPathEnumerateGateways to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_enumerate_gateways(_:_:)
func NWPathEnumerateInterfaces ¶ added in v0.6.3
func NWPathEnumerateInterfaces(path NWPath, enumerate_block NWPathEnumerateInterfacesBlock)
NWPathEnumerateInterfaces enumerates the list of all interfaces available to the path, in order of preference.
It panics if nw_path_enumerate_interfaces is unavailable at run time; use TryNWPathEnumerateInterfaces to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_enumerate_interfaces(_:_:)
func NWPathHasDns ¶ added in v0.6.3
NWPathHasDns checks whether the path has a DNS server configured.
It panics if nw_path_has_dns is unavailable at run time; use TryNWPathHasDns to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_has_dns(_:)
func NWPathHasIpv4 ¶ added in v0.6.3
NWPathHasIpv4 checks whether the path can route IPv4 traffic.
It panics if nw_path_has_ipv4 is unavailable at run time; use TryNWPathHasIpv4 to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_has_ipv4(_:)
func NWPathHasIpv6 ¶ added in v0.6.3
NWPathHasIpv6 checks whether the path can route IPv6 traffic.
It panics if nw_path_has_ipv6 is unavailable at run time; use TryNWPathHasIpv6 to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_has_ipv6(_:)
func NWPathIsConstrained ¶ added in v0.6.3
NWPathIsConstrained checks whether the path uses an interface in Low Data Mode.
It panics if nw_path_is_constrained is unavailable at run time; use TryNWPathIsConstrained to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_is_constrained(_:)
func NWPathIsEqual ¶ added in v0.6.3
NWPathIsEqual compares if two paths are identical.
It panics if nw_path_is_equal is unavailable at run time; use TryNWPathIsEqual to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_is_equal(_:_:)
func NWPathIsExpensive ¶ added in v0.6.3
NWPathIsExpensive checks whether the path uses an interface that is considered expensive, such as Cellular or a Personal Hotspot.
It panics if nw_path_is_expensive is unavailable at run time; use TryNWPathIsExpensive to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_is_expensive(_:)
func NWPathIsUltraConstrained ¶ added in v0.6.3
NWPathIsUltraConstrained.
It panics if nw_path_is_ultra_constrained is unavailable at run time; use TryNWPathIsUltraConstrained to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_is_ultra_constrained(_:)
func NWPathMonitorCancel ¶ added in v0.6.3
func NWPathMonitorCancel(monitor NWPathMonitor)
NWPathMonitorCancel stops receiving network path updates.
It panics if nw_path_monitor_cancel is unavailable at run time; use TryNWPathMonitorCancel to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_cancel(_:)
func NWPathMonitorProhibitInterfaceType ¶ added in v0.6.3
func NWPathMonitorProhibitInterfaceType(monitor NWPathMonitor, interface_type NWInterfaceType)
NWPathMonitorProhibitInterfaceType prohibit a path monitor from using a specific interface type.
It panics if nw_path_monitor_prohibit_interface_type is unavailable at run time; use TryNWPathMonitorProhibitInterfaceType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_prohibit_interface_type(_:_:)
func NWPathMonitorSetCancelHandler ¶ added in v0.6.3
func NWPathMonitorSetCancelHandler(monitor NWPathMonitor, cancel_handler NWPathMonitorCancelHandler)
NWPathMonitorSetCancelHandler sets a handler to determine when a monitor is fully cancelled and will no longer deliver events.
It panics if nw_path_monitor_set_cancel_handler is unavailable at run time; use TryNWPathMonitorSetCancelHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_set_cancel_handler(_:_:)
func NWPathMonitorSetQueue ¶ added in v0.6.3
func NWPathMonitorSetQueue(monitor NWPathMonitor, queue dispatch.Queue)
NWPathMonitorSetQueue sets a queue on which to deliver path events.
It panics if nw_path_monitor_set_queue is unavailable at run time; use TryNWPathMonitorSetQueue to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_set_queue(_:_:)
func NWPathMonitorSetUpdateHandler ¶ added in v0.6.3
func NWPathMonitorSetUpdateHandler(monitor NWPathMonitor, update_handler NWPathMonitorUpdateHandler)
NWPathMonitorSetUpdateHandler sets a handler to receive network path updates.
It panics if nw_path_monitor_set_update_handler is unavailable at run time; use TryNWPathMonitorSetUpdateHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_set_update_handler(_:_:)
func NWPathMonitorStart ¶ added in v0.6.3
func NWPathMonitorStart(monitor NWPathMonitor)
NWPathMonitorStart starts monitoring path changes.
It panics if nw_path_monitor_start is unavailable at run time; use TryNWPathMonitorStart to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_start(_:)
func NWPathUsesInterfaceType ¶ added in v0.6.3
func NWPathUsesInterfaceType(path NWPath, interface_type NWInterfaceType) bool
NWPathUsesInterfaceType checks if connections using the path may send traffic over a specific interface type.
It panics if nw_path_uses_interface_type is unavailable at run time; use TryNWPathUsesInterfaceType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_uses_interface_type(_:_:)
func NWPrivacyContextAddProxy ¶ added in v0.6.3
func NWPrivacyContextAddProxy(privacy_context NWPrivacyContext, proxy_config NWProxyConfig)
NWPrivacyContextAddProxy applies a proxy configuration to all connections associated with this context.
It panics if nw_privacy_context_add_proxy is unavailable at run time; use TryNWPrivacyContextAddProxy to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_privacy_context_add_proxy(_:_:)
func NWPrivacyContextClearProxies ¶ added in v0.6.3
func NWPrivacyContextClearProxies(privacy_context NWPrivacyContext)
NWPrivacyContextClearProxies clears out any proxies added using nw_privacy_context_add_proxy(_:_:)
It panics if nw_privacy_context_clear_proxies is unavailable at run time; use TryNWPrivacyContextClearProxies to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_privacy_context_clear_proxies(_:)
func NWPrivacyContextDisableLogging ¶ added in v0.6.3
func NWPrivacyContextDisableLogging(privacy_context NWPrivacyContext)
NWPrivacyContextDisableLogging disables system logging of connection activity.
It panics if nw_privacy_context_disable_logging is unavailable at run time; use TryNWPrivacyContextDisableLogging to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_privacy_context_disable_logging(_:)
func NWPrivacyContextFlushCache ¶ added in v0.6.3
func NWPrivacyContextFlushCache(privacy_context NWPrivacyContext)
NWPrivacyContextFlushCache flushes all cached data, such as TLS session state, created by connections associated with the privacy context.
It panics if nw_privacy_context_flush_cache is unavailable at run time; use TryNWPrivacyContextFlushCache to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_privacy_context_flush_cache(_:)
func NWPrivacyContextRequireEncryptedNameResolution ¶ added in v0.6.3
func NWPrivacyContextRequireEncryptedNameResolution(privacy_context NWPrivacyContext, require_encrypted_name_resolution bool, fallback_resolver_config NWResolverConfig)
NWPrivacyContextRequireEncryptedNameResolution requires that any DNS name resolution for connections associated with this context use encrypted transports, such as TLS or HTTPS.
It panics if nw_privacy_context_require_encrypted_name_resolution is unavailable at run time; use TryNWPrivacyContextRequireEncryptedNameResolution to get an error instead.
func NWProtocolDefinitionIsEqual ¶ added in v0.6.3
func NWProtocolDefinitionIsEqual(definition1 NWProtocolDefinition, definition2 NWProtocolDefinition) bool
NWProtocolDefinitionIsEqual compares two protocol definitions, and returns true if they represent the same protocol implementation.
It panics if nw_protocol_definition_is_equal is unavailable at run time; use TryNWProtocolDefinitionIsEqual to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_definition_is_equal(_:_:)
func NWProtocolMetadataIsFramerMessage ¶ added in v0.6.3
func NWProtocolMetadataIsFramerMessage(metadata NWProtocolMetadata) bool
NWProtocolMetadataIsFramerMessage checks if a metadata object represents a custom framer protocol message.
It panics if nw_protocol_metadata_is_framer_message is unavailable at run time; use TryNWProtocolMetadataIsFramerMessage to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_framer_message(_:)
func NWProtocolMetadataIsIP ¶ added in v0.6.3
func NWProtocolMetadataIsIP(metadata NWProtocolMetadata) bool
NWProtocolMetadataIsIP checks whether a metadata object represents an IP packet.
It panics if nw_protocol_metadata_is_ip is unavailable at run time; use TryNWProtocolMetadataIsIP to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_ip(_:)
func NWProtocolMetadataIsQuic ¶ added in v0.6.3
func NWProtocolMetadataIsQuic(metadata NWProtocolMetadata) bool
NWProtocolMetadataIsQuic checks whether a metadata object contains QUIC connection state.
It panics if nw_protocol_metadata_is_quic is unavailable at run time; use TryNWProtocolMetadataIsQuic to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_quic(_:)
func NWProtocolMetadataIsTCP ¶ added in v0.6.3
func NWProtocolMetadataIsTCP(metadata NWProtocolMetadata) bool
NWProtocolMetadataIsTCP checks whether a metadata object contains TCP connection state.
It panics if nw_protocol_metadata_is_tcp is unavailable at run time; use TryNWProtocolMetadataIsTCP to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_tcp(_:)
func NWProtocolMetadataIsTLS ¶ added in v0.6.3
func NWProtocolMetadataIsTLS(metadata NWProtocolMetadata) bool
NWProtocolMetadataIsTLS checks whether a metadata object contains TLS connection state.
It panics if nw_protocol_metadata_is_tls is unavailable at run time; use TryNWProtocolMetadataIsTLS to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_tls(_:)
func NWProtocolMetadataIsUDP ¶ added in v0.6.3
func NWProtocolMetadataIsUDP(metadata NWProtocolMetadata) bool
NWProtocolMetadataIsUDP checks whether a metadata object represents a UDP datagram.
It panics if nw_protocol_metadata_is_udp is unavailable at run time; use TryNWProtocolMetadataIsUDP to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_udp(_:)
func NWProtocolMetadataIsWs ¶ added in v0.6.3
func NWProtocolMetadataIsWs(metadata NWProtocolMetadata) bool
NWProtocolMetadataIsWs checks whether a metadata object represents a WebSocket message.
It panics if nw_protocol_metadata_is_ws is unavailable at run time; use TryNWProtocolMetadataIsWs to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_ws(_:)
func NWProtocolOptionsIsQuic ¶ added in v0.6.3
func NWProtocolOptionsIsQuic(options NWProtocolOptions) bool
NWProtocolOptionsIsQuic checks whether an options object uses the QUIC protocol.
It panics if nw_protocol_options_is_quic is unavailable at run time; use TryNWProtocolOptionsIsQuic to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_options_is_quic(_:)
func NWProtocolStackClearApplicationProtocols ¶ added in v0.6.3
func NWProtocolStackClearApplicationProtocols(stack NWProtocolStack)
NWProtocolStackClearApplicationProtocols removes all application protocols from the protocol stack.
It panics if nw_protocol_stack_clear_application_protocols is unavailable at run time; use TryNWProtocolStackClearApplicationProtocols to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_stack_clear_application_protocols(_:)
func NWProtocolStackIterateApplicationProtocols ¶ added in v0.6.3
func NWProtocolStackIterateApplicationProtocols(stack NWProtocolStack, iterate_block NWProtocolStackIterateProtocolsBlock)
NWProtocolStackIterateApplicationProtocols iterates through the array of application protocol options that will be used by connections and listeners.
It panics if nw_protocol_stack_iterate_application_protocols is unavailable at run time; use TryNWProtocolStackIterateApplicationProtocols to get an error instead.
func NWProtocolStackPrependApplicationProtocol ¶ added in v0.6.3
func NWProtocolStackPrependApplicationProtocol(stack NWProtocolStack, protocol_ NWProtocolOptions)
NWProtocolStackPrependApplicationProtocol adds a protocol onto the top of the protocol stack.
It panics if nw_protocol_stack_prepend_application_protocol is unavailable at run time; use TryNWProtocolStackPrependApplicationProtocol to get an error instead.
func NWProtocolStackSetTransportProtocol ¶ added in v0.6.3
func NWProtocolStackSetTransportProtocol(stack NWProtocolStack, protocol_ NWProtocolOptions)
NWProtocolStackSetTransportProtocol replaces the protocol stack’s transport protocol with a new set of options.
It panics if nw_protocol_stack_set_transport_protocol is unavailable at run time; use TryNWProtocolStackSetTransportProtocol to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_stack_set_transport_protocol(_:_:)
func NWProxyConfigAddExcludedDomain ¶ added in v0.6.3
func NWProxyConfigAddExcludedDomain(config NWProxyConfig, excluded_domain string)
NWProxyConfigAddExcludedDomain.
It panics if nw_proxy_config_add_excluded_domain is unavailable at run time; use TryNWProxyConfigAddExcludedDomain to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_add_excluded_domain(_:_:)
func NWProxyConfigAddMatchDomain ¶ added in v0.6.3
func NWProxyConfigAddMatchDomain(config NWProxyConfig, match_domain string)
NWProxyConfigAddMatchDomain.
It panics if nw_proxy_config_add_match_domain is unavailable at run time; use TryNWProxyConfigAddMatchDomain to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_add_match_domain(_:_:)
func NWProxyConfigClearExcludedDomains ¶ added in v0.6.3
func NWProxyConfigClearExcludedDomains(config NWProxyConfig)
NWProxyConfigClearExcludedDomains.
It panics if nw_proxy_config_clear_excluded_domains is unavailable at run time; use TryNWProxyConfigClearExcludedDomains to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_clear_excluded_domains(_:)
func NWProxyConfigClearMatchDomains ¶ added in v0.6.3
func NWProxyConfigClearMatchDomains(config NWProxyConfig)
NWProxyConfigClearMatchDomains.
It panics if nw_proxy_config_clear_match_domains is unavailable at run time; use TryNWProxyConfigClearMatchDomains to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_clear_match_domains(_:)
func NWProxyConfigEnumerateExcludedDomains ¶ added in v0.6.3
func NWProxyConfigEnumerateExcludedDomains(config NWProxyConfig, enumerator NWProxyDomainEnumerator)
NWProxyConfigEnumerateExcludedDomains.
It panics if nw_proxy_config_enumerate_excluded_domains is unavailable at run time; use TryNWProxyConfigEnumerateExcludedDomains to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_enumerate_excluded_domains(_:_:)
func NWProxyConfigEnumerateMatchDomains ¶ added in v0.6.3
func NWProxyConfigEnumerateMatchDomains(config NWProxyConfig, enumerator NWProxyDomainEnumerator)
NWProxyConfigEnumerateMatchDomains.
It panics if nw_proxy_config_enumerate_match_domains is unavailable at run time; use TryNWProxyConfigEnumerateMatchDomains to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_enumerate_match_domains(_:_:)
func NWProxyConfigGetFailoverAllowed ¶ added in v0.6.3
func NWProxyConfigGetFailoverAllowed(proxy_config NWProxyConfig) bool
NWProxyConfigGetFailoverAllowed checks if a proxy configuration allows failover to non-proxied connections.
It panics if nw_proxy_config_get_failover_allowed is unavailable at run time; use TryNWProxyConfigGetFailoverAllowed to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_get_failover_allowed(_:)
func NWProxyConfigSetFailoverAllowed ¶ added in v0.6.3
func NWProxyConfigSetFailoverAllowed(proxy_config NWProxyConfig, failover_allowed bool)
NWProxyConfigSetFailoverAllowed configures whether or not a proxy configuration allows failover to non-proxied connections.
It panics if nw_proxy_config_set_failover_allowed is unavailable at run time; use TryNWProxyConfigSetFailoverAllowed to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_set_failover_allowed(_:_:)
func NWProxyConfigSetUsernameAndPassword ¶ added in v0.6.3
func NWProxyConfigSetUsernameAndPassword(proxy_config NWProxyConfig, username string, password string)
NWProxyConfigSetUsernameAndPassword sets a username and password to use as authentication for a proxy configuration.
It panics if nw_proxy_config_set_username_and_password is unavailable at run time; use TryNWProxyConfigSetUsernameAndPassword to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_set_username_and_password(_:_:_:)
func NWQuicAddTLSApplicationProtocol ¶ added in v0.6.3
func NWQuicAddTLSApplicationProtocol(options NWProtocolOptions, application_protocol string)
NWQuicAddTLSApplicationProtocol adds a supported Application-Layer Protocol Negotiation value.
It panics if nw_quic_add_tls_application_protocol is unavailable at run time; use TryNWQuicAddTLSApplicationProtocol to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_add_tls_application_protocol(_:_:)
func NWQuicCopySecProtocolMetadata ¶ added in v0.6.3
func NWQuicCopySecProtocolMetadata(metadata NWProtocolMetadata) security.Sec_protocol_metadata_t
NWQuicCopySecProtocolMetadata accesses the result of the QUIC handshake.
It panics if nw_quic_copy_sec_protocol_metadata is unavailable at run time; use TryNWQuicCopySecProtocolMetadata to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_copy_sec_protocol_metadata(_:)
func NWQuicCopySecProtocolOptions ¶ added in v0.6.3
func NWQuicCopySecProtocolOptions(options NWProtocolOptions) security.Sec_protocol_options_t
NWQuicCopySecProtocolOptions accesses the handshake security options QUIC will use.
It panics if nw_quic_copy_sec_protocol_options is unavailable at run time; use TryNWQuicCopySecProtocolOptions to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_copy_sec_protocol_options(_:)
func NWQuicGetApplicationError ¶ added in v0.6.3
func NWQuicGetApplicationError(metadata NWProtocolMetadata) uint64
NWQuicGetApplicationError accesses the QUIC application error code received from the peer.
It panics if nw_quic_get_application_error is unavailable at run time; use TryNWQuicGetApplicationError to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_application_error(_:)
func NWQuicGetApplicationErrorReason ¶ added in v0.6.3
func NWQuicGetApplicationErrorReason(metadata NWProtocolMetadata) *byte
NWQuicGetApplicationErrorReason accesses the QUIC application error reason received from the peer.
It panics if nw_quic_get_application_error_reason is unavailable at run time; use TryNWQuicGetApplicationErrorReason to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_application_error_reason(_:)
func NWQuicGetIdleTimeout ¶ added in v0.6.3
func NWQuicGetIdleTimeout(options NWProtocolOptions) uint32
NWQuicGetIdleTimeout accesses the idle timeout for the QUIC connection, in milliseconds.
It panics if nw_quic_get_idle_timeout is unavailable at run time; use TryNWQuicGetIdleTimeout to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_idle_timeout(_:)
func NWQuicGetInitialMaxData ¶ added in v0.6.3
func NWQuicGetInitialMaxData(options NWProtocolOptions) uint64
NWQuicGetInitialMaxData accesses a QUIC connection’s initial maximum data transport parameter.
It panics if nw_quic_get_initial_max_data is unavailable at run time; use TryNWQuicGetInitialMaxData to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_initial_max_data(_:)
func NWQuicGetInitialMaxStreamDataBidirectionalLocal ¶ added in v0.6.3
func NWQuicGetInitialMaxStreamDataBidirectionalLocal(options NWProtocolOptions) uint64
NWQuicGetInitialMaxStreamDataBidirectionalLocal accesses a QUIC connection’s initial maximum stream data limit for locally-initiated bidirectional streams.
It panics if nw_quic_get_initial_max_stream_data_bidirectional_local is unavailable at run time; use TryNWQuicGetInitialMaxStreamDataBidirectionalLocal to get an error instead.
func NWQuicGetInitialMaxStreamDataBidirectionalRemote ¶ added in v0.6.3
func NWQuicGetInitialMaxStreamDataBidirectionalRemote(options NWProtocolOptions) uint64
NWQuicGetInitialMaxStreamDataBidirectionalRemote accesses a QUIC connection’s initial maximum stream data limit for remote-initiated bidirectional streams.
It panics if nw_quic_get_initial_max_stream_data_bidirectional_remote is unavailable at run time; use TryNWQuicGetInitialMaxStreamDataBidirectionalRemote to get an error instead.
func NWQuicGetInitialMaxStreamDataUnidirectional ¶ added in v0.6.3
func NWQuicGetInitialMaxStreamDataUnidirectional(options NWProtocolOptions) uint64
NWQuicGetInitialMaxStreamDataUnidirectional accesses a QUIC connection’s initial maximum stream data limit for unidirectional streams.
It panics if nw_quic_get_initial_max_stream_data_unidirectional is unavailable at run time; use TryNWQuicGetInitialMaxStreamDataUnidirectional to get an error instead.
func NWQuicGetInitialMaxStreamsBidirectional ¶ added in v0.6.3
func NWQuicGetInitialMaxStreamsBidirectional(options NWProtocolOptions) uint64
NWQuicGetInitialMaxStreamsBidirectional accesses a QUIC connection’s initial maximum number of bidirectional streams.
It panics if nw_quic_get_initial_max_streams_bidirectional is unavailable at run time; use TryNWQuicGetInitialMaxStreamsBidirectional to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_initial_max_streams_bidirectional(_:)
func NWQuicGetInitialMaxStreamsUnidirectional ¶ added in v0.6.3
func NWQuicGetInitialMaxStreamsUnidirectional(options NWProtocolOptions) uint64
NWQuicGetInitialMaxStreamsUnidirectional accesses a QUIC connection’s initial maximum number of unidirectional streams.
It panics if nw_quic_get_initial_max_streams_unidirectional is unavailable at run time; use TryNWQuicGetInitialMaxStreamsUnidirectional to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_initial_max_streams_unidirectional(_:)
func NWQuicGetKeepaliveInterval ¶ added in v0.6.3
func NWQuicGetKeepaliveInterval(metadata NWProtocolMetadata) uint16
NWQuicGetKeepaliveInterval accesses the keepalive interval for the QUIC connection, in seconds.
It panics if nw_quic_get_keepalive_interval is unavailable at run time; use TryNWQuicGetKeepaliveInterval to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_keepalive_interval(_:)
func NWQuicGetLocalMaxStreamsBidirectional ¶ added in v0.6.3
func NWQuicGetLocalMaxStreamsBidirectional(metadata NWProtocolMetadata) uint64
NWQuicGetLocalMaxStreamsBidirectional accesses the maximum number of bidirectional streams that the peer can create on a QUIC connection.
It panics if nw_quic_get_local_max_streams_bidirectional is unavailable at run time; use TryNWQuicGetLocalMaxStreamsBidirectional to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_local_max_streams_bidirectional(_:)
func NWQuicGetLocalMaxStreamsUnidirectional ¶ added in v0.6.3
func NWQuicGetLocalMaxStreamsUnidirectional(metadata NWProtocolMetadata) uint64
NWQuicGetLocalMaxStreamsUnidirectional accesses the maximum number of unidirectional streams that the peer can create on a QUIC connection.
It panics if nw_quic_get_local_max_streams_unidirectional is unavailable at run time; use TryNWQuicGetLocalMaxStreamsUnidirectional to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_local_max_streams_unidirectional(_:)
func NWQuicGetMaxDatagramFrameSize ¶ added in v0.6.3
func NWQuicGetMaxDatagramFrameSize(options NWProtocolOptions) uint16
NWQuicGetMaxDatagramFrameSize accesses a QUIC connection’s maximum DATAGRAM frame size.
It panics if nw_quic_get_max_datagram_frame_size is unavailable at run time; use TryNWQuicGetMaxDatagramFrameSize to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_max_datagram_frame_size(_:)
func NWQuicGetMaxUDPPayloadSize ¶ added in v0.6.3
func NWQuicGetMaxUDPPayloadSize(options NWProtocolOptions) uint16
NWQuicGetMaxUDPPayloadSize accesses the maximum length of a QUIC packet that can be received on a connection, in bytes.
It panics if nw_quic_get_max_udp_payload_size is unavailable at run time; use TryNWQuicGetMaxUDPPayloadSize to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_max_udp_payload_size(_:)
func NWQuicGetRemoteIdleTimeout ¶ added in v0.6.3
func NWQuicGetRemoteIdleTimeout(metadata NWProtocolMetadata) uint64
NWQuicGetRemoteIdleTimeout accesses the idle timeout value from the peer’s transport parameters, in milliseconds.
It panics if nw_quic_get_remote_idle_timeout is unavailable at run time; use TryNWQuicGetRemoteIdleTimeout to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_remote_idle_timeout(_:)
func NWQuicGetRemoteMaxStreamsBidirectional ¶ added in v0.6.3
func NWQuicGetRemoteMaxStreamsBidirectional(metadata NWProtocolMetadata) uint64
NWQuicGetRemoteMaxStreamsBidirectional accesses the maximum number of bidirectional streams advertised by peer that the connection is allowed to create.
It panics if nw_quic_get_remote_max_streams_bidirectional is unavailable at run time; use TryNWQuicGetRemoteMaxStreamsBidirectional to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_remote_max_streams_bidirectional(_:)
func NWQuicGetRemoteMaxStreamsUnidirectional ¶ added in v0.6.3
func NWQuicGetRemoteMaxStreamsUnidirectional(metadata NWProtocolMetadata) uint64
NWQuicGetRemoteMaxStreamsUnidirectional accesses the maximum number of unidirectional streams advertised by peer that the connection is allowed to create.
It panics if nw_quic_get_remote_max_streams_unidirectional is unavailable at run time; use TryNWQuicGetRemoteMaxStreamsUnidirectional to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_remote_max_streams_unidirectional(_:)
func NWQuicGetStreamApplicationError ¶ added in v0.6.3
func NWQuicGetStreamApplicationError(metadata NWProtocolMetadata) uint64
NWQuicGetStreamApplicationError accesses the QUIC application error code received from the peer for the stream.
It panics if nw_quic_get_stream_application_error is unavailable at run time; use TryNWQuicGetStreamApplicationError to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_stream_application_error(_:)
func NWQuicGetStreamID ¶ added in v0.6.3
func NWQuicGetStreamID(metadata NWProtocolMetadata) uint64
NWQuicGetStreamID accesses the QUIC stream identifier.
It panics if nw_quic_get_stream_id is unavailable at run time; use TryNWQuicGetStreamID to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_stream_id(_:)
func NWQuicGetStreamIsDatagram ¶ added in v0.6.3
func NWQuicGetStreamIsDatagram(options NWProtocolOptions) bool
NWQuicGetStreamIsDatagram checks if a QUIC stream is a datagram flow, instead of a byte stream.
It panics if nw_quic_get_stream_is_datagram is unavailable at run time; use TryNWQuicGetStreamIsDatagram to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_stream_is_datagram(_:)
func NWQuicGetStreamIsUnidirectional ¶ added in v0.6.3
func NWQuicGetStreamIsUnidirectional(options NWProtocolOptions) bool
NWQuicGetStreamIsUnidirectional checks if a QUIC stream is unidirectional, instead of bidirectional.
It panics if nw_quic_get_stream_is_unidirectional is unavailable at run time; use TryNWQuicGetStreamIsUnidirectional to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_stream_is_unidirectional(_:)
func NWQuicGetStreamType ¶ added in v0.6.3
func NWQuicGetStreamType(stream_metadata NWProtocolMetadata) uint8
NWQuicGetStreamType accesses the stream type of the QUIC stream.
It panics if nw_quic_get_stream_type is unavailable at run time; use TryNWQuicGetStreamType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_stream_type(_:)
func NWQuicGetStreamUsableDatagramFrameSize ¶ added in v0.6.3
func NWQuicGetStreamUsableDatagramFrameSize(metadata NWProtocolMetadata) uint16
NWQuicGetStreamUsableDatagramFrameSize accesses the maximum usable size of a datagram frame on a QUIC datagram flow.
It panics if nw_quic_get_stream_usable_datagram_frame_size is unavailable at run time; use TryNWQuicGetStreamUsableDatagramFrameSize to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_get_stream_usable_datagram_frame_size(_:)
func NWQuicSetApplicationError ¶ added in v0.6.3
func NWQuicSetApplicationError(metadata NWProtocolMetadata, application_error uint64, reason string)
NWQuicSetApplicationError sets the QUIC application error code to send for the connection.
It panics if nw_quic_set_application_error is unavailable at run time; use TryNWQuicSetApplicationError to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_application_error(_:_:_:)
func NWQuicSetIdleTimeout ¶ added in v0.6.3
func NWQuicSetIdleTimeout(options NWProtocolOptions, idle_timeout uint32)
NWQuicSetIdleTimeout sets the idle timeout for the QUIC connection, in milliseconds.
It panics if nw_quic_set_idle_timeout is unavailable at run time; use TryNWQuicSetIdleTimeout to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_idle_timeout(_:_:)
func NWQuicSetInitialMaxData ¶ added in v0.6.3
func NWQuicSetInitialMaxData(options NWProtocolOptions, initial_max_data uint64)
NWQuicSetInitialMaxData sets a QUIC connection’s initial maximum data transport parameter.
It panics if nw_quic_set_initial_max_data is unavailable at run time; use TryNWQuicSetInitialMaxData to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_initial_max_data(_:_:)
func NWQuicSetInitialMaxStreamDataBidirectionalLocal ¶ added in v0.6.3
func NWQuicSetInitialMaxStreamDataBidirectionalLocal(options NWProtocolOptions, initial_max_stream_data_bidirectional_local uint64)
NWQuicSetInitialMaxStreamDataBidirectionalLocal sets a QUIC connection’s initial maximum stream data limit for locally-initiated bidirectional streams.
It panics if nw_quic_set_initial_max_stream_data_bidirectional_local is unavailable at run time; use TryNWQuicSetInitialMaxStreamDataBidirectionalLocal to get an error instead.
func NWQuicSetInitialMaxStreamDataBidirectionalRemote ¶ added in v0.6.3
func NWQuicSetInitialMaxStreamDataBidirectionalRemote(options NWProtocolOptions, initial_max_stream_data_bidirectional_remote uint64)
NWQuicSetInitialMaxStreamDataBidirectionalRemote sets a QUIC connection’s initial maximum stream data limit for remote-initiated bidirectional streams.
It panics if nw_quic_set_initial_max_stream_data_bidirectional_remote is unavailable at run time; use TryNWQuicSetInitialMaxStreamDataBidirectionalRemote to get an error instead.
func NWQuicSetInitialMaxStreamDataUnidirectional ¶ added in v0.6.3
func NWQuicSetInitialMaxStreamDataUnidirectional(options NWProtocolOptions, initial_max_stream_data_unidirectional uint64)
NWQuicSetInitialMaxStreamDataUnidirectional sets a QUIC connection’s initial maximum stream data limit for unidirectional streams.
It panics if nw_quic_set_initial_max_stream_data_unidirectional is unavailable at run time; use TryNWQuicSetInitialMaxStreamDataUnidirectional to get an error instead.
func NWQuicSetInitialMaxStreamsBidirectional ¶ added in v0.6.3
func NWQuicSetInitialMaxStreamsBidirectional(options NWProtocolOptions, initial_max_streams_bidirectional uint64)
NWQuicSetInitialMaxStreamsBidirectional sets a QUIC connection’s initial maximum number of bidirectional streams.
It panics if nw_quic_set_initial_max_streams_bidirectional is unavailable at run time; use TryNWQuicSetInitialMaxStreamsBidirectional to get an error instead.
func NWQuicSetInitialMaxStreamsUnidirectional ¶ added in v0.6.3
func NWQuicSetInitialMaxStreamsUnidirectional(options NWProtocolOptions, initial_max_streams_unidirectional uint64)
NWQuicSetInitialMaxStreamsUnidirectional sets a QUIC connection’s initial maximum number of unidirectional streams.
It panics if nw_quic_set_initial_max_streams_unidirectional is unavailable at run time; use TryNWQuicSetInitialMaxStreamsUnidirectional to get an error instead.
func NWQuicSetKeepaliveInterval ¶ added in v0.6.3
func NWQuicSetKeepaliveInterval(metadata NWProtocolMetadata, keepalive_interval uint16)
NWQuicSetKeepaliveInterval sets the keepalive interval for the QUIC connection, in seconds.
It panics if nw_quic_set_keepalive_interval is unavailable at run time; use TryNWQuicSetKeepaliveInterval to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_keepalive_interval(_:_:)
func NWQuicSetLocalMaxStreamsBidirectional ¶ added in v0.6.3
func NWQuicSetLocalMaxStreamsBidirectional(metadata NWProtocolMetadata, max_streams_bidirectional uint64)
NWQuicSetLocalMaxStreamsBidirectional sets the maximum number of bidirectional streams that the peer can create on a QUIC connection.
It panics if nw_quic_set_local_max_streams_bidirectional is unavailable at run time; use TryNWQuicSetLocalMaxStreamsBidirectional to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_local_max_streams_bidirectional(_:_:)
func NWQuicSetLocalMaxStreamsUnidirectional ¶ added in v0.6.3
func NWQuicSetLocalMaxStreamsUnidirectional(metadata NWProtocolMetadata, max_streams_unidirectional uint64)
NWQuicSetLocalMaxStreamsUnidirectional sets the maximum number of unidirectional streams that the peer can create on a QUIC connection.
It panics if nw_quic_set_local_max_streams_unidirectional is unavailable at run time; use TryNWQuicSetLocalMaxStreamsUnidirectional to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_local_max_streams_unidirectional(_:_:)
func NWQuicSetMaxDatagramFrameSize ¶ added in v0.6.3
func NWQuicSetMaxDatagramFrameSize(options NWProtocolOptions, max_datagram_frame_size uint16)
NWQuicSetMaxDatagramFrameSize sets a QUIC connection’s maximum DATAGRAM frame size.
It panics if nw_quic_set_max_datagram_frame_size is unavailable at run time; use TryNWQuicSetMaxDatagramFrameSize to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_max_datagram_frame_size(_:_:)
func NWQuicSetMaxUDPPayloadSize ¶ added in v0.6.3
func NWQuicSetMaxUDPPayloadSize(options NWProtocolOptions, max_udp_payload_size uint16)
NWQuicSetMaxUDPPayloadSize sets the maximum length of a QUIC packet that can be received on a connection, in bytes.
It panics if nw_quic_set_max_udp_payload_size is unavailable at run time; use TryNWQuicSetMaxUDPPayloadSize to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_max_udp_payload_size(_:_:)
func NWQuicSetStreamApplicationError ¶ added in v0.6.3
func NWQuicSetStreamApplicationError(metadata NWProtocolMetadata, application_error uint64)
NWQuicSetStreamApplicationError sets the QUIC application error code to send for the stream.
It panics if nw_quic_set_stream_application_error is unavailable at run time; use TryNWQuicSetStreamApplicationError to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_stream_application_error(_:_:)
func NWQuicSetStreamIsDatagram ¶ added in v0.6.3
func NWQuicSetStreamIsDatagram(options NWProtocolOptions, is_datagram bool)
NWQuicSetStreamIsDatagram configures a QUIC stream as a datagram flow, instead of a byte stream.
It panics if nw_quic_set_stream_is_datagram is unavailable at run time; use TryNWQuicSetStreamIsDatagram to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_stream_is_datagram(_:_:)
func NWQuicSetStreamIsUnidirectional ¶ added in v0.6.3
func NWQuicSetStreamIsUnidirectional(options NWProtocolOptions, is_unidirectional bool)
NWQuicSetStreamIsUnidirectional configures a QUIC stream as unidirectional, instead of bidirectional.
It panics if nw_quic_set_stream_is_unidirectional is unavailable at run time; use TryNWQuicSetStreamIsUnidirectional to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_set_stream_is_unidirectional(_:_:)
func NWRelayHopAddAdditionalHttpHeaderField ¶ added in v0.6.3
func NWRelayHopAddAdditionalHttpHeaderField(relay_hop NWRelayHop, field_name string, field_value string)
NWRelayHopAddAdditionalHttpHeaderField adds an HTTP header name and value pair to send as part of [CONNECT] requests to the relay.
It panics if nw_relay_hop_add_additional_http_header_field is unavailable at run time; use TryNWRelayHopAddAdditionalHttpHeaderField to get an error instead.
func NWRelease ¶ added in v0.6.3
NWRelease releases a reference count on a Network.framework object.
It panics if nw_release is unavailable at run time; use TryNWRelease to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_release
func NWResolutionReportGetEndpointCount ¶ added in v0.6.3
func NWResolutionReportGetEndpointCount(resolution_report NWResolutionReport) uint32
NWResolutionReportGetEndpointCount accesses the number of endpoints resolved in this step.
It panics if nw_resolution_report_get_endpoint_count is unavailable at run time; use TryNWResolutionReportGetEndpointCount to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_get_endpoint_count(_:)
func NWResolutionReportGetMilliseconds ¶ added in v0.6.3
func NWResolutionReportGetMilliseconds(resolution_report NWResolutionReport) uint64
NWResolutionReportGetMilliseconds accesses the duration of this resolution step, from when the query was issued to when the response was complete.
It panics if nw_resolution_report_get_milliseconds is unavailable at run time; use TryNWResolutionReportGetMilliseconds to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_get_milliseconds(_:)
func NWResolverConfigAddServerAddress ¶ added in v0.6.3
func NWResolverConfigAddServerAddress(config NWResolverConfig, server_address NWEndpoint)
NWResolverConfigAddServerAddress provides a well-known DNS server address to use instead of looking up the address dynamically.
It panics if nw_resolver_config_add_server_address is unavailable at run time; use TryNWResolverConfigAddServerAddress to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_resolver_config_add_server_address(_:_:)
func NWRetain ¶ added in v0.6.3
NWRetain adds a reference count to a Network.framework object.
It panics if nw_retain is unavailable at run time; use TryNWRetain to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_retain
func NWTCPGetAvailableReceiveBuffer ¶ added in v0.6.3
func NWTCPGetAvailableReceiveBuffer(metadata NWProtocolMetadata) uint32
NWTCPGetAvailableReceiveBuffer accesses the number of available bytes in the TCP receive buffer.
It panics if nw_tcp_get_available_receive_buffer is unavailable at run time; use TryNWTCPGetAvailableReceiveBuffer to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_get_available_receive_buffer(_:)
func NWTCPGetAvailableSendBuffer ¶ added in v0.6.3
func NWTCPGetAvailableSendBuffer(metadata NWProtocolMetadata) uint32
NWTCPGetAvailableSendBuffer accesses the number of available bytes in the TCP send buffer.
It panics if nw_tcp_get_available_send_buffer is unavailable at run time; use TryNWTCPGetAvailableSendBuffer to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_get_available_send_buffer(_:)
func NWTCPOptionsSetConnectionTimeout ¶ added in v0.6.3
func NWTCPOptionsSetConnectionTimeout(options NWProtocolOptions, connection_timeout uint32)
NWTCPOptionsSetConnectionTimeout sets the number of seconds that TCP waits before timing out its handshake.
It panics if nw_tcp_options_set_connection_timeout is unavailable at run time; use TryNWTCPOptionsSetConnectionTimeout to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_connection_timeout(_:_:)
func NWTCPOptionsSetDisableAckStretching ¶ added in v0.6.3
func NWTCPOptionsSetDisableAckStretching(options NWProtocolOptions, disable_ack_stretching bool)
NWTCPOptionsSetDisableAckStretching disables TCP acknowledgment stretching.
It panics if nw_tcp_options_set_disable_ack_stretching is unavailable at run time; use TryNWTCPOptionsSetDisableAckStretching to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_disable_ack_stretching(_:_:)
func NWTCPOptionsSetDisableEcn ¶ added in v0.6.3
func NWTCPOptionsSetDisableEcn(options NWProtocolOptions, disable_ecn bool)
NWTCPOptionsSetDisableEcn disables negotiation of Explicit Congestion Notification markings.
It panics if nw_tcp_options_set_disable_ecn is unavailable at run time; use TryNWTCPOptionsSetDisableEcn to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_disable_ecn(_:_:)
func NWTCPOptionsSetEnableFastOpen ¶ added in v0.6.3
func NWTCPOptionsSetEnableFastOpen(options NWProtocolOptions, enable_fast_open bool)
NWTCPOptionsSetEnableFastOpen enables TCP Fast Open on a connection.
It panics if nw_tcp_options_set_enable_fast_open is unavailable at run time; use TryNWTCPOptionsSetEnableFastOpen to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_enable_fast_open(_:_:)
func NWTCPOptionsSetEnableKeepalive ¶ added in v0.6.3
func NWTCPOptionsSetEnableKeepalive(options NWProtocolOptions, enable_keepalive bool)
NWTCPOptionsSetEnableKeepalive enables TCP keepalives.
It panics if nw_tcp_options_set_enable_keepalive is unavailable at run time; use TryNWTCPOptionsSetEnableKeepalive to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_enable_keepalive(_:_:)
func NWTCPOptionsSetKeepaliveCount ¶ added in v0.6.3
func NWTCPOptionsSetKeepaliveCount(options NWProtocolOptions, keepalive_count uint32)
NWTCPOptionsSetKeepaliveCount sets the number of keepalive probes that TCP sends before terminating the connection.
It panics if nw_tcp_options_set_keepalive_count is unavailable at run time; use TryNWTCPOptionsSetKeepaliveCount to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_keepalive_count(_:_:)
func NWTCPOptionsSetKeepaliveIdleTime ¶ added in v0.6.3
func NWTCPOptionsSetKeepaliveIdleTime(options NWProtocolOptions, keepalive_idle_time uint32)
NWTCPOptionsSetKeepaliveIdleTime sets the number of seconds of idleness that TCP waits before sending keepalive probes.
It panics if nw_tcp_options_set_keepalive_idle_time is unavailable at run time; use TryNWTCPOptionsSetKeepaliveIdleTime to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_keepalive_idle_time(_:_:)
func NWTCPOptionsSetKeepaliveInterval ¶ added in v0.6.3
func NWTCPOptionsSetKeepaliveInterval(options NWProtocolOptions, keepalive_interval uint32)
NWTCPOptionsSetKeepaliveInterval sets the number of seconds that TCP waits between sending keepalive probes.
It panics if nw_tcp_options_set_keepalive_interval is unavailable at run time; use TryNWTCPOptionsSetKeepaliveInterval to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_keepalive_interval(_:_:)
func NWTCPOptionsSetMaximumSegmentSize ¶ added in v0.6.3
func NWTCPOptionsSetMaximumSegmentSize(options NWProtocolOptions, maximum_segment_size uint32)
NWTCPOptionsSetMaximumSegmentSize sets TCP’s maximum segment size in bytes.
It panics if nw_tcp_options_set_maximum_segment_size is unavailable at run time; use TryNWTCPOptionsSetMaximumSegmentSize to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_maximum_segment_size(_:_:)
func NWTCPOptionsSetMultipathForceVersion ¶ added in v0.6.3
func NWTCPOptionsSetMultipathForceVersion(options NWProtocolOptions, multipath_force_version NWMultipathVersion)
NWTCPOptionsSetMultipathForceVersion.
It panics if nw_tcp_options_set_multipath_force_version is unavailable at run time; use TryNWTCPOptionsSetMultipathForceVersion to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_multipath_force_version(_:_:)
func NWTCPOptionsSetNoDelay ¶ added in v0.6.3
func NWTCPOptionsSetNoDelay(options NWProtocolOptions, no_delay bool)
NWTCPOptionsSetNoDelay disables Nagle’s algorithm for TCP.
It panics if nw_tcp_options_set_no_delay is unavailable at run time; use TryNWTCPOptionsSetNoDelay to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_no_delay(_:_:)
func NWTCPOptionsSetNoOptions ¶ added in v0.6.3
func NWTCPOptionsSetNoOptions(options NWProtocolOptions, no_options bool)
NWTCPOptionsSetNoOptions sets TCP into no-options mode.
It panics if nw_tcp_options_set_no_options is unavailable at run time; use TryNWTCPOptionsSetNoOptions to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_no_options(_:_:)
func NWTCPOptionsSetNoPush ¶ added in v0.6.3
func NWTCPOptionsSetNoPush(options NWProtocolOptions, no_push bool)
NWTCPOptionsSetNoPush sets TCP into no-push mode.
It panics if nw_tcp_options_set_no_push is unavailable at run time; use TryNWTCPOptionsSetNoPush to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_no_push(_:_:)
func NWTCPOptionsSetPersistTimeout ¶ added in v0.6.3
func NWTCPOptionsSetPersistTimeout(options NWProtocolOptions, persist_timeout uint32)
NWTCPOptionsSetPersistTimeout sets the TCP persist timeout in seconds, as defined by RFC 6429.
It panics if nw_tcp_options_set_persist_timeout is unavailable at run time; use TryNWTCPOptionsSetPersistTimeout to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_persist_timeout(_:_:)
func NWTCPOptionsSetRetransmitConnectionDropTime ¶ added in v0.6.3
func NWTCPOptionsSetRetransmitConnectionDropTime(options NWProtocolOptions, retransmit_connection_drop_time uint32)
NWTCPOptionsSetRetransmitConnectionDropTime sets the number of seconds that TCP waits between retransmission attempts.
It panics if nw_tcp_options_set_retransmit_connection_drop_time is unavailable at run time; use TryNWTCPOptionsSetRetransmitConnectionDropTime to get an error instead.
func NWTCPOptionsSetRetransmitFinDrop ¶ added in v0.6.3
func NWTCPOptionsSetRetransmitFinDrop(options NWProtocolOptions, retransmit_fin_drop bool)
NWTCPOptionsSetRetransmitFinDrop causes TCP to drop its connection after not receiving an ACK after a FIN.
It panics if nw_tcp_options_set_retransmit_fin_drop is unavailable at run time; use TryNWTCPOptionsSetRetransmitFinDrop to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_retransmit_fin_drop(_:_:)
func NWTLSCopySecProtocolMetadata ¶ added in v0.6.3
func NWTLSCopySecProtocolMetadata(metadata NWProtocolMetadata) security.Sec_protocol_metadata_t
NWTLSCopySecProtocolMetadata accesses the result of the TLS handshake.
It panics if nw_tls_copy_sec_protocol_metadata is unavailable at run time; use TryNWTLSCopySecProtocolMetadata to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tls_copy_sec_protocol_metadata(_:)
func NWTLSCopySecProtocolOptions ¶ added in v0.6.3
func NWTLSCopySecProtocolOptions(options NWProtocolOptions) security.Sec_protocol_options_t
NWTLSCopySecProtocolOptions accesses the handshake security options TLS will use.
It panics if nw_tls_copy_sec_protocol_options is unavailable at run time; use TryNWTLSCopySecProtocolOptions to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tls_copy_sec_protocol_options(_:)
func NWTXTRecordAccessBytesFunc ¶ added in v0.6.3
func NWTXTRecordAccessBytesFunc(txt_record NWTXTRecord, access_bytes NWTXTRecordAccessBytes) bool
NWTXTRecordAccessBytesFunc accesses the raw bytes contained within a TXT record.
It panics if nw_txt_record_access_bytes is unavailable at run time; use TryNWTXTRecordAccessBytesFunc to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_access_bytes(_:_:)
func NWTXTRecordAccessKeyFunc ¶ added in v0.6.3
func NWTXTRecordAccessKeyFunc(txt_record NWTXTRecord, key string, access_value NWTXTRecordAccessKey) bool
NWTXTRecordAccessKeyFunc accesses the value for a specific key in a TXT record dictionary.
It panics if nw_txt_record_access_key is unavailable at run time; use TryNWTXTRecordAccessKeyFunc to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_access_key(_:_:_:)
func NWTXTRecordApply ¶ added in v0.6.3
func NWTXTRecordApply(txt_record NWTXTRecord, applier NWTXTRecordApplier) bool
NWTXTRecordApply iterates through all keys in a TXT record dictionary.
It panics if nw_txt_record_apply is unavailable at run time; use TryNWTXTRecordApply to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_apply(_:_:)
func NWTXTRecordGetKeyCount ¶ added in v0.6.3
func NWTXTRecordGetKeyCount(txt_record NWTXTRecord) uintptr
NWTXTRecordGetKeyCount accesses the number of keys stored in the TXT record dictionary.
It panics if nw_txt_record_get_key_count is unavailable at run time; use TryNWTXTRecordGetKeyCount to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_get_key_count(_:)
func NWTXTRecordIsDictionary ¶ added in v0.6.3
func NWTXTRecordIsDictionary(txt_record NWTXTRecord) bool
NWTXTRecordIsDictionary checks whether a TXT record conforms to a dictionary format.
It panics if nw_txt_record_is_dictionary is unavailable at run time; use TryNWTXTRecordIsDictionary to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_is_dictionary(_:)
func NWTXTRecordIsEqual ¶ added in v0.6.3
func NWTXTRecordIsEqual(left NWTXTRecord, right NWTXTRecord) bool
NWTXTRecordIsEqual checks whether two TXT records are equivalent.
It panics if nw_txt_record_is_equal is unavailable at run time; use TryNWTXTRecordIsEqual to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_is_equal(_:_:)
func NWTXTRecordRemoveKey ¶ added in v0.6.3
func NWTXTRecordRemoveKey(txt_record NWTXTRecord, key string) bool
NWTXTRecordRemoveKey removes a data value in a TXT record dictionary.
It panics if nw_txt_record_remove_key is unavailable at run time; use TryNWTXTRecordRemoveKey to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_remove_key(_:_:)
func NWTXTRecordSetKey ¶ added in v0.6.3
func NWTXTRecordSetKey(txt_record NWTXTRecord, key string, value []byte, value_len uintptr) bool
NWTXTRecordSetKey sets a data value in a TXT record dictionary.
It panics if nw_txt_record_set_key is unavailable at run time; use TryNWTXTRecordSetKey to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_set_key(_:_:_:_:)
func NWUDPOptionsSetPreferNoChecksum ¶ added in v0.6.3
func NWUDPOptionsSetPreferNoChecksum(options NWProtocolOptions, prefer_no_checksum bool)
NWUDPOptionsSetPreferNoChecksum configures the connection to not send UDP checksums.
It panics if nw_udp_options_set_prefer_no_checksum is unavailable at run time; use TryNWUDPOptionsSetPreferNoChecksum to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_udp_options_set_prefer_no_checksum(_:_:)
func NWWsMetadataSetCloseCode ¶ added in v0.6.3
func NWWsMetadataSetCloseCode(metadata NWProtocolMetadata, close_code NWWsCloseCode)
NWWsMetadataSetCloseCode sets a close code on a WebSocket message.
It panics if nw_ws_metadata_set_close_code is unavailable at run time; use TryNWWsMetadataSetCloseCode to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_metadata_set_close_code(_:_:)
func NWWsMetadataSetPongHandler ¶ added in v0.6.3
func NWWsMetadataSetPongHandler(metadata NWProtocolMetadata, client_queue dispatch.Queue, pong_handler NWWsPongHandler)
NWWsMetadataSetPongHandler sets a handler on a Ping message to be invoked when the corresponding Pong message is received.
It panics if nw_ws_metadata_set_pong_handler is unavailable at run time; use TryNWWsMetadataSetPongHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_metadata_set_pong_handler(_:_:_:)
func NWWsOptionsAddAdditionalHeader ¶ added in v0.6.3
func NWWsOptionsAddAdditionalHeader(options NWProtocolOptions, name string, value string)
NWWsOptionsAddAdditionalHeader adds additional HTTP header fields to be sent by the client during the WebSocket handshake.
It panics if nw_ws_options_add_additional_header is unavailable at run time; use TryNWWsOptionsAddAdditionalHeader to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_options_add_additional_header(_:_:_:)
func NWWsOptionsAddSubprotocol ¶ added in v0.6.3
func NWWsOptionsAddSubprotocol(options NWProtocolOptions, subprotocol string)
NWWsOptionsAddSubprotocol adds to the list of supported application protocols that will be presented to a WebSocket server during connection establishment.
It panics if nw_ws_options_add_subprotocol is unavailable at run time; use TryNWWsOptionsAddSubprotocol to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_options_add_subprotocol(_:_:)
func NWWsOptionsSetAutoReplyPing ¶ added in v0.6.3
func NWWsOptionsSetAutoReplyPing(options NWProtocolOptions, auto_reply_ping bool)
NWWsOptionsSetAutoReplyPing configures the connection to automatically reply to Ping messages instead of delivering them to you.
It panics if nw_ws_options_set_auto_reply_ping is unavailable at run time; use TryNWWsOptionsSetAutoReplyPing to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_options_set_auto_reply_ping(_:_:)
func NWWsOptionsSetClientRequestHandler ¶ added in v0.6.3
func NWWsOptionsSetClientRequestHandler(options NWProtocolOptions, client_queue dispatch.Queue, handler NWWsClientRequestHandler)
NWWsOptionsSetClientRequestHandler sets a handler to react to as a server to inbound WebSocket client handshakes.
It panics if nw_ws_options_set_client_request_handler is unavailable at run time; use TryNWWsOptionsSetClientRequestHandler to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_options_set_client_request_handler(_:_:_:)
func NWWsOptionsSetMaximumMessageSize ¶ added in v0.6.3
func NWWsOptionsSetMaximumMessageSize(options NWProtocolOptions, maximum_message_size uintptr)
NWWsOptionsSetMaximumMessageSize sets the maximum allowed message size, in bytes, to be received by the WebSocket connection.
It panics if nw_ws_options_set_maximum_message_size is unavailable at run time; use TryNWWsOptionsSetMaximumMessageSize to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_options_set_maximum_message_size(_:_:)
func NWWsOptionsSetSkipHandshake ¶ added in v0.6.3
func NWWsOptionsSetSkipHandshake(options NWProtocolOptions, skip_handshake bool)
NWWsOptionsSetSkipHandshake specifies whether the WebSocket protocol skips its handshake and begins framing data once the underlying connection is established.
It panics if nw_ws_options_set_skip_handshake is unavailable at run time; use TryNWWsOptionsSetSkipHandshake to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_options_set_skip_handshake(_:_:)
func NWWsRequestEnumerateAdditionalHeaders ¶ added in v0.6.3
func NWWsRequestEnumerateAdditionalHeaders(request NWWsRequest, enumerator NWWsAdditionalHeaderEnumerator) bool
NWWsRequestEnumerateAdditionalHeaders enumerates additional HTTP headers in a WebSocket message.
It panics if nw_ws_request_enumerate_additional_headers is unavailable at run time; use TryNWWsRequestEnumerateAdditionalHeaders to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_request_enumerate_additional_headers(_:_:)
func NWWsRequestEnumerateSubprotocols ¶ added in v0.6.3
func NWWsRequestEnumerateSubprotocols(request NWWsRequest, enumerator NWWsSubprotocolEnumerator) bool
NWWsRequestEnumerateSubprotocols enumerates the supported subprotocols in a WebSocket message.
It panics if nw_ws_request_enumerate_subprotocols is unavailable at run time; use TryNWWsRequestEnumerateSubprotocols to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_request_enumerate_subprotocols(_:_:)
func NWWsResponseAddAdditionalHeader ¶ added in v0.6.3
func NWWsResponseAddAdditionalHeader(response NWWsResponse, name string, value string)
NWWsResponseAddAdditionalHeader adds an additional HTTP header to a WebSocket server response.
It panics if nw_ws_response_add_additional_header is unavailable at run time; use TryNWWsResponseAddAdditionalHeader to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_response_add_additional_header(_:_:_:)
func NWWsResponseEnumerateAdditionalHeaders ¶ added in v0.6.3
func NWWsResponseEnumerateAdditionalHeaders(response NWWsResponse, enumerator NWWsAdditionalHeaderEnumerator) bool
NWWsResponseEnumerateAdditionalHeaders enumerates the additional HTTP headers in a WebSocket server response.
It panics if nw_ws_response_enumerate_additional_headers is unavailable at run time; use TryNWWsResponseEnumerateAdditionalHeaders to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_response_enumerate_additional_headers(_:_:)
func NWWsResponseGetSelectedSubprotocol ¶ added in v0.6.3
func NWWsResponseGetSelectedSubprotocol(response NWWsResponse) *byte
NWWsResponseGetSelectedSubprotocol accesses the selected subprotocol in a WebSocket server response.
It panics if nw_ws_response_get_selected_subprotocol is unavailable at run time; use TryNWWsResponseGetSelectedSubprotocol to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_response_get_selected_subprotocol(_:)
func NewNWBrowseResultEnumerateInterfaceBlock ¶ added in v0.6.16
func NewNWBrowseResultEnumerateInterfaceBlock(handler NWBrowseResultEnumerateInterface) (objc.ID, func())
NewNWBrowseResultEnumerateInterfaceBlock wraps a Go NWBrowseResultEnumerateInterface as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWBrowserBrowseResultsChangedHandlerBlock ¶ added in v0.6.16
func NewNWBrowserBrowseResultsChangedHandlerBlock(handler NWBrowserBrowseResultsChangedHandler) (objc.ID, func())
NewNWBrowserBrowseResultsChangedHandlerBlock wraps a Go NWBrowserBrowseResultsChangedHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWBrowserStateChangedHandlerBlock ¶ added in v0.6.16
func NewNWBrowserStateChangedHandlerBlock(handler NWBrowserStateChangedHandler) (objc.ID, func())
NewNWBrowserStateChangedHandlerBlock wraps a Go NWBrowserStateChangedHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWConnectionBooleanEventHandlerBlock ¶ added in v0.6.16
func NewNWConnectionBooleanEventHandlerBlock(handler NWConnectionBooleanEventHandler) (objc.ID, func())
NewNWConnectionBooleanEventHandlerBlock wraps a Go NWConnectionBooleanEventHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWConnectionGroupNewConnectionHandlerBlock ¶ added in v0.6.16
func NewNWConnectionGroupNewConnectionHandlerBlock(handler NWConnectionGroupNewConnectionHandler) (objc.ID, func())
NewNWConnectionGroupNewConnectionHandlerBlock wraps a Go NWConnectionGroupNewConnectionHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWConnectionGroupReceiveHandlerBlock ¶ added in v0.6.16
func NewNWConnectionGroupReceiveHandlerBlock(handler NWConnectionGroupReceiveHandler) (objc.ID, func())
NewNWConnectionGroupReceiveHandlerBlock wraps a Go NWConnectionGroupReceiveHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWConnectionGroupSendCompletionBlock ¶ added in v0.6.16
func NewNWConnectionGroupSendCompletionBlock(handler NWConnectionGroupSendCompletion) (objc.ID, func())
NewNWConnectionGroupSendCompletionBlock wraps a Go NWConnectionGroupSendCompletion as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWConnectionGroupStateChangedHandlerBlock ¶ added in v0.6.16
func NewNWConnectionGroupStateChangedHandlerBlock(handler NWConnectionGroupStateChangedHandler) (objc.ID, func())
NewNWConnectionGroupStateChangedHandlerBlock wraps a Go NWConnectionGroupStateChangedHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWConnectionPathEventHandlerBlock ¶ added in v0.6.16
func NewNWConnectionPathEventHandlerBlock(handler NWConnectionPathEventHandler) (objc.ID, func())
NewNWConnectionPathEventHandlerBlock wraps a Go NWConnectionPathEventHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWConnectionReceiveCompletionBlock ¶ added in v0.6.16
func NewNWConnectionReceiveCompletionBlock(handler NWConnectionReceiveCompletion) (objc.ID, func())
NewNWConnectionReceiveCompletionBlock wraps a Go NWConnectionReceiveCompletion as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWConnectionSendCompletionBlock ¶ added in v0.6.16
func NewNWConnectionSendCompletionBlock(handler NWConnectionSendCompletion) (objc.ID, func())
NewNWConnectionSendCompletionBlock wraps a Go NWConnectionSendCompletion as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWConnectionStateChangedHandlerBlock ¶ added in v0.6.16
func NewNWConnectionStateChangedHandlerBlock(handler NWConnectionStateChangedHandler) (objc.ID, func())
NewNWConnectionStateChangedHandlerBlock wraps a Go NWConnectionStateChangedHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWDataTransferReportCollectBlock ¶ added in v0.6.16
func NewNWDataTransferReportCollectBlock(handler NWDataTransferReportCollectBlock) (objc.ID, func())
NewNWDataTransferReportCollectBlock wraps a Go NWDataTransferReportCollectBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWEstablishmentReportAccessBlock ¶ added in v0.6.16
func NewNWEstablishmentReportAccessBlock(handler NWEstablishmentReportAccessBlock) (objc.ID, func())
NewNWEstablishmentReportAccessBlock wraps a Go NWEstablishmentReportAccessBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWEthernetChannelReceiveHandlerBlock ¶ added in v0.6.16
func NewNWEthernetChannelReceiveHandlerBlock(handler NWEthernetChannelReceiveHandler) (objc.ID, func())
NewNWEthernetChannelReceiveHandlerBlock wraps a Go NWEthernetChannelReceiveHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWEthernetChannelSendCompletionBlock ¶ added in v0.6.16
func NewNWEthernetChannelSendCompletionBlock(handler NWEthernetChannelSendCompletion) (objc.ID, func())
NewNWEthernetChannelSendCompletionBlock wraps a Go NWEthernetChannelSendCompletion as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWEthernetChannelStateChangedHandlerBlock ¶ added in v0.6.16
func NewNWEthernetChannelStateChangedHandlerBlock(handler NWEthernetChannelStateChangedHandler) (objc.ID, func())
NewNWEthernetChannelStateChangedHandlerBlock wraps a Go NWEthernetChannelStateChangedHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWFramerBlock ¶ added in v0.6.16
func NewNWFramerBlock(handler NWFramerBlock) (objc.ID, func())
NewNWFramerBlock wraps a Go NWFramerBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWFramerCleanupHandlerBlock ¶ added in v0.6.16
func NewNWFramerCleanupHandlerBlock(handler NWFramerCleanupHandler) (objc.ID, func())
NewNWFramerCleanupHandlerBlock wraps a Go NWFramerCleanupHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWFramerInputHandlerBlock ¶ added in v0.6.16
func NewNWFramerInputHandlerBlock(handler NWFramerInputHandler) (objc.ID, func())
NewNWFramerInputHandlerBlock wraps a Go NWFramerInputHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWFramerMessageDisposeValueBlock ¶ added in v0.6.16
func NewNWFramerMessageDisposeValueBlock(handler NWFramerMessageDisposeValue) (objc.ID, func())
NewNWFramerMessageDisposeValueBlock wraps a Go NWFramerMessageDisposeValue as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWFramerOutputHandlerBlock ¶ added in v0.6.16
func NewNWFramerOutputHandlerBlock(handler NWFramerOutputHandler) (objc.ID, func())
NewNWFramerOutputHandlerBlock wraps a Go NWFramerOutputHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWFramerStartHandlerBlock ¶ added in v0.6.16
func NewNWFramerStartHandlerBlock(handler NWFramerStartHandler) (objc.ID, func())
NewNWFramerStartHandlerBlock wraps a Go NWFramerStartHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWFramerStopHandlerBlock ¶ added in v0.6.16
func NewNWFramerStopHandlerBlock(handler NWFramerStopHandler) (objc.ID, func())
NewNWFramerStopHandlerBlock wraps a Go NWFramerStopHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWFramerWakeupHandlerBlock ¶ added in v0.6.16
func NewNWFramerWakeupHandlerBlock(handler NWFramerWakeupHandler) (objc.ID, func())
NewNWFramerWakeupHandlerBlock wraps a Go NWFramerWakeupHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWGroupDescriptorEnumerateEndpointsBlock ¶ added in v0.6.16
func NewNWGroupDescriptorEnumerateEndpointsBlock(handler NWGroupDescriptorEnumerateEndpointsBlock) (objc.ID, func())
NewNWGroupDescriptorEnumerateEndpointsBlock wraps a Go NWGroupDescriptorEnumerateEndpointsBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWListenerAdvertisedEndpointChangedHandlerBlock ¶ added in v0.6.16
func NewNWListenerAdvertisedEndpointChangedHandlerBlock(handler NWListenerAdvertisedEndpointChangedHandler) (objc.ID, func())
NewNWListenerAdvertisedEndpointChangedHandlerBlock wraps a Go NWListenerAdvertisedEndpointChangedHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWListenerNewConnectionGroupHandlerBlock ¶ added in v0.6.16
func NewNWListenerNewConnectionGroupHandlerBlock(handler NWListenerNewConnectionGroupHandler) (objc.ID, func())
NewNWListenerNewConnectionGroupHandlerBlock wraps a Go NWListenerNewConnectionGroupHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWListenerNewConnectionHandlerBlock ¶ added in v0.6.16
func NewNWListenerNewConnectionHandlerBlock(handler NWListenerNewConnectionHandler) (objc.ID, func())
NewNWListenerNewConnectionHandlerBlock wraps a Go NWListenerNewConnectionHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWListenerStateChangedHandlerBlock ¶ added in v0.6.16
func NewNWListenerStateChangedHandlerBlock(handler NWListenerStateChangedHandler) (objc.ID, func())
NewNWListenerStateChangedHandlerBlock wraps a Go NWListenerStateChangedHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWParametersConfigureProtocolBlock ¶ added in v0.6.16
func NewNWParametersConfigureProtocolBlock(handler NWParametersConfigureProtocolBlock) (objc.ID, func())
NewNWParametersConfigureProtocolBlock wraps a Go NWParametersConfigureProtocolBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWParametersIterateInterfaceTypesBlock ¶ added in v0.6.16
func NewNWParametersIterateInterfaceTypesBlock(handler NWParametersIterateInterfaceTypesBlock) (objc.ID, func())
NewNWParametersIterateInterfaceTypesBlock wraps a Go NWParametersIterateInterfaceTypesBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWParametersIterateInterfacesBlock ¶ added in v0.6.16
func NewNWParametersIterateInterfacesBlock(handler NWParametersIterateInterfacesBlock) (objc.ID, func())
NewNWParametersIterateInterfacesBlock wraps a Go NWParametersIterateInterfacesBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWPathEnumerateGatewaysBlock ¶ added in v0.6.16
func NewNWPathEnumerateGatewaysBlock(handler NWPathEnumerateGatewaysBlock) (objc.ID, func())
NewNWPathEnumerateGatewaysBlock wraps a Go NWPathEnumerateGatewaysBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWPathEnumerateInterfacesBlock ¶ added in v0.6.16
func NewNWPathEnumerateInterfacesBlock(handler NWPathEnumerateInterfacesBlock) (objc.ID, func())
NewNWPathEnumerateInterfacesBlock wraps a Go NWPathEnumerateInterfacesBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWPathMonitorCancelHandlerBlock ¶ added in v0.6.16
func NewNWPathMonitorCancelHandlerBlock(handler NWPathMonitorCancelHandler) (objc.ID, func())
NewNWPathMonitorCancelHandlerBlock wraps a Go NWPathMonitorCancelHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWPathMonitorUpdateHandlerBlock ¶ added in v0.6.16
func NewNWPathMonitorUpdateHandlerBlock(handler NWPathMonitorUpdateHandler) (objc.ID, func())
NewNWPathMonitorUpdateHandlerBlock wraps a Go NWPathMonitorUpdateHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWProtocolStackIterateProtocolsBlock ¶ added in v0.6.16
func NewNWProtocolStackIterateProtocolsBlock(handler NWProtocolStackIterateProtocolsBlock) (objc.ID, func())
NewNWProtocolStackIterateProtocolsBlock wraps a Go NWProtocolStackIterateProtocolsBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWProxyDomainEnumeratorBlock ¶ added in v0.6.16
func NewNWProxyDomainEnumeratorBlock(handler NWProxyDomainEnumerator) (objc.ID, func())
NewNWProxyDomainEnumeratorBlock wraps a Go NWProxyDomainEnumerator as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWReportResolutionReportEnumeratorBlock ¶ added in v0.6.16
func NewNWReportResolutionReportEnumeratorBlock(handler NWReportResolutionReportEnumerator) (objc.ID, func())
NewNWReportResolutionReportEnumeratorBlock wraps a Go NWReportResolutionReportEnumerator as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWWsClientRequestHandlerBlock ¶ added in v0.6.16
func NewNWWsClientRequestHandlerBlock(handler NWWsClientRequestHandler) (objc.ID, func())
NewNWWsClientRequestHandlerBlock wraps a Go NWWsClientRequestHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWWsPongHandlerBlock ¶ added in v0.6.16
func NewNWWsPongHandlerBlock(handler NWWsPongHandler) (objc.ID, func())
NewNWWsPongHandlerBlock wraps a Go NWWsPongHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewNWWsSubprotocolEnumeratorBlock ¶ added in v0.6.16
func NewNWWsSubprotocolEnumeratorBlock(handler NWWsSubprotocolEnumerator) (objc.ID, func())
NewNWWsSubprotocolEnumeratorBlock wraps a Go NWWsSubprotocolEnumerator as an Objective-C block. The caller must defer the returned cleanup function.
func SymbolAddress ¶
SymbolAddress returns the address of name in Network, whether or not this package generated a binding for it.
What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.
The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.
func TryNWAdvertiseDescriptorGetApplicationServiceName ¶
func TryNWAdvertiseDescriptorGetApplicationServiceName(advertise_descriptor NWAdvertiseDescriptor) (*byte, error)
TryNWAdvertiseDescriptorGetApplicationServiceName is like NWAdvertiseDescriptorGetApplicationServiceName but returns an error instead of panicking if nw_advertise_descriptor_get_application_service_name is unavailable at run time.
func TryNWAdvertiseDescriptorGetNoAutoRename ¶
func TryNWAdvertiseDescriptorGetNoAutoRename(advertise_descriptor NWAdvertiseDescriptor) (bool, error)
TryNWAdvertiseDescriptorGetNoAutoRename is like NWAdvertiseDescriptorGetNoAutoRename but returns an error instead of panicking if nw_advertise_descriptor_get_no_auto_rename is unavailable at run time.
func TryNWAdvertiseDescriptorSetNoAutoRename ¶
func TryNWAdvertiseDescriptorSetNoAutoRename(advertise_descriptor NWAdvertiseDescriptor, no_auto_rename bool) error
TryNWAdvertiseDescriptorSetNoAutoRename is like NWAdvertiseDescriptorSetNoAutoRename but returns an error instead of panicking if nw_advertise_descriptor_set_no_auto_rename is unavailable at run time.
func TryNWAdvertiseDescriptorSetTXTRecord ¶
func TryNWAdvertiseDescriptorSetTXTRecord(advertise_descriptor NWAdvertiseDescriptor, txt_record unsafe.Pointer, txt_length uintptr) error
TryNWAdvertiseDescriptorSetTXTRecord is like NWAdvertiseDescriptorSetTXTRecord but returns an error instead of panicking if nw_advertise_descriptor_set_txt_record is unavailable at run time.
func TryNWAdvertiseDescriptorSetTXTRecordObject ¶
func TryNWAdvertiseDescriptorSetTXTRecordObject(advertise_descriptor NWAdvertiseDescriptor, txt_record NWTXTRecord) error
TryNWAdvertiseDescriptorSetTXTRecordObject is like NWAdvertiseDescriptorSetTXTRecordObject but returns an error instead of panicking if nw_advertise_descriptor_set_txt_record_object is unavailable at run time.
func TryNWBrowseDescriptorGetApplicationServiceName ¶
func TryNWBrowseDescriptorGetApplicationServiceName(descriptor NWBrowseDescriptor) (*byte, error)
TryNWBrowseDescriptorGetApplicationServiceName is like NWBrowseDescriptorGetApplicationServiceName but returns an error instead of panicking if nw_browse_descriptor_get_application_service_name is unavailable at run time.
func TryNWBrowseDescriptorGetBonjourServiceDomain ¶
func TryNWBrowseDescriptorGetBonjourServiceDomain(descriptor NWBrowseDescriptor) (*byte, error)
TryNWBrowseDescriptorGetBonjourServiceDomain is like NWBrowseDescriptorGetBonjourServiceDomain but returns an error instead of panicking if nw_browse_descriptor_get_bonjour_service_domain is unavailable at run time.
func TryNWBrowseDescriptorGetBonjourServiceType ¶
func TryNWBrowseDescriptorGetBonjourServiceType(descriptor NWBrowseDescriptor) (*byte, error)
TryNWBrowseDescriptorGetBonjourServiceType is like NWBrowseDescriptorGetBonjourServiceType but returns an error instead of panicking if nw_browse_descriptor_get_bonjour_service_type is unavailable at run time.
func TryNWBrowseDescriptorGetIncludeTXTRecord ¶
func TryNWBrowseDescriptorGetIncludeTXTRecord(descriptor NWBrowseDescriptor) (bool, error)
TryNWBrowseDescriptorGetIncludeTXTRecord is like NWBrowseDescriptorGetIncludeTXTRecord but returns an error instead of panicking if nw_browse_descriptor_get_include_txt_record is unavailable at run time.
func TryNWBrowseDescriptorSetIncludeTXTRecord ¶
func TryNWBrowseDescriptorSetIncludeTXTRecord(descriptor NWBrowseDescriptor, include_txt_record bool) error
TryNWBrowseDescriptorSetIncludeTXTRecord is like NWBrowseDescriptorSetIncludeTXTRecord but returns an error instead of panicking if nw_browse_descriptor_set_include_txt_record is unavailable at run time.
func TryNWBrowseResultEnumerateInterfaces ¶
func TryNWBrowseResultEnumerateInterfaces(result NWBrowseResult, enumerator NWBrowseResultEnumerateInterface) error
TryNWBrowseResultEnumerateInterfaces is like NWBrowseResultEnumerateInterfaces but returns an error instead of panicking if nw_browse_result_enumerate_interfaces is unavailable at run time.
func TryNWBrowseResultGetInterfacesCount ¶
func TryNWBrowseResultGetInterfacesCount(result NWBrowseResult) (uintptr, error)
TryNWBrowseResultGetInterfacesCount is like NWBrowseResultGetInterfacesCount but returns an error instead of panicking if nw_browse_result_get_interfaces_count is unavailable at run time.
func TryNWBrowserCancel ¶
TryNWBrowserCancel is like NWBrowserCancel but returns an error instead of panicking if nw_browser_cancel is unavailable at run time.
func TryNWBrowserSetBrowseResultsChangedHandler ¶
func TryNWBrowserSetBrowseResultsChangedHandler(browser NWBrowser, handler NWBrowserBrowseResultsChangedHandler) error
TryNWBrowserSetBrowseResultsChangedHandler is like NWBrowserSetBrowseResultsChangedHandler but returns an error instead of panicking if nw_browser_set_browse_results_changed_handler is unavailable at run time.
func TryNWBrowserSetQueue ¶
TryNWBrowserSetQueue is like NWBrowserSetQueue but returns an error instead of panicking if nw_browser_set_queue is unavailable at run time.
func TryNWBrowserSetStateChangedHandler ¶
func TryNWBrowserSetStateChangedHandler(browser NWBrowser, state_changed_handler NWBrowserStateChangedHandler) error
TryNWBrowserSetStateChangedHandler is like NWBrowserSetStateChangedHandler but returns an error instead of panicking if nw_browser_set_state_changed_handler is unavailable at run time.
func TryNWBrowserStart ¶
TryNWBrowserStart is like NWBrowserStart but returns an error instead of panicking if nw_browser_start is unavailable at run time.
func TryNWConnectionAccessEstablishmentReport ¶
func TryNWConnectionAccessEstablishmentReport(connection NWConnection, queue dispatch.Queue, access_block NWEstablishmentReportAccessBlock) error
TryNWConnectionAccessEstablishmentReport is like NWConnectionAccessEstablishmentReport but returns an error instead of panicking if nw_connection_access_establishment_report is unavailable at run time.
func TryNWConnectionBatch ¶
func TryNWConnectionBatch(connection NWConnection, batch_block unsafe.Pointer) error
TryNWConnectionBatch is like NWConnectionBatch but returns an error instead of panicking if nw_connection_batch is unavailable at run time.
func TryNWConnectionCancel ¶
func TryNWConnectionCancel(connection NWConnection) error
TryNWConnectionCancel is like NWConnectionCancel but returns an error instead of panicking if nw_connection_cancel is unavailable at run time.
func TryNWConnectionCancelCurrentEndpoint ¶
func TryNWConnectionCancelCurrentEndpoint(connection NWConnection) error
TryNWConnectionCancelCurrentEndpoint is like NWConnectionCancelCurrentEndpoint but returns an error instead of panicking if nw_connection_cancel_current_endpoint is unavailable at run time.
func TryNWConnectionCopyDescription ¶
func TryNWConnectionCopyDescription(connection NWConnection) (*byte, error)
TryNWConnectionCopyDescription is like NWConnectionCopyDescription but returns an error instead of panicking if nw_connection_copy_description is unavailable at run time.
func TryNWConnectionForceCancel ¶
func TryNWConnectionForceCancel(connection NWConnection) error
TryNWConnectionForceCancel is like NWConnectionForceCancel but returns an error instead of panicking if nw_connection_force_cancel is unavailable at run time.
func TryNWConnectionGetMaximumDatagramSize ¶
func TryNWConnectionGetMaximumDatagramSize(connection NWConnection) (uint32, error)
TryNWConnectionGetMaximumDatagramSize is like NWConnectionGetMaximumDatagramSize but returns an error instead of panicking if nw_connection_get_maximum_datagram_size is unavailable at run time.
func TryNWConnectionGroupCancel ¶
func TryNWConnectionGroupCancel(group NWConnectionGroup) error
TryNWConnectionGroupCancel is like NWConnectionGroupCancel but returns an error instead of panicking if nw_connection_group_cancel is unavailable at run time.
func TryNWConnectionGroupReinsertExtractedConnection ¶
func TryNWConnectionGroupReinsertExtractedConnection(group NWConnectionGroup, connection NWConnection) (bool, error)
TryNWConnectionGroupReinsertExtractedConnection is like NWConnectionGroupReinsertExtractedConnection but returns an error instead of panicking if nw_connection_group_reinsert_extracted_connection is unavailable at run time.
func TryNWConnectionGroupReply ¶
func TryNWConnectionGroupReply(group NWConnectionGroup, inbound_message NWContentContext, outbound_message NWContentContext, content dispatch.Data) error
TryNWConnectionGroupReply is like NWConnectionGroupReply but returns an error instead of panicking if nw_connection_group_reply is unavailable at run time.
func TryNWConnectionGroupSendMessage ¶
func TryNWConnectionGroupSendMessage(group NWConnectionGroup, content dispatch.Data, endpoint NWEndpoint, context NWContentContext, completion NWConnectionGroupSendCompletion) error
TryNWConnectionGroupSendMessage is like NWConnectionGroupSendMessage but returns an error instead of panicking if nw_connection_group_send_message is unavailable at run time.
func TryNWConnectionGroupSetNewConnectionHandler ¶
func TryNWConnectionGroupSetNewConnectionHandler(group NWConnectionGroup, new_connection_handler NWConnectionGroupNewConnectionHandler) error
TryNWConnectionGroupSetNewConnectionHandler is like NWConnectionGroupSetNewConnectionHandler but returns an error instead of panicking if nw_connection_group_set_new_connection_handler is unavailable at run time.
func TryNWConnectionGroupSetQueue ¶
func TryNWConnectionGroupSetQueue(group NWConnectionGroup, queue dispatch.Queue) error
TryNWConnectionGroupSetQueue is like NWConnectionGroupSetQueue but returns an error instead of panicking if nw_connection_group_set_queue is unavailable at run time.
func TryNWConnectionGroupSetReceiveHandler ¶
func TryNWConnectionGroupSetReceiveHandler(group NWConnectionGroup, maximum_message_size uint32, reject_oversized_messages bool, receive_handler NWConnectionGroupReceiveHandler) error
TryNWConnectionGroupSetReceiveHandler is like NWConnectionGroupSetReceiveHandler but returns an error instead of panicking if nw_connection_group_set_receive_handler is unavailable at run time.
func TryNWConnectionGroupSetStateChangedHandler ¶
func TryNWConnectionGroupSetStateChangedHandler(group NWConnectionGroup, state_changed_handler NWConnectionGroupStateChangedHandler) error
TryNWConnectionGroupSetStateChangedHandler is like NWConnectionGroupSetStateChangedHandler but returns an error instead of panicking if nw_connection_group_set_state_changed_handler is unavailable at run time.
func TryNWConnectionGroupStart ¶
func TryNWConnectionGroupStart(group NWConnectionGroup) error
TryNWConnectionGroupStart is like NWConnectionGroupStart but returns an error instead of panicking if nw_connection_group_start is unavailable at run time.
func TryNWConnectionReceive ¶
func TryNWConnectionReceive(connection NWConnection, minimum_incomplete_length uint32, maximum_length uint32, completion NWConnectionReceiveCompletion) error
TryNWConnectionReceive is like NWConnectionReceive but returns an error instead of panicking if nw_connection_receive is unavailable at run time.
func TryNWConnectionReceiveMessage ¶
func TryNWConnectionReceiveMessage(connection NWConnection, completion NWConnectionReceiveCompletion) error
TryNWConnectionReceiveMessage is like NWConnectionReceiveMessage but returns an error instead of panicking if nw_connection_receive_message is unavailable at run time.
func TryNWConnectionRestart ¶
func TryNWConnectionRestart(connection NWConnection) error
TryNWConnectionRestart is like NWConnectionRestart but returns an error instead of panicking if nw_connection_restart is unavailable at run time.
func TryNWConnectionSend ¶
func TryNWConnectionSend(connection NWConnection, content dispatch.Data, context NWContentContext, is_complete bool, completion NWConnectionSendCompletion) error
TryNWConnectionSend is like NWConnectionSend but returns an error instead of panicking if nw_connection_send is unavailable at run time.
func TryNWConnectionSetBetterPathAvailableHandler ¶
func TryNWConnectionSetBetterPathAvailableHandler(connection NWConnection, handler NWConnectionBooleanEventHandler) error
TryNWConnectionSetBetterPathAvailableHandler is like NWConnectionSetBetterPathAvailableHandler but returns an error instead of panicking if nw_connection_set_better_path_available_handler is unavailable at run time.
func TryNWConnectionSetPathChangedHandler ¶
func TryNWConnectionSetPathChangedHandler(connection NWConnection, handler NWConnectionPathEventHandler) error
TryNWConnectionSetPathChangedHandler is like NWConnectionSetPathChangedHandler but returns an error instead of panicking if nw_connection_set_path_changed_handler is unavailable at run time.
func TryNWConnectionSetQueue ¶
func TryNWConnectionSetQueue(connection NWConnection, queue dispatch.Queue) error
TryNWConnectionSetQueue is like NWConnectionSetQueue but returns an error instead of panicking if nw_connection_set_queue is unavailable at run time.
func TryNWConnectionSetStateChangedHandler ¶
func TryNWConnectionSetStateChangedHandler(connection NWConnection, handler NWConnectionStateChangedHandler) error
TryNWConnectionSetStateChangedHandler is like NWConnectionSetStateChangedHandler but returns an error instead of panicking if nw_connection_set_state_changed_handler is unavailable at run time.
func TryNWConnectionSetViabilityChangedHandler ¶
func TryNWConnectionSetViabilityChangedHandler(connection NWConnection, handler NWConnectionBooleanEventHandler) error
TryNWConnectionSetViabilityChangedHandler is like NWConnectionSetViabilityChangedHandler but returns an error instead of panicking if nw_connection_set_viability_changed_handler is unavailable at run time.
func TryNWConnectionStart ¶
func TryNWConnectionStart(connection NWConnection) error
TryNWConnectionStart is like NWConnectionStart but returns an error instead of panicking if nw_connection_start is unavailable at run time.
func TryNWContentContextForeachProtocolMetadata ¶
func TryNWContentContextForeachProtocolMetadata(context NWContentContext) error
TryNWContentContextForeachProtocolMetadata is like NWContentContextForeachProtocolMetadata but returns an error instead of panicking if nw_content_context_foreach_protocol_metadata is unavailable at run time.
func TryNWContentContextGetExpirationMilliseconds ¶
func TryNWContentContextGetExpirationMilliseconds(context NWContentContext) (uint64, error)
TryNWContentContextGetExpirationMilliseconds is like NWContentContextGetExpirationMilliseconds but returns an error instead of panicking if nw_content_context_get_expiration_milliseconds is unavailable at run time.
func TryNWContentContextGetIdentifier ¶
func TryNWContentContextGetIdentifier(context NWContentContext) (*byte, error)
TryNWContentContextGetIdentifier is like NWContentContextGetIdentifier but returns an error instead of panicking if nw_content_context_get_identifier is unavailable at run time.
func TryNWContentContextGetIsFinal ¶
func TryNWContentContextGetIsFinal(context NWContentContext) (bool, error)
TryNWContentContextGetIsFinal is like NWContentContextGetIsFinal but returns an error instead of panicking if nw_content_context_get_is_final is unavailable at run time.
func TryNWContentContextGetRelativePriority ¶
func TryNWContentContextGetRelativePriority(context NWContentContext) (float64, error)
TryNWContentContextGetRelativePriority is like NWContentContextGetRelativePriority but returns an error instead of panicking if nw_content_context_get_relative_priority is unavailable at run time.
func TryNWContentContextSetAntecedent ¶
func TryNWContentContextSetAntecedent(context NWContentContext, antecedent_context NWContentContext) error
TryNWContentContextSetAntecedent is like NWContentContextSetAntecedent but returns an error instead of panicking if nw_content_context_set_antecedent is unavailable at run time.
func TryNWContentContextSetExpirationMilliseconds ¶
func TryNWContentContextSetExpirationMilliseconds(context NWContentContext, expiration_milliseconds uint64) error
TryNWContentContextSetExpirationMilliseconds is like NWContentContextSetExpirationMilliseconds but returns an error instead of panicking if nw_content_context_set_expiration_milliseconds is unavailable at run time.
func TryNWContentContextSetIsFinal ¶
func TryNWContentContextSetIsFinal(context NWContentContext, is_final bool) error
TryNWContentContextSetIsFinal is like NWContentContextSetIsFinal but returns an error instead of panicking if nw_content_context_set_is_final is unavailable at run time.
func TryNWContentContextSetMetadataForProtocol ¶
func TryNWContentContextSetMetadataForProtocol(context NWContentContext, protocol_metadata NWProtocolMetadata) error
TryNWContentContextSetMetadataForProtocol is like NWContentContextSetMetadataForProtocol but returns an error instead of panicking if nw_content_context_set_metadata_for_protocol is unavailable at run time.
func TryNWContentContextSetRelativePriority ¶
func TryNWContentContextSetRelativePriority(context NWContentContext, relative_priority float64) error
TryNWContentContextSetRelativePriority is like NWContentContextSetRelativePriority but returns an error instead of panicking if nw_content_context_set_relative_priority is unavailable at run time.
func TryNWDataTransferReportCollect ¶
func TryNWDataTransferReportCollect(report NWDataTransferReport, queue dispatch.Queue, collect_block NWDataTransferReportCollectBlock) error
TryNWDataTransferReportCollect is like NWDataTransferReportCollect but returns an error instead of panicking if nw_data_transfer_report_collect is unavailable at run time.
func TryNWDataTransferReportGetDurationMilliseconds ¶
func TryNWDataTransferReportGetDurationMilliseconds(report NWDataTransferReport) (uint64, error)
TryNWDataTransferReportGetDurationMilliseconds is like NWDataTransferReportGetDurationMilliseconds but returns an error instead of panicking if nw_data_transfer_report_get_duration_milliseconds is unavailable at run time.
func TryNWDataTransferReportGetPathCount ¶
func TryNWDataTransferReportGetPathCount(report NWDataTransferReport) (uint32, error)
TryNWDataTransferReportGetPathCount is like NWDataTransferReportGetPathCount but returns an error instead of panicking if nw_data_transfer_report_get_path_count is unavailable at run time.
func TryNWDataTransferReportGetReceivedApplicationByteCount ¶
func TryNWDataTransferReportGetReceivedApplicationByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetReceivedApplicationByteCount is like NWDataTransferReportGetReceivedApplicationByteCount but returns an error instead of panicking if nw_data_transfer_report_get_received_application_byte_count is unavailable at run time.
func TryNWDataTransferReportGetReceivedIPPacketCount ¶
func TryNWDataTransferReportGetReceivedIPPacketCount(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetReceivedIPPacketCount is like NWDataTransferReportGetReceivedIPPacketCount but returns an error instead of panicking if nw_data_transfer_report_get_received_ip_packet_count is unavailable at run time.
func TryNWDataTransferReportGetReceivedTransportByteCount ¶
func TryNWDataTransferReportGetReceivedTransportByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetReceivedTransportByteCount is like NWDataTransferReportGetReceivedTransportByteCount but returns an error instead of panicking if nw_data_transfer_report_get_received_transport_byte_count is unavailable at run time.
func TryNWDataTransferReportGetReceivedTransportDuplicateByteCount ¶
func TryNWDataTransferReportGetReceivedTransportDuplicateByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetReceivedTransportDuplicateByteCount is like NWDataTransferReportGetReceivedTransportDuplicateByteCount but returns an error instead of panicking if nw_data_transfer_report_get_received_transport_duplicate_byte_count is unavailable at run time.
func TryNWDataTransferReportGetReceivedTransportOutOfOrderByteCount ¶
func TryNWDataTransferReportGetReceivedTransportOutOfOrderByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetReceivedTransportOutOfOrderByteCount is like NWDataTransferReportGetReceivedTransportOutOfOrderByteCount but returns an error instead of panicking if nw_data_transfer_report_get_received_transport_out_of_order_byte_count is unavailable at run time.
func TryNWDataTransferReportGetSentApplicationByteCount ¶
func TryNWDataTransferReportGetSentApplicationByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetSentApplicationByteCount is like NWDataTransferReportGetSentApplicationByteCount but returns an error instead of panicking if nw_data_transfer_report_get_sent_application_byte_count is unavailable at run time.
func TryNWDataTransferReportGetSentIPPacketCount ¶
func TryNWDataTransferReportGetSentIPPacketCount(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetSentIPPacketCount is like NWDataTransferReportGetSentIPPacketCount but returns an error instead of panicking if nw_data_transfer_report_get_sent_ip_packet_count is unavailable at run time.
func TryNWDataTransferReportGetSentTransportByteCount ¶
func TryNWDataTransferReportGetSentTransportByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetSentTransportByteCount is like NWDataTransferReportGetSentTransportByteCount but returns an error instead of panicking if nw_data_transfer_report_get_sent_transport_byte_count is unavailable at run time.
func TryNWDataTransferReportGetSentTransportRetransmittedByteCount ¶
func TryNWDataTransferReportGetSentTransportRetransmittedByteCount(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetSentTransportRetransmittedByteCount is like NWDataTransferReportGetSentTransportRetransmittedByteCount but returns an error instead of panicking if nw_data_transfer_report_get_sent_transport_retransmitted_byte_count is unavailable at run time.
func TryNWDataTransferReportGetTransportMinimumRttMilliseconds ¶
func TryNWDataTransferReportGetTransportMinimumRttMilliseconds(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetTransportMinimumRttMilliseconds is like NWDataTransferReportGetTransportMinimumRttMilliseconds but returns an error instead of panicking if nw_data_transfer_report_get_transport_minimum_rtt_milliseconds is unavailable at run time.
func TryNWDataTransferReportGetTransportRttVariance ¶
func TryNWDataTransferReportGetTransportRttVariance(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetTransportRttVariance is like NWDataTransferReportGetTransportRttVariance but returns an error instead of panicking if nw_data_transfer_report_get_transport_rtt_variance is unavailable at run time.
func TryNWDataTransferReportGetTransportSmoothedRttMilliseconds ¶
func TryNWDataTransferReportGetTransportSmoothedRttMilliseconds(report NWDataTransferReport, path_index uint32) (uint64, error)
TryNWDataTransferReportGetTransportSmoothedRttMilliseconds is like NWDataTransferReportGetTransportSmoothedRttMilliseconds but returns an error instead of panicking if nw_data_transfer_report_get_transport_smoothed_rtt_milliseconds is unavailable at run time.
func TryNWEndpointCopyAddressString ¶
func TryNWEndpointCopyAddressString(endpoint NWEndpoint) (*byte, error)
TryNWEndpointCopyAddressString is like NWEndpointCopyAddressString but returns an error instead of panicking if nw_endpoint_copy_address_string is unavailable at run time.
func TryNWEndpointCopyPortString ¶
func TryNWEndpointCopyPortString(endpoint NWEndpoint) (*byte, error)
TryNWEndpointCopyPortString is like NWEndpointCopyPortString but returns an error instead of panicking if nw_endpoint_copy_port_string is unavailable at run time.
func TryNWEndpointGetAddress ¶
func TryNWEndpointGetAddress(endpoint NWEndpoint) (unsafe.Pointer, error)
TryNWEndpointGetAddress is like NWEndpointGetAddress but returns an error instead of panicking if nw_endpoint_get_address is unavailable at run time.
func TryNWEndpointGetBonjourServiceDomain ¶
func TryNWEndpointGetBonjourServiceDomain(endpoint NWEndpoint) (*byte, error)
TryNWEndpointGetBonjourServiceDomain is like NWEndpointGetBonjourServiceDomain but returns an error instead of panicking if nw_endpoint_get_bonjour_service_domain is unavailable at run time.
func TryNWEndpointGetBonjourServiceName ¶
func TryNWEndpointGetBonjourServiceName(endpoint NWEndpoint) (*byte, error)
TryNWEndpointGetBonjourServiceName is like NWEndpointGetBonjourServiceName but returns an error instead of panicking if nw_endpoint_get_bonjour_service_name is unavailable at run time.
func TryNWEndpointGetBonjourServiceType ¶
func TryNWEndpointGetBonjourServiceType(endpoint NWEndpoint) (*byte, error)
TryNWEndpointGetBonjourServiceType is like NWEndpointGetBonjourServiceType but returns an error instead of panicking if nw_endpoint_get_bonjour_service_type is unavailable at run time.
func TryNWEndpointGetHostname ¶
func TryNWEndpointGetHostname(endpoint NWEndpoint) (*byte, error)
TryNWEndpointGetHostname is like NWEndpointGetHostname but returns an error instead of panicking if nw_endpoint_get_hostname is unavailable at run time.
func TryNWEndpointGetPort ¶
func TryNWEndpointGetPort(endpoint NWEndpoint) (uint16, error)
TryNWEndpointGetPort is like NWEndpointGetPort but returns an error instead of panicking if nw_endpoint_get_port is unavailable at run time.
func TryNWEndpointGetSignature ¶
func TryNWEndpointGetSignature(endpoint NWEndpoint, out_signature_length *uintptr) (*uint8, error)
TryNWEndpointGetSignature is like NWEndpointGetSignature but returns an error instead of panicking if nw_endpoint_get_signature is unavailable at run time.
func TryNWEndpointGetURL ¶
func TryNWEndpointGetURL(endpoint NWEndpoint) (*byte, error)
TryNWEndpointGetURL is like NWEndpointGetURL but returns an error instead of panicking if nw_endpoint_get_url is unavailable at run time.
func TryNWErrorCopyCfError ¶
func TryNWErrorCopyCfError(err NWError) (corefoundation.CFErrorRef, error)
TryNWErrorCopyCfError is like NWErrorCopyCfError but returns an error instead of panicking if nw_error_copy_cf_error is unavailable at run time.
func TryNWErrorGetErrorCode ¶
TryNWErrorGetErrorCode is like NWErrorGetErrorCode but returns an error instead of panicking if nw_error_get_error_code is unavailable at run time.
func TryNWEstablishmentReportEnumerateProtocols ¶
func TryNWEstablishmentReportEnumerateProtocols(report NWEstablishmentReport, enumerate_block NWReportProtocolEnumerator) error
TryNWEstablishmentReportEnumerateProtocols is like NWEstablishmentReportEnumerateProtocols but returns an error instead of panicking if nw_establishment_report_enumerate_protocols is unavailable at run time.
func TryNWEstablishmentReportEnumerateResolutionReports ¶
func TryNWEstablishmentReportEnumerateResolutionReports(report NWEstablishmentReport, enumerate_block NWReportResolutionReportEnumerator) error
TryNWEstablishmentReportEnumerateResolutionReports is like NWEstablishmentReportEnumerateResolutionReports but returns an error instead of panicking if nw_establishment_report_enumerate_resolution_reports is unavailable at run time.
func TryNWEstablishmentReportEnumerateResolutions ¶
func TryNWEstablishmentReportEnumerateResolutions(report NWEstablishmentReport, enumerate_block NWReportResolutionEnumerator) error
TryNWEstablishmentReportEnumerateResolutions is like NWEstablishmentReportEnumerateResolutions but returns an error instead of panicking if nw_establishment_report_enumerate_resolutions is unavailable at run time.
func TryNWEstablishmentReportGetAttemptStartedAfterMilliseconds ¶
func TryNWEstablishmentReportGetAttemptStartedAfterMilliseconds(report NWEstablishmentReport) (uint64, error)
TryNWEstablishmentReportGetAttemptStartedAfterMilliseconds is like NWEstablishmentReportGetAttemptStartedAfterMilliseconds but returns an error instead of panicking if nw_establishment_report_get_attempt_started_after_milliseconds is unavailable at run time.
func TryNWEstablishmentReportGetDurationMilliseconds ¶
func TryNWEstablishmentReportGetDurationMilliseconds(report NWEstablishmentReport) (uint64, error)
TryNWEstablishmentReportGetDurationMilliseconds is like NWEstablishmentReportGetDurationMilliseconds but returns an error instead of panicking if nw_establishment_report_get_duration_milliseconds is unavailable at run time.
func TryNWEstablishmentReportGetPreviousAttemptCount ¶
func TryNWEstablishmentReportGetPreviousAttemptCount(report NWEstablishmentReport) (uint32, error)
TryNWEstablishmentReportGetPreviousAttemptCount is like NWEstablishmentReportGetPreviousAttemptCount but returns an error instead of panicking if nw_establishment_report_get_previous_attempt_count is unavailable at run time.
func TryNWEstablishmentReportGetProxyConfigured ¶
func TryNWEstablishmentReportGetProxyConfigured(report NWEstablishmentReport) (bool, error)
TryNWEstablishmentReportGetProxyConfigured is like NWEstablishmentReportGetProxyConfigured but returns an error instead of panicking if nw_establishment_report_get_proxy_configured is unavailable at run time.
func TryNWEstablishmentReportGetUsedProxy ¶
func TryNWEstablishmentReportGetUsedProxy(report NWEstablishmentReport) (bool, error)
TryNWEstablishmentReportGetUsedProxy is like NWEstablishmentReportGetUsedProxy but returns an error instead of panicking if nw_establishment_report_get_used_proxy is unavailable at run time.
func TryNWEthernetChannelCancel ¶
func TryNWEthernetChannelCancel(ethernet_channel NWEthernetChannel) error
TryNWEthernetChannelCancel is like NWEthernetChannelCancel but returns an error instead of panicking if nw_ethernet_channel_cancel is unavailable at run time.
func TryNWEthernetChannelGetMaximumPayloadSize ¶
func TryNWEthernetChannelGetMaximumPayloadSize(ethernet_channel NWEthernetChannel) (uint32, error)
TryNWEthernetChannelGetMaximumPayloadSize is like NWEthernetChannelGetMaximumPayloadSize but returns an error instead of panicking if nw_ethernet_channel_get_maximum_payload_size is unavailable at run time.
func TryNWEthernetChannelSend ¶
func TryNWEthernetChannelSend(ethernet_channel NWEthernetChannel, content dispatch.Data, vlan_tag uint16, remote_address NWEthernetAddress, completion NWEthernetChannelSendCompletion) error
TryNWEthernetChannelSend is like NWEthernetChannelSend but returns an error instead of panicking if nw_ethernet_channel_send is unavailable at run time.
func TryNWEthernetChannelSetQueue ¶
func TryNWEthernetChannelSetQueue(ethernet_channel NWEthernetChannel, queue dispatch.Queue) error
TryNWEthernetChannelSetQueue is like NWEthernetChannelSetQueue but returns an error instead of panicking if nw_ethernet_channel_set_queue is unavailable at run time.
func TryNWEthernetChannelSetReceiveHandler ¶
func TryNWEthernetChannelSetReceiveHandler(ethernet_channel NWEthernetChannel, handler NWEthernetChannelReceiveHandler) error
TryNWEthernetChannelSetReceiveHandler is like NWEthernetChannelSetReceiveHandler but returns an error instead of panicking if nw_ethernet_channel_set_receive_handler is unavailable at run time.
func TryNWEthernetChannelSetStateChangedHandler ¶
func TryNWEthernetChannelSetStateChangedHandler(ethernet_channel NWEthernetChannel, handler NWEthernetChannelStateChangedHandler) error
TryNWEthernetChannelSetStateChangedHandler is like NWEthernetChannelSetStateChangedHandler but returns an error instead of panicking if nw_ethernet_channel_set_state_changed_handler is unavailable at run time.
func TryNWEthernetChannelStart ¶
func TryNWEthernetChannelStart(ethernet_channel NWEthernetChannel) error
TryNWEthernetChannelStart is like NWEthernetChannelStart but returns an error instead of panicking if nw_ethernet_channel_start is unavailable at run time.
func TryNWFramerAsync ¶
func TryNWFramerAsync(framer NWFramer, async_block NWFramerBlock) error
TryNWFramerAsync is like NWFramerAsync but returns an error instead of panicking if nw_framer_async is unavailable at run time.
func TryNWFramerDeliverInput ¶
func TryNWFramerDeliverInput(framer NWFramer, input_buffer []byte, input_length uintptr, message NWFramerMessage, is_complete bool) error
TryNWFramerDeliverInput is like NWFramerDeliverInput but returns an error instead of panicking if nw_framer_deliver_input is unavailable at run time.
func TryNWFramerDeliverInputNoCopy ¶
func TryNWFramerDeliverInputNoCopy(framer NWFramer, input_length uintptr, message NWFramerMessage, is_complete bool) (bool, error)
TryNWFramerDeliverInputNoCopy is like NWFramerDeliverInputNoCopy but returns an error instead of panicking if nw_framer_deliver_input_no_copy is unavailable at run time.
func TryNWFramerMarkFailedWithError ¶
TryNWFramerMarkFailedWithError is like NWFramerMarkFailedWithError but returns an error instead of panicking if nw_framer_mark_failed_with_error is unavailable at run time.
func TryNWFramerMarkReady ¶
TryNWFramerMarkReady is like NWFramerMarkReady but returns an error instead of panicking if nw_framer_mark_ready is unavailable at run time.
func TryNWFramerMessageAccessValue ¶
func TryNWFramerMessageAccessValue(message NWFramerMessage, key string, access_value bool) (bool, error)
TryNWFramerMessageAccessValue is like NWFramerMessageAccessValue but returns an error instead of panicking if nw_framer_message_access_value is unavailable at run time.
func TryNWFramerMessageCopyObjectValue ¶
func TryNWFramerMessageCopyObjectValue(message NWFramerMessage, key string) (objectivec.Object, error)
TryNWFramerMessageCopyObjectValue is like NWFramerMessageCopyObjectValue but returns an error instead of panicking if nw_framer_message_copy_object_value is unavailable at run time.
func TryNWFramerMessageSetObjectValue ¶
func TryNWFramerMessageSetObjectValue(message NWFramerMessage, key string, value objectivec.Object) error
TryNWFramerMessageSetObjectValue is like NWFramerMessageSetObjectValue but returns an error instead of panicking if nw_framer_message_set_object_value is unavailable at run time.
func TryNWFramerMessageSetValue ¶
func TryNWFramerMessageSetValue(message NWFramerMessage, key string, value unsafe.Pointer, dispose_value func(kernel.Pointer)) error
TryNWFramerMessageSetValue is like NWFramerMessageSetValue but returns an error instead of panicking if nw_framer_message_set_value is unavailable at run time.
func TryNWFramerOptionsCopyObjectValue ¶
func TryNWFramerOptionsCopyObjectValue(options NWProtocolOptions, key string) (objectivec.Object, error)
TryNWFramerOptionsCopyObjectValue is like NWFramerOptionsCopyObjectValue but returns an error instead of panicking if nw_framer_options_copy_object_value is unavailable at run time.
func TryNWFramerOptionsSetObjectValue ¶
func TryNWFramerOptionsSetObjectValue(options NWProtocolOptions, key string, value objectivec.Object) error
TryNWFramerOptionsSetObjectValue is like NWFramerOptionsSetObjectValue but returns an error instead of panicking if nw_framer_options_set_object_value is unavailable at run time.
func TryNWFramerParseInput ¶
func TryNWFramerParseInput(framer NWFramer, minimum_incomplete_length uintptr, maximum_length uintptr, temp_buffer []byte, parse NWFramerParseCompletion) (bool, error)
TryNWFramerParseInput is like NWFramerParseInput but returns an error instead of panicking if nw_framer_parse_input is unavailable at run time.
func TryNWFramerParseOutput ¶
func TryNWFramerParseOutput(framer NWFramer, minimum_incomplete_length uintptr, maximum_length uintptr, temp_buffer []byte, parse NWFramerParseCompletion) (bool, error)
TryNWFramerParseOutput is like NWFramerParseOutput but returns an error instead of panicking if nw_framer_parse_output is unavailable at run time.
func TryNWFramerPassThroughInput ¶
TryNWFramerPassThroughInput is like NWFramerPassThroughInput but returns an error instead of panicking if nw_framer_pass_through_input is unavailable at run time.
func TryNWFramerPassThroughOutput ¶
TryNWFramerPassThroughOutput is like NWFramerPassThroughOutput but returns an error instead of panicking if nw_framer_pass_through_output is unavailable at run time.
func TryNWFramerPrependApplicationProtocol ¶
func TryNWFramerPrependApplicationProtocol(framer NWFramer, protocol_options NWProtocolOptions) (bool, error)
TryNWFramerPrependApplicationProtocol is like NWFramerPrependApplicationProtocol but returns an error instead of panicking if nw_framer_prepend_application_protocol is unavailable at run time.
func TryNWFramerScheduleWakeup ¶
TryNWFramerScheduleWakeup is like NWFramerScheduleWakeup but returns an error instead of panicking if nw_framer_schedule_wakeup is unavailable at run time.
func TryNWFramerSetCleanupHandler ¶
func TryNWFramerSetCleanupHandler(framer NWFramer, cleanup_handler NWFramerCleanupHandler) error
TryNWFramerSetCleanupHandler is like NWFramerSetCleanupHandler but returns an error instead of panicking if nw_framer_set_cleanup_handler is unavailable at run time.
func TryNWFramerSetInputHandler ¶
func TryNWFramerSetInputHandler(framer NWFramer, input_handler NWFramerInputHandler) error
TryNWFramerSetInputHandler is like NWFramerSetInputHandler but returns an error instead of panicking if nw_framer_set_input_handler is unavailable at run time.
func TryNWFramerSetOutputHandler ¶
func TryNWFramerSetOutputHandler(framer NWFramer, output_handler NWFramerOutputHandler) error
TryNWFramerSetOutputHandler is like NWFramerSetOutputHandler but returns an error instead of panicking if nw_framer_set_output_handler is unavailable at run time.
func TryNWFramerSetStopHandler ¶
func TryNWFramerSetStopHandler(framer NWFramer, stop_handler NWFramerStopHandler) error
TryNWFramerSetStopHandler is like NWFramerSetStopHandler but returns an error instead of panicking if nw_framer_set_stop_handler is unavailable at run time.
func TryNWFramerSetWakeupHandler ¶
func TryNWFramerSetWakeupHandler(framer NWFramer, wakeup_handler NWFramerWakeupHandler) error
TryNWFramerSetWakeupHandler is like NWFramerSetWakeupHandler but returns an error instead of panicking if nw_framer_set_wakeup_handler is unavailable at run time.
func TryNWFramerWriteOutput ¶
TryNWFramerWriteOutput is like NWFramerWriteOutput but returns an error instead of panicking if nw_framer_write_output is unavailable at run time.
func TryNWFramerWriteOutputData ¶
TryNWFramerWriteOutputData is like NWFramerWriteOutputData but returns an error instead of panicking if nw_framer_write_output_data is unavailable at run time.
func TryNWFramerWriteOutputNoCopy ¶
TryNWFramerWriteOutputNoCopy is like NWFramerWriteOutputNoCopy but returns an error instead of panicking if nw_framer_write_output_no_copy is unavailable at run time.
func TryNWGroupDescriptorAddEndpoint ¶
func TryNWGroupDescriptorAddEndpoint(descriptor NWGroupDescriptor, endpoint NWEndpoint) (bool, error)
TryNWGroupDescriptorAddEndpoint is like NWGroupDescriptorAddEndpoint but returns an error instead of panicking if nw_group_descriptor_add_endpoint is unavailable at run time.
func TryNWGroupDescriptorEnumerateEndpoints ¶
func TryNWGroupDescriptorEnumerateEndpoints(descriptor NWGroupDescriptor, enumerate_block NWGroupDescriptorEnumerateEndpointsBlock) error
TryNWGroupDescriptorEnumerateEndpoints is like NWGroupDescriptorEnumerateEndpoints but returns an error instead of panicking if nw_group_descriptor_enumerate_endpoints is unavailable at run time.
func TryNWIPMetadataGetReceiveTime ¶
func TryNWIPMetadataGetReceiveTime(metadata NWProtocolMetadata) (uint64, error)
TryNWIPMetadataGetReceiveTime is like NWIPMetadataGetReceiveTime but returns an error instead of panicking if nw_ip_metadata_get_receive_time is unavailable at run time.
func TryNWIPMetadataSetEcnFlag ¶
func TryNWIPMetadataSetEcnFlag(metadata NWProtocolMetadata, ecn_flag NWIPEcnFlag) error
TryNWIPMetadataSetEcnFlag is like NWIPMetadataSetEcnFlag but returns an error instead of panicking if nw_ip_metadata_set_ecn_flag is unavailable at run time.
func TryNWIPMetadataSetServiceClass ¶
func TryNWIPMetadataSetServiceClass(metadata NWProtocolMetadata, service_class NWServiceClass) error
TryNWIPMetadataSetServiceClass is like NWIPMetadataSetServiceClass but returns an error instead of panicking if nw_ip_metadata_set_service_class is unavailable at run time.
func TryNWIPOptionsSetCalculateReceiveTime ¶
func TryNWIPOptionsSetCalculateReceiveTime(options NWProtocolOptions, calculate_receive_time bool) error
TryNWIPOptionsSetCalculateReceiveTime is like NWIPOptionsSetCalculateReceiveTime but returns an error instead of panicking if nw_ip_options_set_calculate_receive_time is unavailable at run time.
func TryNWIPOptionsSetDisableFragmentation ¶
func TryNWIPOptionsSetDisableFragmentation(options NWProtocolOptions, disable_fragmentation bool) error
TryNWIPOptionsSetDisableFragmentation is like NWIPOptionsSetDisableFragmentation but returns an error instead of panicking if nw_ip_options_set_disable_fragmentation is unavailable at run time.
func TryNWIPOptionsSetDisableMulticastLoopback ¶
func TryNWIPOptionsSetDisableMulticastLoopback(options NWProtocolOptions, disable_multicast_loopback bool) error
TryNWIPOptionsSetDisableMulticastLoopback is like NWIPOptionsSetDisableMulticastLoopback but returns an error instead of panicking if nw_ip_options_set_disable_multicast_loopback is unavailable at run time.
func TryNWIPOptionsSetHopLimit ¶
func TryNWIPOptionsSetHopLimit(options NWProtocolOptions, hop_limit uint8) error
TryNWIPOptionsSetHopLimit is like NWIPOptionsSetHopLimit but returns an error instead of panicking if nw_ip_options_set_hop_limit is unavailable at run time.
func TryNWIPOptionsSetLocalAddressPreference ¶
func TryNWIPOptionsSetLocalAddressPreference(options NWProtocolOptions, preference NWIPLocalAddressPreference) error
TryNWIPOptionsSetLocalAddressPreference is like NWIPOptionsSetLocalAddressPreference but returns an error instead of panicking if nw_ip_options_set_local_address_preference is unavailable at run time.
func TryNWIPOptionsSetUseMinimumMtu ¶
func TryNWIPOptionsSetUseMinimumMtu(options NWProtocolOptions, use_minimum_mtu bool) error
TryNWIPOptionsSetUseMinimumMtu is like NWIPOptionsSetUseMinimumMtu but returns an error instead of panicking if nw_ip_options_set_use_minimum_mtu is unavailable at run time.
func TryNWIPOptionsSetVersion ¶
func TryNWIPOptionsSetVersion(options NWProtocolOptions, version NWIPVersion) error
TryNWIPOptionsSetVersion is like NWIPOptionsSetVersion but returns an error instead of panicking if nw_ip_options_set_version is unavailable at run time.
func TryNWInterfaceGetIndex ¶
func TryNWInterfaceGetIndex(interface_ NWInterface) (uint32, error)
TryNWInterfaceGetIndex is like NWInterfaceGetIndex but returns an error instead of panicking if nw_interface_get_index is unavailable at run time.
func TryNWInterfaceGetName ¶
func TryNWInterfaceGetName(interface_ NWInterface) (*byte, error)
TryNWInterfaceGetName is like NWInterfaceGetName but returns an error instead of panicking if nw_interface_get_name is unavailable at run time.
func TryNWListenerCancel ¶
func TryNWListenerCancel(listener NWListener) error
TryNWListenerCancel is like NWListenerCancel but returns an error instead of panicking if nw_listener_cancel is unavailable at run time.
func TryNWListenerGetNewConnectionLimit ¶
func TryNWListenerGetNewConnectionLimit(listener NWListener) (uint32, error)
TryNWListenerGetNewConnectionLimit is like NWListenerGetNewConnectionLimit but returns an error instead of panicking if nw_listener_get_new_connection_limit is unavailable at run time.
func TryNWListenerGetPort ¶
func TryNWListenerGetPort(listener NWListener) (uint16, error)
TryNWListenerGetPort is like NWListenerGetPort but returns an error instead of panicking if nw_listener_get_port is unavailable at run time.
func TryNWListenerSetAdvertiseDescriptor ¶
func TryNWListenerSetAdvertiseDescriptor(listener NWListener, advertise_descriptor NWAdvertiseDescriptor) error
TryNWListenerSetAdvertiseDescriptor is like NWListenerSetAdvertiseDescriptor but returns an error instead of panicking if nw_listener_set_advertise_descriptor is unavailable at run time.
func TryNWListenerSetAdvertisedEndpointChangedHandler ¶
func TryNWListenerSetAdvertisedEndpointChangedHandler(listener NWListener, handler NWListenerAdvertisedEndpointChangedHandler) error
TryNWListenerSetAdvertisedEndpointChangedHandler is like NWListenerSetAdvertisedEndpointChangedHandler but returns an error instead of panicking if nw_listener_set_advertised_endpoint_changed_handler is unavailable at run time.
func TryNWListenerSetNewConnectionGroupHandler ¶
func TryNWListenerSetNewConnectionGroupHandler(listener NWListener, handler NWListenerNewConnectionGroupHandler) error
TryNWListenerSetNewConnectionGroupHandler is like NWListenerSetNewConnectionGroupHandler but returns an error instead of panicking if nw_listener_set_new_connection_group_handler is unavailable at run time.
func TryNWListenerSetNewConnectionHandler ¶
func TryNWListenerSetNewConnectionHandler(listener NWListener, handler NWListenerNewConnectionHandler) error
TryNWListenerSetNewConnectionHandler is like NWListenerSetNewConnectionHandler but returns an error instead of panicking if nw_listener_set_new_connection_handler is unavailable at run time.
func TryNWListenerSetNewConnectionLimit ¶
func TryNWListenerSetNewConnectionLimit(listener NWListener, new_connection_limit uint32) error
TryNWListenerSetNewConnectionLimit is like NWListenerSetNewConnectionLimit but returns an error instead of panicking if nw_listener_set_new_connection_limit is unavailable at run time.
func TryNWListenerSetQueue ¶
func TryNWListenerSetQueue(listener NWListener, queue dispatch.Queue) error
TryNWListenerSetQueue is like NWListenerSetQueue but returns an error instead of panicking if nw_listener_set_queue is unavailable at run time.
func TryNWListenerSetStateChangedHandler ¶
func TryNWListenerSetStateChangedHandler(listener NWListener, handler NWListenerStateChangedHandler) error
TryNWListenerSetStateChangedHandler is like NWListenerSetStateChangedHandler but returns an error instead of panicking if nw_listener_set_state_changed_handler is unavailable at run time.
func TryNWListenerStart ¶
func TryNWListenerStart(listener NWListener) error
TryNWListenerStart is like NWListenerStart but returns an error instead of panicking if nw_listener_start is unavailable at run time.
func TryNWMulticastGroupDescriptorGetDisableUnicastTraffic ¶
func TryNWMulticastGroupDescriptorGetDisableUnicastTraffic(multicast_descriptor NWGroupDescriptor) (bool, error)
TryNWMulticastGroupDescriptorGetDisableUnicastTraffic is like NWMulticastGroupDescriptorGetDisableUnicastTraffic but returns an error instead of panicking if nw_multicast_group_descriptor_get_disable_unicast_traffic is unavailable at run time.
func TryNWMulticastGroupDescriptorSetDisableUnicastTraffic ¶
func TryNWMulticastGroupDescriptorSetDisableUnicastTraffic(multicast_descriptor NWGroupDescriptor, disable_unicast_traffic bool) error
TryNWMulticastGroupDescriptorSetDisableUnicastTraffic is like NWMulticastGroupDescriptorSetDisableUnicastTraffic but returns an error instead of panicking if nw_multicast_group_descriptor_set_disable_unicast_traffic is unavailable at run time.
func TryNWMulticastGroupDescriptorSetSpecificSource ¶
func TryNWMulticastGroupDescriptorSetSpecificSource(multicast_descriptor NWGroupDescriptor, source NWEndpoint) error
TryNWMulticastGroupDescriptorSetSpecificSource is like NWMulticastGroupDescriptorSetSpecificSource but returns an error instead of panicking if nw_multicast_group_descriptor_set_specific_source is unavailable at run time.
func TryNWParametersClearProhibitedInterfaceTypes ¶
func TryNWParametersClearProhibitedInterfaceTypes(parameters NWParameters) error
TryNWParametersClearProhibitedInterfaceTypes is like NWParametersClearProhibitedInterfaceTypes but returns an error instead of panicking if nw_parameters_clear_prohibited_interface_types is unavailable at run time.
func TryNWParametersClearProhibitedInterfaces ¶
func TryNWParametersClearProhibitedInterfaces(parameters NWParameters) error
TryNWParametersClearProhibitedInterfaces is like NWParametersClearProhibitedInterfaces but returns an error instead of panicking if nw_parameters_clear_prohibited_interfaces is unavailable at run time.
func TryNWParametersGetAllowUltraConstrained ¶
func TryNWParametersGetAllowUltraConstrained(parameters NWParameters) (bool, error)
TryNWParametersGetAllowUltraConstrained is like NWParametersGetAllowUltraConstrained but returns an error instead of panicking if nw_parameters_get_allow_ultra_constrained is unavailable at run time.
func TryNWParametersGetFastOpenEnabled ¶
func TryNWParametersGetFastOpenEnabled(parameters NWParameters) (bool, error)
TryNWParametersGetFastOpenEnabled is like NWParametersGetFastOpenEnabled but returns an error instead of panicking if nw_parameters_get_fast_open_enabled is unavailable at run time.
func TryNWParametersGetIncludePeerToPeer ¶
func TryNWParametersGetIncludePeerToPeer(parameters NWParameters) (bool, error)
TryNWParametersGetIncludePeerToPeer is like NWParametersGetIncludePeerToPeer but returns an error instead of panicking if nw_parameters_get_include_peer_to_peer is unavailable at run time.
func TryNWParametersGetLocalOnly ¶
func TryNWParametersGetLocalOnly(parameters NWParameters) (bool, error)
TryNWParametersGetLocalOnly is like NWParametersGetLocalOnly but returns an error instead of panicking if nw_parameters_get_local_only is unavailable at run time.
func TryNWParametersGetPreferNoProxy ¶
func TryNWParametersGetPreferNoProxy(parameters NWParameters) (bool, error)
TryNWParametersGetPreferNoProxy is like NWParametersGetPreferNoProxy but returns an error instead of panicking if nw_parameters_get_prefer_no_proxy is unavailable at run time.
func TryNWParametersGetProhibitConstrained ¶
func TryNWParametersGetProhibitConstrained(parameters NWParameters) (bool, error)
TryNWParametersGetProhibitConstrained is like NWParametersGetProhibitConstrained but returns an error instead of panicking if nw_parameters_get_prohibit_constrained is unavailable at run time.
func TryNWParametersGetProhibitExpensive ¶
func TryNWParametersGetProhibitExpensive(parameters NWParameters) (bool, error)
TryNWParametersGetProhibitExpensive is like NWParametersGetProhibitExpensive but returns an error instead of panicking if nw_parameters_get_prohibit_expensive is unavailable at run time.
func TryNWParametersGetReuseLocalAddress ¶
func TryNWParametersGetReuseLocalAddress(parameters NWParameters) (bool, error)
TryNWParametersGetReuseLocalAddress is like NWParametersGetReuseLocalAddress but returns an error instead of panicking if nw_parameters_get_reuse_local_address is unavailable at run time.
func TryNWParametersIterateProhibitedInterfaceTypes ¶
func TryNWParametersIterateProhibitedInterfaceTypes(parameters NWParameters, iterate_block NWParametersIterateInterfaceTypesBlock) error
TryNWParametersIterateProhibitedInterfaceTypes is like NWParametersIterateProhibitedInterfaceTypes but returns an error instead of panicking if nw_parameters_iterate_prohibited_interface_types is unavailable at run time.
func TryNWParametersIterateProhibitedInterfaces ¶
func TryNWParametersIterateProhibitedInterfaces(parameters NWParameters, iterate_block NWParametersIterateInterfacesBlock) error
TryNWParametersIterateProhibitedInterfaces is like NWParametersIterateProhibitedInterfaces but returns an error instead of panicking if nw_parameters_iterate_prohibited_interfaces is unavailable at run time.
func TryNWParametersProhibitInterface ¶
func TryNWParametersProhibitInterface(parameters NWParameters, interface_ NWInterface) error
TryNWParametersProhibitInterface is like NWParametersProhibitInterface but returns an error instead of panicking if nw_parameters_prohibit_interface is unavailable at run time.
func TryNWParametersProhibitInterfaceType ¶
func TryNWParametersProhibitInterfaceType(parameters NWParameters, interface_type NWInterfaceType) error
TryNWParametersProhibitInterfaceType is like NWParametersProhibitInterfaceType but returns an error instead of panicking if nw_parameters_prohibit_interface_type is unavailable at run time.
func TryNWParametersRequireInterface ¶
func TryNWParametersRequireInterface(parameters NWParameters, interface_ NWInterface) error
TryNWParametersRequireInterface is like NWParametersRequireInterface but returns an error instead of panicking if nw_parameters_require_interface is unavailable at run time.
func TryNWParametersRequiresDnssecValidation ¶
func TryNWParametersRequiresDnssecValidation(parameters NWParameters) (bool, error)
TryNWParametersRequiresDnssecValidation is like NWParametersRequiresDnssecValidation but returns an error instead of panicking if nw_parameters_requires_dnssec_validation is unavailable at run time.
func TryNWParametersSetAllowUltraConstrained ¶
func TryNWParametersSetAllowUltraConstrained(parameters NWParameters, allow_ultra_constrained bool) error
TryNWParametersSetAllowUltraConstrained is like NWParametersSetAllowUltraConstrained but returns an error instead of panicking if nw_parameters_set_allow_ultra_constrained is unavailable at run time.
func TryNWParametersSetAttribution ¶
func TryNWParametersSetAttribution(parameters NWParameters, attribution NWParametersAttribution) error
TryNWParametersSetAttribution is like NWParametersSetAttribution but returns an error instead of panicking if nw_parameters_set_attribution is unavailable at run time.
func TryNWParametersSetExpiredDnsBehavior ¶
func TryNWParametersSetExpiredDnsBehavior(parameters NWParameters, expired_dns_behavior NWParametersExpiredDnsBehavior) error
TryNWParametersSetExpiredDnsBehavior is like NWParametersSetExpiredDnsBehavior but returns an error instead of panicking if nw_parameters_set_expired_dns_behavior is unavailable at run time.
func TryNWParametersSetFastOpenEnabled ¶
func TryNWParametersSetFastOpenEnabled(parameters NWParameters, fast_open_enabled bool) error
TryNWParametersSetFastOpenEnabled is like NWParametersSetFastOpenEnabled but returns an error instead of panicking if nw_parameters_set_fast_open_enabled is unavailable at run time.
func TryNWParametersSetIncludePeerToPeer ¶
func TryNWParametersSetIncludePeerToPeer(parameters NWParameters, include_peer_to_peer bool) error
TryNWParametersSetIncludePeerToPeer is like NWParametersSetIncludePeerToPeer but returns an error instead of panicking if nw_parameters_set_include_peer_to_peer is unavailable at run time.
func TryNWParametersSetLocalEndpoint ¶
func TryNWParametersSetLocalEndpoint(parameters NWParameters, local_endpoint NWEndpoint) error
TryNWParametersSetLocalEndpoint is like NWParametersSetLocalEndpoint but returns an error instead of panicking if nw_parameters_set_local_endpoint is unavailable at run time.
func TryNWParametersSetLocalOnly ¶
func TryNWParametersSetLocalOnly(parameters NWParameters, local_only bool) error
TryNWParametersSetLocalOnly is like NWParametersSetLocalOnly but returns an error instead of panicking if nw_parameters_set_local_only is unavailable at run time.
func TryNWParametersSetMultipathService ¶
func TryNWParametersSetMultipathService(parameters NWParameters, multipath_service NWMultipathService) error
TryNWParametersSetMultipathService is like NWParametersSetMultipathService but returns an error instead of panicking if nw_parameters_set_multipath_service is unavailable at run time.
func TryNWParametersSetPreferNoProxy ¶
func TryNWParametersSetPreferNoProxy(parameters NWParameters, prefer_no_proxy bool) error
TryNWParametersSetPreferNoProxy is like NWParametersSetPreferNoProxy but returns an error instead of panicking if nw_parameters_set_prefer_no_proxy is unavailable at run time.
func TryNWParametersSetPrivacyContext ¶
func TryNWParametersSetPrivacyContext(parameters NWParameters, privacy_context NWPrivacyContext) error
TryNWParametersSetPrivacyContext is like NWParametersSetPrivacyContext but returns an error instead of panicking if nw_parameters_set_privacy_context is unavailable at run time.
func TryNWParametersSetProhibitConstrained ¶
func TryNWParametersSetProhibitConstrained(parameters NWParameters, prohibit_constrained bool) error
TryNWParametersSetProhibitConstrained is like NWParametersSetProhibitConstrained but returns an error instead of panicking if nw_parameters_set_prohibit_constrained is unavailable at run time.
func TryNWParametersSetProhibitExpensive ¶
func TryNWParametersSetProhibitExpensive(parameters NWParameters, prohibit_expensive bool) error
TryNWParametersSetProhibitExpensive is like NWParametersSetProhibitExpensive but returns an error instead of panicking if nw_parameters_set_prohibit_expensive is unavailable at run time.
func TryNWParametersSetRequiredInterfaceType ¶
func TryNWParametersSetRequiredInterfaceType(parameters NWParameters, interface_type NWInterfaceType) error
TryNWParametersSetRequiredInterfaceType is like NWParametersSetRequiredInterfaceType but returns an error instead of panicking if nw_parameters_set_required_interface_type is unavailable at run time.
func TryNWParametersSetRequiresDnssecValidation ¶
func TryNWParametersSetRequiresDnssecValidation(parameters NWParameters, requires_dnssec_validation bool) error
TryNWParametersSetRequiresDnssecValidation is like NWParametersSetRequiresDnssecValidation but returns an error instead of panicking if nw_parameters_set_requires_dnssec_validation is unavailable at run time.
func TryNWParametersSetReuseLocalAddress ¶
func TryNWParametersSetReuseLocalAddress(parameters NWParameters, reuse_local_address bool) error
TryNWParametersSetReuseLocalAddress is like NWParametersSetReuseLocalAddress but returns an error instead of panicking if nw_parameters_set_reuse_local_address is unavailable at run time.
func TryNWParametersSetServiceClass ¶
func TryNWParametersSetServiceClass(parameters NWParameters, service_class NWServiceClass) error
TryNWParametersSetServiceClass is like NWParametersSetServiceClass but returns an error instead of panicking if nw_parameters_set_service_class is unavailable at run time.
func TryNWPathEnumerateGateways ¶
func TryNWPathEnumerateGateways(path NWPath, enumerate_block NWPathEnumerateGatewaysBlock) error
TryNWPathEnumerateGateways is like NWPathEnumerateGateways but returns an error instead of panicking if nw_path_enumerate_gateways is unavailable at run time.
func TryNWPathEnumerateInterfaces ¶
func TryNWPathEnumerateInterfaces(path NWPath, enumerate_block NWPathEnumerateInterfacesBlock) error
TryNWPathEnumerateInterfaces is like NWPathEnumerateInterfaces but returns an error instead of panicking if nw_path_enumerate_interfaces is unavailable at run time.
func TryNWPathHasDns ¶
TryNWPathHasDns is like NWPathHasDns but returns an error instead of panicking if nw_path_has_dns is unavailable at run time.
func TryNWPathHasIpv4 ¶
TryNWPathHasIpv4 is like NWPathHasIpv4 but returns an error instead of panicking if nw_path_has_ipv4 is unavailable at run time.
func TryNWPathHasIpv6 ¶
TryNWPathHasIpv6 is like NWPathHasIpv6 but returns an error instead of panicking if nw_path_has_ipv6 is unavailable at run time.
func TryNWPathIsConstrained ¶
TryNWPathIsConstrained is like NWPathIsConstrained but returns an error instead of panicking if nw_path_is_constrained is unavailable at run time.
func TryNWPathIsEqual ¶
TryNWPathIsEqual is like NWPathIsEqual but returns an error instead of panicking if nw_path_is_equal is unavailable at run time.
func TryNWPathIsExpensive ¶
TryNWPathIsExpensive is like NWPathIsExpensive but returns an error instead of panicking if nw_path_is_expensive is unavailable at run time.
func TryNWPathIsUltraConstrained ¶
TryNWPathIsUltraConstrained is like NWPathIsUltraConstrained but returns an error instead of panicking if nw_path_is_ultra_constrained is unavailable at run time.
func TryNWPathMonitorCancel ¶
func TryNWPathMonitorCancel(monitor NWPathMonitor) error
TryNWPathMonitorCancel is like NWPathMonitorCancel but returns an error instead of panicking if nw_path_monitor_cancel is unavailable at run time.
func TryNWPathMonitorProhibitInterfaceType ¶
func TryNWPathMonitorProhibitInterfaceType(monitor NWPathMonitor, interface_type NWInterfaceType) error
TryNWPathMonitorProhibitInterfaceType is like NWPathMonitorProhibitInterfaceType but returns an error instead of panicking if nw_path_monitor_prohibit_interface_type is unavailable at run time.
func TryNWPathMonitorSetCancelHandler ¶
func TryNWPathMonitorSetCancelHandler(monitor NWPathMonitor, cancel_handler NWPathMonitorCancelHandler) error
TryNWPathMonitorSetCancelHandler is like NWPathMonitorSetCancelHandler but returns an error instead of panicking if nw_path_monitor_set_cancel_handler is unavailable at run time.
func TryNWPathMonitorSetQueue ¶
func TryNWPathMonitorSetQueue(monitor NWPathMonitor, queue dispatch.Queue) error
TryNWPathMonitorSetQueue is like NWPathMonitorSetQueue but returns an error instead of panicking if nw_path_monitor_set_queue is unavailable at run time.
func TryNWPathMonitorSetUpdateHandler ¶
func TryNWPathMonitorSetUpdateHandler(monitor NWPathMonitor, update_handler NWPathMonitorUpdateHandler) error
TryNWPathMonitorSetUpdateHandler is like NWPathMonitorSetUpdateHandler but returns an error instead of panicking if nw_path_monitor_set_update_handler is unavailable at run time.
func TryNWPathMonitorStart ¶
func TryNWPathMonitorStart(monitor NWPathMonitor) error
TryNWPathMonitorStart is like NWPathMonitorStart but returns an error instead of panicking if nw_path_monitor_start is unavailable at run time.
func TryNWPathUsesInterfaceType ¶
func TryNWPathUsesInterfaceType(path NWPath, interface_type NWInterfaceType) (bool, error)
TryNWPathUsesInterfaceType is like NWPathUsesInterfaceType but returns an error instead of panicking if nw_path_uses_interface_type is unavailable at run time.
func TryNWPrivacyContextAddProxy ¶
func TryNWPrivacyContextAddProxy(privacy_context NWPrivacyContext, proxy_config NWProxyConfig) error
TryNWPrivacyContextAddProxy is like NWPrivacyContextAddProxy but returns an error instead of panicking if nw_privacy_context_add_proxy is unavailable at run time.
func TryNWPrivacyContextClearProxies ¶
func TryNWPrivacyContextClearProxies(privacy_context NWPrivacyContext) error
TryNWPrivacyContextClearProxies is like NWPrivacyContextClearProxies but returns an error instead of panicking if nw_privacy_context_clear_proxies is unavailable at run time.
func TryNWPrivacyContextDisableLogging ¶
func TryNWPrivacyContextDisableLogging(privacy_context NWPrivacyContext) error
TryNWPrivacyContextDisableLogging is like NWPrivacyContextDisableLogging but returns an error instead of panicking if nw_privacy_context_disable_logging is unavailable at run time.
func TryNWPrivacyContextFlushCache ¶
func TryNWPrivacyContextFlushCache(privacy_context NWPrivacyContext) error
TryNWPrivacyContextFlushCache is like NWPrivacyContextFlushCache but returns an error instead of panicking if nw_privacy_context_flush_cache is unavailable at run time.
func TryNWPrivacyContextRequireEncryptedNameResolution ¶
func TryNWPrivacyContextRequireEncryptedNameResolution(privacy_context NWPrivacyContext, require_encrypted_name_resolution bool, fallback_resolver_config NWResolverConfig) error
TryNWPrivacyContextRequireEncryptedNameResolution is like NWPrivacyContextRequireEncryptedNameResolution but returns an error instead of panicking if nw_privacy_context_require_encrypted_name_resolution is unavailable at run time.
func TryNWProtocolDefinitionIsEqual ¶
func TryNWProtocolDefinitionIsEqual(definition1 NWProtocolDefinition, definition2 NWProtocolDefinition) (bool, error)
TryNWProtocolDefinitionIsEqual is like NWProtocolDefinitionIsEqual but returns an error instead of panicking if nw_protocol_definition_is_equal is unavailable at run time.
func TryNWProtocolMetadataIsFramerMessage ¶
func TryNWProtocolMetadataIsFramerMessage(metadata NWProtocolMetadata) (bool, error)
TryNWProtocolMetadataIsFramerMessage is like NWProtocolMetadataIsFramerMessage but returns an error instead of panicking if nw_protocol_metadata_is_framer_message is unavailable at run time.
func TryNWProtocolMetadataIsIP ¶
func TryNWProtocolMetadataIsIP(metadata NWProtocolMetadata) (bool, error)
TryNWProtocolMetadataIsIP is like NWProtocolMetadataIsIP but returns an error instead of panicking if nw_protocol_metadata_is_ip is unavailable at run time.
func TryNWProtocolMetadataIsQuic ¶
func TryNWProtocolMetadataIsQuic(metadata NWProtocolMetadata) (bool, error)
TryNWProtocolMetadataIsQuic is like NWProtocolMetadataIsQuic but returns an error instead of panicking if nw_protocol_metadata_is_quic is unavailable at run time.
func TryNWProtocolMetadataIsTCP ¶
func TryNWProtocolMetadataIsTCP(metadata NWProtocolMetadata) (bool, error)
TryNWProtocolMetadataIsTCP is like NWProtocolMetadataIsTCP but returns an error instead of panicking if nw_protocol_metadata_is_tcp is unavailable at run time.
func TryNWProtocolMetadataIsTLS ¶
func TryNWProtocolMetadataIsTLS(metadata NWProtocolMetadata) (bool, error)
TryNWProtocolMetadataIsTLS is like NWProtocolMetadataIsTLS but returns an error instead of panicking if nw_protocol_metadata_is_tls is unavailable at run time.
func TryNWProtocolMetadataIsUDP ¶
func TryNWProtocolMetadataIsUDP(metadata NWProtocolMetadata) (bool, error)
TryNWProtocolMetadataIsUDP is like NWProtocolMetadataIsUDP but returns an error instead of panicking if nw_protocol_metadata_is_udp is unavailable at run time.
func TryNWProtocolMetadataIsWs ¶
func TryNWProtocolMetadataIsWs(metadata NWProtocolMetadata) (bool, error)
TryNWProtocolMetadataIsWs is like NWProtocolMetadataIsWs but returns an error instead of panicking if nw_protocol_metadata_is_ws is unavailable at run time.
func TryNWProtocolOptionsIsQuic ¶
func TryNWProtocolOptionsIsQuic(options NWProtocolOptions) (bool, error)
TryNWProtocolOptionsIsQuic is like NWProtocolOptionsIsQuic but returns an error instead of panicking if nw_protocol_options_is_quic is unavailable at run time.
func TryNWProtocolStackClearApplicationProtocols ¶
func TryNWProtocolStackClearApplicationProtocols(stack NWProtocolStack) error
TryNWProtocolStackClearApplicationProtocols is like NWProtocolStackClearApplicationProtocols but returns an error instead of panicking if nw_protocol_stack_clear_application_protocols is unavailable at run time.
func TryNWProtocolStackIterateApplicationProtocols ¶
func TryNWProtocolStackIterateApplicationProtocols(stack NWProtocolStack, iterate_block NWProtocolStackIterateProtocolsBlock) error
TryNWProtocolStackIterateApplicationProtocols is like NWProtocolStackIterateApplicationProtocols but returns an error instead of panicking if nw_protocol_stack_iterate_application_protocols is unavailable at run time.
func TryNWProtocolStackPrependApplicationProtocol ¶
func TryNWProtocolStackPrependApplicationProtocol(stack NWProtocolStack, protocol_ NWProtocolOptions) error
TryNWProtocolStackPrependApplicationProtocol is like NWProtocolStackPrependApplicationProtocol but returns an error instead of panicking if nw_protocol_stack_prepend_application_protocol is unavailable at run time.
func TryNWProtocolStackSetTransportProtocol ¶
func TryNWProtocolStackSetTransportProtocol(stack NWProtocolStack, protocol_ NWProtocolOptions) error
TryNWProtocolStackSetTransportProtocol is like NWProtocolStackSetTransportProtocol but returns an error instead of panicking if nw_protocol_stack_set_transport_protocol is unavailable at run time.
func TryNWProxyConfigAddExcludedDomain ¶
func TryNWProxyConfigAddExcludedDomain(config NWProxyConfig, excluded_domain string) error
TryNWProxyConfigAddExcludedDomain is like NWProxyConfigAddExcludedDomain but returns an error instead of panicking if nw_proxy_config_add_excluded_domain is unavailable at run time.
func TryNWProxyConfigAddMatchDomain ¶
func TryNWProxyConfigAddMatchDomain(config NWProxyConfig, match_domain string) error
TryNWProxyConfigAddMatchDomain is like NWProxyConfigAddMatchDomain but returns an error instead of panicking if nw_proxy_config_add_match_domain is unavailable at run time.
func TryNWProxyConfigClearExcludedDomains ¶
func TryNWProxyConfigClearExcludedDomains(config NWProxyConfig) error
TryNWProxyConfigClearExcludedDomains is like NWProxyConfigClearExcludedDomains but returns an error instead of panicking if nw_proxy_config_clear_excluded_domains is unavailable at run time.
func TryNWProxyConfigClearMatchDomains ¶
func TryNWProxyConfigClearMatchDomains(config NWProxyConfig) error
TryNWProxyConfigClearMatchDomains is like NWProxyConfigClearMatchDomains but returns an error instead of panicking if nw_proxy_config_clear_match_domains is unavailable at run time.
func TryNWProxyConfigEnumerateExcludedDomains ¶
func TryNWProxyConfigEnumerateExcludedDomains(config NWProxyConfig, enumerator NWProxyDomainEnumerator) error
TryNWProxyConfigEnumerateExcludedDomains is like NWProxyConfigEnumerateExcludedDomains but returns an error instead of panicking if nw_proxy_config_enumerate_excluded_domains is unavailable at run time.
func TryNWProxyConfigEnumerateMatchDomains ¶
func TryNWProxyConfigEnumerateMatchDomains(config NWProxyConfig, enumerator NWProxyDomainEnumerator) error
TryNWProxyConfigEnumerateMatchDomains is like NWProxyConfigEnumerateMatchDomains but returns an error instead of panicking if nw_proxy_config_enumerate_match_domains is unavailable at run time.
func TryNWProxyConfigGetFailoverAllowed ¶
func TryNWProxyConfigGetFailoverAllowed(proxy_config NWProxyConfig) (bool, error)
TryNWProxyConfigGetFailoverAllowed is like NWProxyConfigGetFailoverAllowed but returns an error instead of panicking if nw_proxy_config_get_failover_allowed is unavailable at run time.
func TryNWProxyConfigSetFailoverAllowed ¶
func TryNWProxyConfigSetFailoverAllowed(proxy_config NWProxyConfig, failover_allowed bool) error
TryNWProxyConfigSetFailoverAllowed is like NWProxyConfigSetFailoverAllowed but returns an error instead of panicking if nw_proxy_config_set_failover_allowed is unavailable at run time.
func TryNWProxyConfigSetUsernameAndPassword ¶
func TryNWProxyConfigSetUsernameAndPassword(proxy_config NWProxyConfig, username string, password string) error
TryNWProxyConfigSetUsernameAndPassword is like NWProxyConfigSetUsernameAndPassword but returns an error instead of panicking if nw_proxy_config_set_username_and_password is unavailable at run time.
func TryNWQuicAddTLSApplicationProtocol ¶
func TryNWQuicAddTLSApplicationProtocol(options NWProtocolOptions, application_protocol string) error
TryNWQuicAddTLSApplicationProtocol is like NWQuicAddTLSApplicationProtocol but returns an error instead of panicking if nw_quic_add_tls_application_protocol is unavailable at run time.
func TryNWQuicCopySecProtocolMetadata ¶
func TryNWQuicCopySecProtocolMetadata(metadata NWProtocolMetadata) (security.Sec_protocol_metadata_t, error)
TryNWQuicCopySecProtocolMetadata is like NWQuicCopySecProtocolMetadata but returns an error instead of panicking if nw_quic_copy_sec_protocol_metadata is unavailable at run time.
func TryNWQuicCopySecProtocolOptions ¶
func TryNWQuicCopySecProtocolOptions(options NWProtocolOptions) (security.Sec_protocol_options_t, error)
TryNWQuicCopySecProtocolOptions is like NWQuicCopySecProtocolOptions but returns an error instead of panicking if nw_quic_copy_sec_protocol_options is unavailable at run time.
func TryNWQuicGetApplicationError ¶
func TryNWQuicGetApplicationError(metadata NWProtocolMetadata) (uint64, error)
TryNWQuicGetApplicationError is like NWQuicGetApplicationError but returns an error instead of panicking if nw_quic_get_application_error is unavailable at run time.
func TryNWQuicGetApplicationErrorReason ¶
func TryNWQuicGetApplicationErrorReason(metadata NWProtocolMetadata) (*byte, error)
TryNWQuicGetApplicationErrorReason is like NWQuicGetApplicationErrorReason but returns an error instead of panicking if nw_quic_get_application_error_reason is unavailable at run time.
func TryNWQuicGetIdleTimeout ¶
func TryNWQuicGetIdleTimeout(options NWProtocolOptions) (uint32, error)
TryNWQuicGetIdleTimeout is like NWQuicGetIdleTimeout but returns an error instead of panicking if nw_quic_get_idle_timeout is unavailable at run time.
func TryNWQuicGetInitialMaxData ¶
func TryNWQuicGetInitialMaxData(options NWProtocolOptions) (uint64, error)
TryNWQuicGetInitialMaxData is like NWQuicGetInitialMaxData but returns an error instead of panicking if nw_quic_get_initial_max_data is unavailable at run time.
func TryNWQuicGetInitialMaxStreamDataBidirectionalLocal ¶
func TryNWQuicGetInitialMaxStreamDataBidirectionalLocal(options NWProtocolOptions) (uint64, error)
TryNWQuicGetInitialMaxStreamDataBidirectionalLocal is like NWQuicGetInitialMaxStreamDataBidirectionalLocal but returns an error instead of panicking if nw_quic_get_initial_max_stream_data_bidirectional_local is unavailable at run time.
func TryNWQuicGetInitialMaxStreamDataBidirectionalRemote ¶
func TryNWQuicGetInitialMaxStreamDataBidirectionalRemote(options NWProtocolOptions) (uint64, error)
TryNWQuicGetInitialMaxStreamDataBidirectionalRemote is like NWQuicGetInitialMaxStreamDataBidirectionalRemote but returns an error instead of panicking if nw_quic_get_initial_max_stream_data_bidirectional_remote is unavailable at run time.
func TryNWQuicGetInitialMaxStreamDataUnidirectional ¶
func TryNWQuicGetInitialMaxStreamDataUnidirectional(options NWProtocolOptions) (uint64, error)
TryNWQuicGetInitialMaxStreamDataUnidirectional is like NWQuicGetInitialMaxStreamDataUnidirectional but returns an error instead of panicking if nw_quic_get_initial_max_stream_data_unidirectional is unavailable at run time.
func TryNWQuicGetInitialMaxStreamsBidirectional ¶
func TryNWQuicGetInitialMaxStreamsBidirectional(options NWProtocolOptions) (uint64, error)
TryNWQuicGetInitialMaxStreamsBidirectional is like NWQuicGetInitialMaxStreamsBidirectional but returns an error instead of panicking if nw_quic_get_initial_max_streams_bidirectional is unavailable at run time.
func TryNWQuicGetInitialMaxStreamsUnidirectional ¶
func TryNWQuicGetInitialMaxStreamsUnidirectional(options NWProtocolOptions) (uint64, error)
TryNWQuicGetInitialMaxStreamsUnidirectional is like NWQuicGetInitialMaxStreamsUnidirectional but returns an error instead of panicking if nw_quic_get_initial_max_streams_unidirectional is unavailable at run time.
func TryNWQuicGetKeepaliveInterval ¶
func TryNWQuicGetKeepaliveInterval(metadata NWProtocolMetadata) (uint16, error)
TryNWQuicGetKeepaliveInterval is like NWQuicGetKeepaliveInterval but returns an error instead of panicking if nw_quic_get_keepalive_interval is unavailable at run time.
func TryNWQuicGetLocalMaxStreamsBidirectional ¶
func TryNWQuicGetLocalMaxStreamsBidirectional(metadata NWProtocolMetadata) (uint64, error)
TryNWQuicGetLocalMaxStreamsBidirectional is like NWQuicGetLocalMaxStreamsBidirectional but returns an error instead of panicking if nw_quic_get_local_max_streams_bidirectional is unavailable at run time.
func TryNWQuicGetLocalMaxStreamsUnidirectional ¶
func TryNWQuicGetLocalMaxStreamsUnidirectional(metadata NWProtocolMetadata) (uint64, error)
TryNWQuicGetLocalMaxStreamsUnidirectional is like NWQuicGetLocalMaxStreamsUnidirectional but returns an error instead of panicking if nw_quic_get_local_max_streams_unidirectional is unavailable at run time.
func TryNWQuicGetMaxDatagramFrameSize ¶
func TryNWQuicGetMaxDatagramFrameSize(options NWProtocolOptions) (uint16, error)
TryNWQuicGetMaxDatagramFrameSize is like NWQuicGetMaxDatagramFrameSize but returns an error instead of panicking if nw_quic_get_max_datagram_frame_size is unavailable at run time.
func TryNWQuicGetMaxUDPPayloadSize ¶
func TryNWQuicGetMaxUDPPayloadSize(options NWProtocolOptions) (uint16, error)
TryNWQuicGetMaxUDPPayloadSize is like NWQuicGetMaxUDPPayloadSize but returns an error instead of panicking if nw_quic_get_max_udp_payload_size is unavailable at run time.
func TryNWQuicGetRemoteIdleTimeout ¶
func TryNWQuicGetRemoteIdleTimeout(metadata NWProtocolMetadata) (uint64, error)
TryNWQuicGetRemoteIdleTimeout is like NWQuicGetRemoteIdleTimeout but returns an error instead of panicking if nw_quic_get_remote_idle_timeout is unavailable at run time.
func TryNWQuicGetRemoteMaxStreamsBidirectional ¶
func TryNWQuicGetRemoteMaxStreamsBidirectional(metadata NWProtocolMetadata) (uint64, error)
TryNWQuicGetRemoteMaxStreamsBidirectional is like NWQuicGetRemoteMaxStreamsBidirectional but returns an error instead of panicking if nw_quic_get_remote_max_streams_bidirectional is unavailable at run time.
func TryNWQuicGetRemoteMaxStreamsUnidirectional ¶
func TryNWQuicGetRemoteMaxStreamsUnidirectional(metadata NWProtocolMetadata) (uint64, error)
TryNWQuicGetRemoteMaxStreamsUnidirectional is like NWQuicGetRemoteMaxStreamsUnidirectional but returns an error instead of panicking if nw_quic_get_remote_max_streams_unidirectional is unavailable at run time.
func TryNWQuicGetStreamApplicationError ¶
func TryNWQuicGetStreamApplicationError(metadata NWProtocolMetadata) (uint64, error)
TryNWQuicGetStreamApplicationError is like NWQuicGetStreamApplicationError but returns an error instead of panicking if nw_quic_get_stream_application_error is unavailable at run time.
func TryNWQuicGetStreamID ¶
func TryNWQuicGetStreamID(metadata NWProtocolMetadata) (uint64, error)
TryNWQuicGetStreamID is like NWQuicGetStreamID but returns an error instead of panicking if nw_quic_get_stream_id is unavailable at run time.
func TryNWQuicGetStreamIsDatagram ¶
func TryNWQuicGetStreamIsDatagram(options NWProtocolOptions) (bool, error)
TryNWQuicGetStreamIsDatagram is like NWQuicGetStreamIsDatagram but returns an error instead of panicking if nw_quic_get_stream_is_datagram is unavailable at run time.
func TryNWQuicGetStreamIsUnidirectional ¶
func TryNWQuicGetStreamIsUnidirectional(options NWProtocolOptions) (bool, error)
TryNWQuicGetStreamIsUnidirectional is like NWQuicGetStreamIsUnidirectional but returns an error instead of panicking if nw_quic_get_stream_is_unidirectional is unavailable at run time.
func TryNWQuicGetStreamType ¶
func TryNWQuicGetStreamType(stream_metadata NWProtocolMetadata) (uint8, error)
TryNWQuicGetStreamType is like NWQuicGetStreamType but returns an error instead of panicking if nw_quic_get_stream_type is unavailable at run time.
func TryNWQuicGetStreamUsableDatagramFrameSize ¶
func TryNWQuicGetStreamUsableDatagramFrameSize(metadata NWProtocolMetadata) (uint16, error)
TryNWQuicGetStreamUsableDatagramFrameSize is like NWQuicGetStreamUsableDatagramFrameSize but returns an error instead of panicking if nw_quic_get_stream_usable_datagram_frame_size is unavailable at run time.
func TryNWQuicSetApplicationError ¶
func TryNWQuicSetApplicationError(metadata NWProtocolMetadata, application_error uint64, reason string) error
TryNWQuicSetApplicationError is like NWQuicSetApplicationError but returns an error instead of panicking if nw_quic_set_application_error is unavailable at run time.
func TryNWQuicSetIdleTimeout ¶
func TryNWQuicSetIdleTimeout(options NWProtocolOptions, idle_timeout uint32) error
TryNWQuicSetIdleTimeout is like NWQuicSetIdleTimeout but returns an error instead of panicking if nw_quic_set_idle_timeout is unavailable at run time.
func TryNWQuicSetInitialMaxData ¶
func TryNWQuicSetInitialMaxData(options NWProtocolOptions, initial_max_data uint64) error
TryNWQuicSetInitialMaxData is like NWQuicSetInitialMaxData but returns an error instead of panicking if nw_quic_set_initial_max_data is unavailable at run time.
func TryNWQuicSetInitialMaxStreamDataBidirectionalLocal ¶
func TryNWQuicSetInitialMaxStreamDataBidirectionalLocal(options NWProtocolOptions, initial_max_stream_data_bidirectional_local uint64) error
TryNWQuicSetInitialMaxStreamDataBidirectionalLocal is like NWQuicSetInitialMaxStreamDataBidirectionalLocal but returns an error instead of panicking if nw_quic_set_initial_max_stream_data_bidirectional_local is unavailable at run time.
func TryNWQuicSetInitialMaxStreamDataBidirectionalRemote ¶
func TryNWQuicSetInitialMaxStreamDataBidirectionalRemote(options NWProtocolOptions, initial_max_stream_data_bidirectional_remote uint64) error
TryNWQuicSetInitialMaxStreamDataBidirectionalRemote is like NWQuicSetInitialMaxStreamDataBidirectionalRemote but returns an error instead of panicking if nw_quic_set_initial_max_stream_data_bidirectional_remote is unavailable at run time.
func TryNWQuicSetInitialMaxStreamDataUnidirectional ¶
func TryNWQuicSetInitialMaxStreamDataUnidirectional(options NWProtocolOptions, initial_max_stream_data_unidirectional uint64) error
TryNWQuicSetInitialMaxStreamDataUnidirectional is like NWQuicSetInitialMaxStreamDataUnidirectional but returns an error instead of panicking if nw_quic_set_initial_max_stream_data_unidirectional is unavailable at run time.
func TryNWQuicSetInitialMaxStreamsBidirectional ¶
func TryNWQuicSetInitialMaxStreamsBidirectional(options NWProtocolOptions, initial_max_streams_bidirectional uint64) error
TryNWQuicSetInitialMaxStreamsBidirectional is like NWQuicSetInitialMaxStreamsBidirectional but returns an error instead of panicking if nw_quic_set_initial_max_streams_bidirectional is unavailable at run time.
func TryNWQuicSetInitialMaxStreamsUnidirectional ¶
func TryNWQuicSetInitialMaxStreamsUnidirectional(options NWProtocolOptions, initial_max_streams_unidirectional uint64) error
TryNWQuicSetInitialMaxStreamsUnidirectional is like NWQuicSetInitialMaxStreamsUnidirectional but returns an error instead of panicking if nw_quic_set_initial_max_streams_unidirectional is unavailable at run time.
func TryNWQuicSetKeepaliveInterval ¶
func TryNWQuicSetKeepaliveInterval(metadata NWProtocolMetadata, keepalive_interval uint16) error
TryNWQuicSetKeepaliveInterval is like NWQuicSetKeepaliveInterval but returns an error instead of panicking if nw_quic_set_keepalive_interval is unavailable at run time.
func TryNWQuicSetLocalMaxStreamsBidirectional ¶
func TryNWQuicSetLocalMaxStreamsBidirectional(metadata NWProtocolMetadata, max_streams_bidirectional uint64) error
TryNWQuicSetLocalMaxStreamsBidirectional is like NWQuicSetLocalMaxStreamsBidirectional but returns an error instead of panicking if nw_quic_set_local_max_streams_bidirectional is unavailable at run time.
func TryNWQuicSetLocalMaxStreamsUnidirectional ¶
func TryNWQuicSetLocalMaxStreamsUnidirectional(metadata NWProtocolMetadata, max_streams_unidirectional uint64) error
TryNWQuicSetLocalMaxStreamsUnidirectional is like NWQuicSetLocalMaxStreamsUnidirectional but returns an error instead of panicking if nw_quic_set_local_max_streams_unidirectional is unavailable at run time.
func TryNWQuicSetMaxDatagramFrameSize ¶
func TryNWQuicSetMaxDatagramFrameSize(options NWProtocolOptions, max_datagram_frame_size uint16) error
TryNWQuicSetMaxDatagramFrameSize is like NWQuicSetMaxDatagramFrameSize but returns an error instead of panicking if nw_quic_set_max_datagram_frame_size is unavailable at run time.
func TryNWQuicSetMaxUDPPayloadSize ¶
func TryNWQuicSetMaxUDPPayloadSize(options NWProtocolOptions, max_udp_payload_size uint16) error
TryNWQuicSetMaxUDPPayloadSize is like NWQuicSetMaxUDPPayloadSize but returns an error instead of panicking if nw_quic_set_max_udp_payload_size is unavailable at run time.
func TryNWQuicSetStreamApplicationError ¶
func TryNWQuicSetStreamApplicationError(metadata NWProtocolMetadata, application_error uint64) error
TryNWQuicSetStreamApplicationError is like NWQuicSetStreamApplicationError but returns an error instead of panicking if nw_quic_set_stream_application_error is unavailable at run time.
func TryNWQuicSetStreamIsDatagram ¶
func TryNWQuicSetStreamIsDatagram(options NWProtocolOptions, is_datagram bool) error
TryNWQuicSetStreamIsDatagram is like NWQuicSetStreamIsDatagram but returns an error instead of panicking if nw_quic_set_stream_is_datagram is unavailable at run time.
func TryNWQuicSetStreamIsUnidirectional ¶
func TryNWQuicSetStreamIsUnidirectional(options NWProtocolOptions, is_unidirectional bool) error
TryNWQuicSetStreamIsUnidirectional is like NWQuicSetStreamIsUnidirectional but returns an error instead of panicking if nw_quic_set_stream_is_unidirectional is unavailable at run time.
func TryNWRelayHopAddAdditionalHttpHeaderField ¶
func TryNWRelayHopAddAdditionalHttpHeaderField(relay_hop NWRelayHop, field_name string, field_value string) error
TryNWRelayHopAddAdditionalHttpHeaderField is like NWRelayHopAddAdditionalHttpHeaderField but returns an error instead of panicking if nw_relay_hop_add_additional_http_header_field is unavailable at run time.
func TryNWRelease ¶
TryNWRelease is like NWRelease but returns an error instead of panicking if nw_release is unavailable at run time.
func TryNWResolutionReportGetEndpointCount ¶
func TryNWResolutionReportGetEndpointCount(resolution_report NWResolutionReport) (uint32, error)
TryNWResolutionReportGetEndpointCount is like NWResolutionReportGetEndpointCount but returns an error instead of panicking if nw_resolution_report_get_endpoint_count is unavailable at run time.
func TryNWResolutionReportGetMilliseconds ¶
func TryNWResolutionReportGetMilliseconds(resolution_report NWResolutionReport) (uint64, error)
TryNWResolutionReportGetMilliseconds is like NWResolutionReportGetMilliseconds but returns an error instead of panicking if nw_resolution_report_get_milliseconds is unavailable at run time.
func TryNWResolverConfigAddServerAddress ¶
func TryNWResolverConfigAddServerAddress(config NWResolverConfig, server_address NWEndpoint) error
TryNWResolverConfigAddServerAddress is like NWResolverConfigAddServerAddress but returns an error instead of panicking if nw_resolver_config_add_server_address is unavailable at run time.
func TryNWRetain ¶
TryNWRetain is like NWRetain but returns an error instead of panicking if nw_retain is unavailable at run time.
func TryNWTCPGetAvailableReceiveBuffer ¶
func TryNWTCPGetAvailableReceiveBuffer(metadata NWProtocolMetadata) (uint32, error)
TryNWTCPGetAvailableReceiveBuffer is like NWTCPGetAvailableReceiveBuffer but returns an error instead of panicking if nw_tcp_get_available_receive_buffer is unavailable at run time.
func TryNWTCPGetAvailableSendBuffer ¶
func TryNWTCPGetAvailableSendBuffer(metadata NWProtocolMetadata) (uint32, error)
TryNWTCPGetAvailableSendBuffer is like NWTCPGetAvailableSendBuffer but returns an error instead of panicking if nw_tcp_get_available_send_buffer is unavailable at run time.
func TryNWTCPOptionsSetConnectionTimeout ¶
func TryNWTCPOptionsSetConnectionTimeout(options NWProtocolOptions, connection_timeout uint32) error
TryNWTCPOptionsSetConnectionTimeout is like NWTCPOptionsSetConnectionTimeout but returns an error instead of panicking if nw_tcp_options_set_connection_timeout is unavailable at run time.
func TryNWTCPOptionsSetDisableAckStretching ¶
func TryNWTCPOptionsSetDisableAckStretching(options NWProtocolOptions, disable_ack_stretching bool) error
TryNWTCPOptionsSetDisableAckStretching is like NWTCPOptionsSetDisableAckStretching but returns an error instead of panicking if nw_tcp_options_set_disable_ack_stretching is unavailable at run time.
func TryNWTCPOptionsSetDisableEcn ¶
func TryNWTCPOptionsSetDisableEcn(options NWProtocolOptions, disable_ecn bool) error
TryNWTCPOptionsSetDisableEcn is like NWTCPOptionsSetDisableEcn but returns an error instead of panicking if nw_tcp_options_set_disable_ecn is unavailable at run time.
func TryNWTCPOptionsSetEnableFastOpen ¶
func TryNWTCPOptionsSetEnableFastOpen(options NWProtocolOptions, enable_fast_open bool) error
TryNWTCPOptionsSetEnableFastOpen is like NWTCPOptionsSetEnableFastOpen but returns an error instead of panicking if nw_tcp_options_set_enable_fast_open is unavailable at run time.
func TryNWTCPOptionsSetEnableKeepalive ¶
func TryNWTCPOptionsSetEnableKeepalive(options NWProtocolOptions, enable_keepalive bool) error
TryNWTCPOptionsSetEnableKeepalive is like NWTCPOptionsSetEnableKeepalive but returns an error instead of panicking if nw_tcp_options_set_enable_keepalive is unavailable at run time.
func TryNWTCPOptionsSetKeepaliveCount ¶
func TryNWTCPOptionsSetKeepaliveCount(options NWProtocolOptions, keepalive_count uint32) error
TryNWTCPOptionsSetKeepaliveCount is like NWTCPOptionsSetKeepaliveCount but returns an error instead of panicking if nw_tcp_options_set_keepalive_count is unavailable at run time.
func TryNWTCPOptionsSetKeepaliveIdleTime ¶
func TryNWTCPOptionsSetKeepaliveIdleTime(options NWProtocolOptions, keepalive_idle_time uint32) error
TryNWTCPOptionsSetKeepaliveIdleTime is like NWTCPOptionsSetKeepaliveIdleTime but returns an error instead of panicking if nw_tcp_options_set_keepalive_idle_time is unavailable at run time.
func TryNWTCPOptionsSetKeepaliveInterval ¶
func TryNWTCPOptionsSetKeepaliveInterval(options NWProtocolOptions, keepalive_interval uint32) error
TryNWTCPOptionsSetKeepaliveInterval is like NWTCPOptionsSetKeepaliveInterval but returns an error instead of panicking if nw_tcp_options_set_keepalive_interval is unavailable at run time.
func TryNWTCPOptionsSetMaximumSegmentSize ¶
func TryNWTCPOptionsSetMaximumSegmentSize(options NWProtocolOptions, maximum_segment_size uint32) error
TryNWTCPOptionsSetMaximumSegmentSize is like NWTCPOptionsSetMaximumSegmentSize but returns an error instead of panicking if nw_tcp_options_set_maximum_segment_size is unavailable at run time.
func TryNWTCPOptionsSetMultipathForceVersion ¶
func TryNWTCPOptionsSetMultipathForceVersion(options NWProtocolOptions, multipath_force_version NWMultipathVersion) error
TryNWTCPOptionsSetMultipathForceVersion is like NWTCPOptionsSetMultipathForceVersion but returns an error instead of panicking if nw_tcp_options_set_multipath_force_version is unavailable at run time.
func TryNWTCPOptionsSetNoDelay ¶
func TryNWTCPOptionsSetNoDelay(options NWProtocolOptions, no_delay bool) error
TryNWTCPOptionsSetNoDelay is like NWTCPOptionsSetNoDelay but returns an error instead of panicking if nw_tcp_options_set_no_delay is unavailable at run time.
func TryNWTCPOptionsSetNoOptions ¶
func TryNWTCPOptionsSetNoOptions(options NWProtocolOptions, no_options bool) error
TryNWTCPOptionsSetNoOptions is like NWTCPOptionsSetNoOptions but returns an error instead of panicking if nw_tcp_options_set_no_options is unavailable at run time.
func TryNWTCPOptionsSetNoPush ¶
func TryNWTCPOptionsSetNoPush(options NWProtocolOptions, no_push bool) error
TryNWTCPOptionsSetNoPush is like NWTCPOptionsSetNoPush but returns an error instead of panicking if nw_tcp_options_set_no_push is unavailable at run time.
func TryNWTCPOptionsSetPersistTimeout ¶
func TryNWTCPOptionsSetPersistTimeout(options NWProtocolOptions, persist_timeout uint32) error
TryNWTCPOptionsSetPersistTimeout is like NWTCPOptionsSetPersistTimeout but returns an error instead of panicking if nw_tcp_options_set_persist_timeout is unavailable at run time.
func TryNWTCPOptionsSetRetransmitConnectionDropTime ¶
func TryNWTCPOptionsSetRetransmitConnectionDropTime(options NWProtocolOptions, retransmit_connection_drop_time uint32) error
TryNWTCPOptionsSetRetransmitConnectionDropTime is like NWTCPOptionsSetRetransmitConnectionDropTime but returns an error instead of panicking if nw_tcp_options_set_retransmit_connection_drop_time is unavailable at run time.
func TryNWTCPOptionsSetRetransmitFinDrop ¶
func TryNWTCPOptionsSetRetransmitFinDrop(options NWProtocolOptions, retransmit_fin_drop bool) error
TryNWTCPOptionsSetRetransmitFinDrop is like NWTCPOptionsSetRetransmitFinDrop but returns an error instead of panicking if nw_tcp_options_set_retransmit_fin_drop is unavailable at run time.
func TryNWTLSCopySecProtocolMetadata ¶
func TryNWTLSCopySecProtocolMetadata(metadata NWProtocolMetadata) (security.Sec_protocol_metadata_t, error)
TryNWTLSCopySecProtocolMetadata is like NWTLSCopySecProtocolMetadata but returns an error instead of panicking if nw_tls_copy_sec_protocol_metadata is unavailable at run time.
func TryNWTLSCopySecProtocolOptions ¶
func TryNWTLSCopySecProtocolOptions(options NWProtocolOptions) (security.Sec_protocol_options_t, error)
TryNWTLSCopySecProtocolOptions is like NWTLSCopySecProtocolOptions but returns an error instead of panicking if nw_tls_copy_sec_protocol_options is unavailable at run time.
func TryNWTXTRecordAccessBytesFunc ¶
func TryNWTXTRecordAccessBytesFunc(txt_record NWTXTRecord, access_bytes NWTXTRecordAccessBytes) (bool, error)
TryNWTXTRecordAccessBytesFunc is like NWTXTRecordAccessBytesFunc but returns an error instead of panicking if nw_txt_record_access_bytes is unavailable at run time.
func TryNWTXTRecordAccessKeyFunc ¶
func TryNWTXTRecordAccessKeyFunc(txt_record NWTXTRecord, key string, access_value NWTXTRecordAccessKey) (bool, error)
TryNWTXTRecordAccessKeyFunc is like NWTXTRecordAccessKeyFunc but returns an error instead of panicking if nw_txt_record_access_key is unavailable at run time.
func TryNWTXTRecordApply ¶
func TryNWTXTRecordApply(txt_record NWTXTRecord, applier NWTXTRecordApplier) (bool, error)
TryNWTXTRecordApply is like NWTXTRecordApply but returns an error instead of panicking if nw_txt_record_apply is unavailable at run time.
func TryNWTXTRecordGetKeyCount ¶
func TryNWTXTRecordGetKeyCount(txt_record NWTXTRecord) (uintptr, error)
TryNWTXTRecordGetKeyCount is like NWTXTRecordGetKeyCount but returns an error instead of panicking if nw_txt_record_get_key_count is unavailable at run time.
func TryNWTXTRecordIsDictionary ¶
func TryNWTXTRecordIsDictionary(txt_record NWTXTRecord) (bool, error)
TryNWTXTRecordIsDictionary is like NWTXTRecordIsDictionary but returns an error instead of panicking if nw_txt_record_is_dictionary is unavailable at run time.
func TryNWTXTRecordIsEqual ¶
func TryNWTXTRecordIsEqual(left NWTXTRecord, right NWTXTRecord) (bool, error)
TryNWTXTRecordIsEqual is like NWTXTRecordIsEqual but returns an error instead of panicking if nw_txt_record_is_equal is unavailable at run time.
func TryNWTXTRecordRemoveKey ¶
func TryNWTXTRecordRemoveKey(txt_record NWTXTRecord, key string) (bool, error)
TryNWTXTRecordRemoveKey is like NWTXTRecordRemoveKey but returns an error instead of panicking if nw_txt_record_remove_key is unavailable at run time.
func TryNWTXTRecordSetKey ¶
func TryNWTXTRecordSetKey(txt_record NWTXTRecord, key string, value []byte, value_len uintptr) (bool, error)
TryNWTXTRecordSetKey is like NWTXTRecordSetKey but returns an error instead of panicking if nw_txt_record_set_key is unavailable at run time.
func TryNWUDPOptionsSetPreferNoChecksum ¶
func TryNWUDPOptionsSetPreferNoChecksum(options NWProtocolOptions, prefer_no_checksum bool) error
TryNWUDPOptionsSetPreferNoChecksum is like NWUDPOptionsSetPreferNoChecksum but returns an error instead of panicking if nw_udp_options_set_prefer_no_checksum is unavailable at run time.
func TryNWWsMetadataSetCloseCode ¶
func TryNWWsMetadataSetCloseCode(metadata NWProtocolMetadata, close_code NWWsCloseCode) error
TryNWWsMetadataSetCloseCode is like NWWsMetadataSetCloseCode but returns an error instead of panicking if nw_ws_metadata_set_close_code is unavailable at run time.
func TryNWWsMetadataSetPongHandler ¶
func TryNWWsMetadataSetPongHandler(metadata NWProtocolMetadata, client_queue dispatch.Queue, pong_handler NWWsPongHandler) error
TryNWWsMetadataSetPongHandler is like NWWsMetadataSetPongHandler but returns an error instead of panicking if nw_ws_metadata_set_pong_handler is unavailable at run time.
func TryNWWsOptionsAddAdditionalHeader ¶
func TryNWWsOptionsAddAdditionalHeader(options NWProtocolOptions, name string, value string) error
TryNWWsOptionsAddAdditionalHeader is like NWWsOptionsAddAdditionalHeader but returns an error instead of panicking if nw_ws_options_add_additional_header is unavailable at run time.
func TryNWWsOptionsAddSubprotocol ¶
func TryNWWsOptionsAddSubprotocol(options NWProtocolOptions, subprotocol string) error
TryNWWsOptionsAddSubprotocol is like NWWsOptionsAddSubprotocol but returns an error instead of panicking if nw_ws_options_add_subprotocol is unavailable at run time.
func TryNWWsOptionsSetAutoReplyPing ¶
func TryNWWsOptionsSetAutoReplyPing(options NWProtocolOptions, auto_reply_ping bool) error
TryNWWsOptionsSetAutoReplyPing is like NWWsOptionsSetAutoReplyPing but returns an error instead of panicking if nw_ws_options_set_auto_reply_ping is unavailable at run time.
func TryNWWsOptionsSetClientRequestHandler ¶
func TryNWWsOptionsSetClientRequestHandler(options NWProtocolOptions, client_queue dispatch.Queue, handler NWWsClientRequestHandler) error
TryNWWsOptionsSetClientRequestHandler is like NWWsOptionsSetClientRequestHandler but returns an error instead of panicking if nw_ws_options_set_client_request_handler is unavailable at run time.
func TryNWWsOptionsSetMaximumMessageSize ¶
func TryNWWsOptionsSetMaximumMessageSize(options NWProtocolOptions, maximum_message_size uintptr) error
TryNWWsOptionsSetMaximumMessageSize is like NWWsOptionsSetMaximumMessageSize but returns an error instead of panicking if nw_ws_options_set_maximum_message_size is unavailable at run time.
func TryNWWsOptionsSetSkipHandshake ¶
func TryNWWsOptionsSetSkipHandshake(options NWProtocolOptions, skip_handshake bool) error
TryNWWsOptionsSetSkipHandshake is like NWWsOptionsSetSkipHandshake but returns an error instead of panicking if nw_ws_options_set_skip_handshake is unavailable at run time.
func TryNWWsRequestEnumerateAdditionalHeaders ¶
func TryNWWsRequestEnumerateAdditionalHeaders(request NWWsRequest, enumerator NWWsAdditionalHeaderEnumerator) (bool, error)
TryNWWsRequestEnumerateAdditionalHeaders is like NWWsRequestEnumerateAdditionalHeaders but returns an error instead of panicking if nw_ws_request_enumerate_additional_headers is unavailable at run time.
func TryNWWsRequestEnumerateSubprotocols ¶
func TryNWWsRequestEnumerateSubprotocols(request NWWsRequest, enumerator NWWsSubprotocolEnumerator) (bool, error)
TryNWWsRequestEnumerateSubprotocols is like NWWsRequestEnumerateSubprotocols but returns an error instead of panicking if nw_ws_request_enumerate_subprotocols is unavailable at run time.
func TryNWWsResponseAddAdditionalHeader ¶
func TryNWWsResponseAddAdditionalHeader(response NWWsResponse, name string, value string) error
TryNWWsResponseAddAdditionalHeader is like NWWsResponseAddAdditionalHeader but returns an error instead of panicking if nw_ws_response_add_additional_header is unavailable at run time.
func TryNWWsResponseEnumerateAdditionalHeaders ¶
func TryNWWsResponseEnumerateAdditionalHeaders(response NWWsResponse, enumerator NWWsAdditionalHeaderEnumerator) (bool, error)
TryNWWsResponseEnumerateAdditionalHeaders is like NWWsResponseEnumerateAdditionalHeaders but returns an error instead of panicking if nw_ws_response_enumerate_additional_headers is unavailable at run time.
func TryNWWsResponseGetSelectedSubprotocol ¶
func TryNWWsResponseGetSelectedSubprotocol(response NWWsResponse) (*byte, error)
TryNWWsResponseGetSelectedSubprotocol is like NWWsResponseGetSelectedSubprotocol but returns an error instead of panicking if nw_ws_response_get_selected_subprotocol is unavailable at run time.
Types ¶
type NWAdvertiseDescriptor ¶ added in v0.6.3
type NWAdvertiseDescriptor struct {
objectivec.Object
}
NWAdvertiseDescriptor is a description used to advertise the Bonjour service that a listener provides.
See: https://developer.apple.com/documentation/Network/nw_advertise_descriptor_t
func NWAdvertiseDescriptorCreateApplicationService ¶ added in v0.6.3
func NWAdvertiseDescriptorCreateApplicationService(application_service_name string) NWAdvertiseDescriptor
NWAdvertiseDescriptorCreateApplicationService.
It panics if nw_advertise_descriptor_create_application_service is unavailable at run time; use TryNWAdvertiseDescriptorCreateApplicationService to get an error instead.
func NWAdvertiseDescriptorCreateBonjourService ¶ added in v0.6.3
func NWAdvertiseDescriptorCreateBonjourService(name string, type_ string, domain string) NWAdvertiseDescriptor
NWAdvertiseDescriptorCreateBonjourService initializes a Bonjour service to advertise.
It panics if nw_advertise_descriptor_create_bonjour_service is unavailable at run time; use TryNWAdvertiseDescriptorCreateBonjourService to get an error instead.
func NWAdvertiseDescriptorFromID ¶ added in v0.6.3
func NWAdvertiseDescriptorFromID(id objc.ID) NWAdvertiseDescriptor
NWAdvertiseDescriptorFromID constructs a NWAdvertiseDescriptor from an objc.ID.
func TryNWAdvertiseDescriptorCreateApplicationService ¶
func TryNWAdvertiseDescriptorCreateApplicationService(application_service_name string) (NWAdvertiseDescriptor, error)
TryNWAdvertiseDescriptorCreateApplicationService is like NWAdvertiseDescriptorCreateApplicationService but returns an error instead of panicking if nw_advertise_descriptor_create_application_service is unavailable at run time.
func TryNWAdvertiseDescriptorCreateBonjourService ¶
func TryNWAdvertiseDescriptorCreateBonjourService(name string, type_ string, domain string) (NWAdvertiseDescriptor, error)
TryNWAdvertiseDescriptorCreateBonjourService is like NWAdvertiseDescriptorCreateBonjourService but returns an error instead of panicking if nw_advertise_descriptor_create_bonjour_service is unavailable at run time.
type NWBrowseDescriptor ¶ added in v0.6.3
type NWBrowseDescriptor struct {
objectivec.Object
}
NWBrowseDescriptor is a service description used to discover Bonjour services.
See: https://developer.apple.com/documentation/Network/nw_browse_descriptor_t
func NWBrowseDescriptorCreateApplicationService ¶ added in v0.6.3
func NWBrowseDescriptorCreateApplicationService(application_service_name string) NWBrowseDescriptor
NWBrowseDescriptorCreateApplicationService.
It panics if nw_browse_descriptor_create_application_service is unavailable at run time; use TryNWBrowseDescriptorCreateApplicationService to get an error instead.
func NWBrowseDescriptorCreateBonjourService ¶ added in v0.6.3
func NWBrowseDescriptorCreateBonjourService(type_ string, domain string) NWBrowseDescriptor
NWBrowseDescriptorCreateBonjourService initializes a service descriptor used to discover a Bonjour service.
It panics if nw_browse_descriptor_create_bonjour_service is unavailable at run time; use TryNWBrowseDescriptorCreateBonjourService to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browse_descriptor_create_bonjour_service(_:_:)
func NWBrowseDescriptorFromID ¶ added in v0.6.3
func NWBrowseDescriptorFromID(id objc.ID) NWBrowseDescriptor
NWBrowseDescriptorFromID constructs a NWBrowseDescriptor from an objc.ID.
func NWBrowserCopyBrowseDescriptor ¶ added in v0.6.3
func NWBrowserCopyBrowseDescriptor(browser NWBrowser) NWBrowseDescriptor
NWBrowserCopyBrowseDescriptor accesses the service descriptor with which the browser was created.
It panics if nw_browser_copy_browse_descriptor is unavailable at run time; use TryNWBrowserCopyBrowseDescriptor to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browser_copy_browse_descriptor(_:)
func TryNWBrowseDescriptorCreateApplicationService ¶
func TryNWBrowseDescriptorCreateApplicationService(application_service_name string) (NWBrowseDescriptor, error)
TryNWBrowseDescriptorCreateApplicationService is like NWBrowseDescriptorCreateApplicationService but returns an error instead of panicking if nw_browse_descriptor_create_application_service is unavailable at run time.
func TryNWBrowseDescriptorCreateBonjourService ¶
func TryNWBrowseDescriptorCreateBonjourService(type_ string, domain string) (NWBrowseDescriptor, error)
TryNWBrowseDescriptorCreateBonjourService is like NWBrowseDescriptorCreateBonjourService but returns an error instead of panicking if nw_browse_descriptor_create_bonjour_service is unavailable at run time.
func TryNWBrowserCopyBrowseDescriptor ¶
func TryNWBrowserCopyBrowseDescriptor(browser NWBrowser) (NWBrowseDescriptor, error)
TryNWBrowserCopyBrowseDescriptor is like NWBrowserCopyBrowseDescriptor but returns an error instead of panicking if nw_browser_copy_browse_descriptor is unavailable at run time.
type NWBrowseResult ¶ added in v0.6.3
type NWBrowseResult struct {
objectivec.Object
}
NWBrowseResult is a discovered service and metadata about the service.
See: https://developer.apple.com/documentation/Network/nw_browse_result_t
func NWBrowseResultFromID ¶ added in v0.6.3
func NWBrowseResultFromID(id objc.ID) NWBrowseResult
NWBrowseResultFromID constructs a NWBrowseResult from an objc.ID.
type NWBrowseResultChange ¶ added in v0.6.3
type NWBrowseResultChange uint32
const ( // NWBrowseResultChangeIdentical: The compared services are identical. NWBrowseResultChangeIdentical NWBrowseResultChange = 0x1 // NWBrowseResultChangeInterfaceAdded: The service was discovered over a new interface. NWBrowseResultChangeInterfaceAdded NWBrowseResultChange = 0x8 // NWBrowseResultChangeInterfaceRemoved: The service was no longer discovered over a certain interface. NWBrowseResultChangeInterfaceRemoved NWBrowseResultChange = 0x10 // NWBrowseResultChangeInvalid: The comparison was invallid. NWBrowseResultChangeInvalid NWBrowseResultChange = 0 // NWBrowseResultChangeResultAdded: A new service was discovered. NWBrowseResultChangeResultAdded NWBrowseResultChange = 0x2 // NWBrowseResultChangeResultRemoved: A previously discovered service was removed. NWBrowseResultChangeResultRemoved NWBrowseResultChange = 0x4 // NWBrowseResultChangeTXTRecordChanged: The service’s associated TXT record changed. NWBrowseResultChangeTXTRecordChanged NWBrowseResultChange = 0x20 )
func NWBrowseResultGetChanges ¶ added in v0.6.3
func NWBrowseResultGetChanges(old_result NWBrowseResult, new_result NWBrowseResult) NWBrowseResultChange
NWBrowseResultGetChanges compares two discovered services and calculates changes between them.
It panics if nw_browse_result_get_changes is unavailable at run time; use TryNWBrowseResultGetChanges to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browse_result_get_changes(_:_:)
func TryNWBrowseResultGetChanges ¶
func TryNWBrowseResultGetChanges(old_result NWBrowseResult, new_result NWBrowseResult) (NWBrowseResultChange, error)
TryNWBrowseResultGetChanges is like NWBrowseResultGetChanges but returns an error instead of panicking if nw_browse_result_get_changes is unavailable at run time.
func (NWBrowseResultChange) String ¶ added in v0.6.3
func (e NWBrowseResultChange) String() string
type NWBrowseResultEnumerateInterface ¶ added in v0.6.3
type NWBrowseResultEnumerateInterface = func(NWInterface) bool
NWBrowseResultEnumerateInterface is a handler that enumerates the interfaces associated with a discovered service.
See: https://developer.apple.com/documentation/Network/nw_browse_result_enumerate_interface_t
type NWBrowser ¶ added in v0.6.3
type NWBrowser struct {
objectivec.Object
}
NWBrowser is an object you use to browse for available network services.
See: https://developer.apple.com/documentation/Network/nw_browser_t
func NWBrowserCreate ¶ added in v0.6.3
func NWBrowserCreate(descriptor NWBrowseDescriptor, parameters NWParameters) NWBrowser
NWBrowserCreate initializes a browser with a type of service to discover.
It panics if nw_browser_create is unavailable at run time; use TryNWBrowserCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browser_create(_:_:)
func NWBrowserFromID ¶ added in v0.6.3
NWBrowserFromID constructs a NWBrowser from an objc.ID.
func TryNWBrowserCreate ¶
func TryNWBrowserCreate(descriptor NWBrowseDescriptor, parameters NWParameters) (NWBrowser, error)
TryNWBrowserCreate is like NWBrowserCreate but returns an error instead of panicking if nw_browser_create is unavailable at run time.
type NWBrowserBrowseResultsChangedHandler ¶ added in v0.6.3
type NWBrowserBrowseResultsChangedHandler = func(NWBrowseResult, NWBrowseResult, bool)
NWBrowserBrowseResultsChangedHandler is a handler that delivers updates about discovered services.
See: https://developer.apple.com/documentation/Network/nw_browser_browse_results_changed_handler_t
type NWBrowserState ¶ added in v0.6.3
type NWBrowserState uint32
See: https://developer.apple.com/documentation/Network/nw_browser_state_t
const ( // NWBrowserStateCancelled: The browser has been canceled. NWBrowserStateCancelled NWBrowserState = 3 // NWBrowserStateFailed: The browser has encountered a fatal error. NWBrowserStateFailed NWBrowserState = 2 // NWBrowserStateInvalid: The browser is not valid. NWBrowserStateInvalid NWBrowserState = 0 // NWBrowserStateReady: The browser is registered for discovering services. NWBrowserStateReady NWBrowserState = 1 NWBrowserStateWaiting NWBrowserState = 4 )
func (NWBrowserState) String ¶ added in v0.6.3
func (e NWBrowserState) String() string
type NWBrowserStateChangedHandler ¶ added in v0.6.3
type NWBrowserStateChangedHandler = func(NWBrowserState, NWError)
NWBrowserStateChangedHandler is a handler that delivers browser state updates with associated errors.
See: https://developer.apple.com/documentation/Network/nw_browser_state_changed_handler_t
type NWConnection ¶ added in v0.6.3
type NWConnection struct {
objectivec.Object
}
NWConnection is a bidirectional data connection between a local endpoint and a remote endpoint.
See: https://developer.apple.com/documentation/Network/nw_connection_t
func NWConnectionCreate ¶ added in v0.6.3
func NWConnectionCreate(endpoint NWEndpoint, parameters NWParameters) NWConnection
NWConnectionCreate initializes a new connection to a remote endpoint.
It panics if nw_connection_create is unavailable at run time; use TryNWConnectionCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_create(_:_:)
func NWConnectionFromID ¶ added in v0.6.3
func NWConnectionFromID(id objc.ID) NWConnection
NWConnectionFromID constructs a NWConnection from an objc.ID.
func NWConnectionGroupExtractConnection ¶ added in v0.6.3
func NWConnectionGroupExtractConnection(group NWConnectionGroup, endpoint NWEndpoint, protocol_options NWProtocolOptions) NWConnection
NWConnectionGroupExtractConnection.
It panics if nw_connection_group_extract_connection is unavailable at run time; use TryNWConnectionGroupExtractConnection to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_extract_connection(_:_:_:)
func NWConnectionGroupExtractConnectionForMessage ¶ added in v0.6.3
func NWConnectionGroupExtractConnectionForMessage(group NWConnectionGroup, context NWContentContext) NWConnection
NWConnectionGroupExtractConnectionForMessage converts a message you receive from an endpoint into a connection object that you use for long-term communication with that endpoint.
It panics if nw_connection_group_extract_connection_for_message is unavailable at run time; use TryNWConnectionGroupExtractConnectionForMessage to get an error instead.
func TryNWConnectionCreate ¶
func TryNWConnectionCreate(endpoint NWEndpoint, parameters NWParameters) (NWConnection, error)
TryNWConnectionCreate is like NWConnectionCreate but returns an error instead of panicking if nw_connection_create is unavailable at run time.
func TryNWConnectionGroupExtractConnection ¶
func TryNWConnectionGroupExtractConnection(group NWConnectionGroup, endpoint NWEndpoint, protocol_options NWProtocolOptions) (NWConnection, error)
TryNWConnectionGroupExtractConnection is like NWConnectionGroupExtractConnection but returns an error instead of panicking if nw_connection_group_extract_connection is unavailable at run time.
func TryNWConnectionGroupExtractConnectionForMessage ¶
func TryNWConnectionGroupExtractConnectionForMessage(group NWConnectionGroup, context NWContentContext) (NWConnection, error)
TryNWConnectionGroupExtractConnectionForMessage is like NWConnectionGroupExtractConnectionForMessage but returns an error instead of panicking if nw_connection_group_extract_connection_for_message is unavailable at run time.
type NWConnectionBooleanEventHandler ¶ added in v0.6.3
type NWConnectionBooleanEventHandler = func(bool)
NWConnectionBooleanEventHandler is a handler that receives Boolean state updates from a connection, such as viability and better path state.
See: https://developer.apple.com/documentation/Network/nw_connection_boolean_event_handler_t
type NWConnectionGroup ¶ added in v0.6.3
type NWConnectionGroup struct {
objectivec.Object
}
NWConnectionGroup is an object you use to communicate with a group of endpoints, such as an IP multicast group on a local network.
See: https://developer.apple.com/documentation/Network/nw_connection_group_t
func NWConnectionGroupCreate ¶ added in v0.6.3
func NWConnectionGroupCreate(group_descriptor NWGroupDescriptor, parameters NWParameters) NWConnectionGroup
NWConnectionGroupCreate initializes a new connection group with a group identifier.
It panics if nw_connection_group_create is unavailable at run time; use TryNWConnectionGroupCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_create(_:_:)
func NWConnectionGroupFromID ¶ added in v0.6.3
func NWConnectionGroupFromID(id objc.ID) NWConnectionGroup
NWConnectionGroupFromID constructs a NWConnectionGroup from an objc.ID.
func TryNWConnectionGroupCreate ¶
func TryNWConnectionGroupCreate(group_descriptor NWGroupDescriptor, parameters NWParameters) (NWConnectionGroup, error)
TryNWConnectionGroupCreate is like NWConnectionGroupCreate but returns an error instead of panicking if nw_connection_group_create is unavailable at run time.
type NWConnectionGroupNewConnectionHandler ¶ added in v0.6.3
type NWConnectionGroupNewConnectionHandler = func(NWConnection)
See: https://developer.apple.com/documentation/Network/nw_connection_group_new_connection_handler_t
type NWConnectionGroupReceiveHandler ¶ added in v0.6.3
type NWConnectionGroupReceiveHandler = func(objectivec.Object, NWContentContext, bool)
NWConnectionGroupReceiveHandler is a handler that receives inbound messages from members of the group.
See: https://developer.apple.com/documentation/Network/nw_connection_group_receive_handler_t
type NWConnectionGroupSendCompletion ¶ added in v0.6.3
type NWConnectionGroupSendCompletion = func(NWError)
NWConnectionGroupSendCompletion is a completion to notify you when data has been processed and sent.
See: https://developer.apple.com/documentation/Network/nw_connection_group_send_completion_t
type NWConnectionGroupState ¶ added in v0.6.3
type NWConnectionGroupState uint32
See: https://developer.apple.com/documentation/Network/nw_connection_group_state_t
const ( // NWConnectionGroupStateCancelled: The connection group has been canceled. NWConnectionGroupStateCancelled NWConnectionGroupState = 4 // NWConnectionGroupStateFailed: The connection group encountered a fatal error. NWConnectionGroupStateFailed NWConnectionGroupState = 3 // NWConnectionGroupStateInvalid: The connection group is not valid. NWConnectionGroupStateInvalid NWConnectionGroupState = 0 // NWConnectionGroupStateReady: The connection group is joined, and ready to send and receive data. NWConnectionGroupStateReady NWConnectionGroupState = 2 // NWConnectionGroupStateWaiting: The connection group is waiting for a network path change. NWConnectionGroupStateWaiting NWConnectionGroupState = 1 )
func (NWConnectionGroupState) String ¶ added in v0.6.3
func (e NWConnectionGroupState) String() string
type NWConnectionGroupStateChangedHandler ¶ added in v0.6.3
type NWConnectionGroupStateChangedHandler = func(NWConnectionGroupState, NWError)
NWConnectionGroupStateChangedHandler is a handler that receives connection group state updates.
See: https://developer.apple.com/documentation/Network/nw_connection_group_state_changed_handler_t
type NWConnectionPathEventHandler ¶ added in v0.6.3
type NWConnectionPathEventHandler = func(NWPath)
NWConnectionPathEventHandler is a handler that delivers network path updates.
See: https://developer.apple.com/documentation/Network/nw_connection_path_event_handler_t
type NWConnectionReceiveCompletion ¶ added in v0.6.3
type NWConnectionReceiveCompletion = func(content objectivec.Object, context NWContentContext, is_complete bool, error_ NWError)
NWConnectionReceiveCompletion is a completion handler that indicates when content has been received by the connection, or that an error was encountered.
See: https://developer.apple.com/documentation/Network/nw_connection_receive_completion_t
type NWConnectionSendCompletion ¶ added in v0.6.3
type NWConnectionSendCompletion = func(NWError)
NWConnectionSendCompletion is a completion handler that indicates when the connection has finished processing sent content.
See: https://developer.apple.com/documentation/Network/nw_connection_send_completion_t
type NWConnectionState ¶ added in v0.6.3
type NWConnectionState uint32
See: https://developer.apple.com/documentation/Network/nw_connection_state_t
const ( // NWConnectionStateCancelled: The connection has been canceled. NWConnectionStateCancelled NWConnectionState = 5 // NWConnectionStateFailed: The connection has disconnected or encountered an error. NWConnectionStateFailed NWConnectionState = 4 // NWConnectionStateInvalid: The connection is not valid. NWConnectionStateInvalid NWConnectionState = 0 // NWConnectionStatePreparing: The connection in the process of being established. NWConnectionStatePreparing NWConnectionState = 2 // NWConnectionStateReady: The connection is established, and ready to send and receive data. NWConnectionStateReady NWConnectionState = 3 // NWConnectionStateWaiting: The connection is waiting for a network path change. NWConnectionStateWaiting NWConnectionState = 1 )
func (NWConnectionState) String ¶ added in v0.6.3
func (e NWConnectionState) String() string
type NWConnectionStateChangedHandler ¶ added in v0.6.3
type NWConnectionStateChangedHandler = func(NWConnectionState, NWError)
NWConnectionStateChangedHandler is a handler that delivers connection state updates with associated errors.
See: https://developer.apple.com/documentation/Network/nw_connection_state_changed_handler_t
type NWContentContext ¶ added in v0.6.3
type NWContentContext struct {
objectivec.Object
}
NWContentContext is a representation of a message to send or receive, containing protocol metadata and send properties.
See: https://developer.apple.com/documentation/Network/nw_content_context_t
func NWContentContextCopyAntecedent ¶ added in v0.6.3
func NWContentContextCopyAntecedent(context NWContentContext) NWContentContext
NWContentContextCopyAntecedent accesses the optional message context that must be sent before the context you are sending.
It panics if nw_content_context_copy_antecedent is unavailable at run time; use TryNWContentContextCopyAntecedent to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_copy_antecedent(_:)
func NWContentContextCreate ¶ added in v0.6.3
func NWContentContextCreate(context_identifier string) NWContentContext
NWContentContextCreate initializes a custom message context.
It panics if nw_content_context_create is unavailable at run time; use TryNWContentContextCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_create(_:)
func NWContentContextFromID ¶ added in v0.6.3
func NWContentContextFromID(id objc.ID) NWContentContext
NWContentContextFromID constructs a NWContentContext from an objc.ID.
func TryNWContentContextCopyAntecedent ¶
func TryNWContentContextCopyAntecedent(context NWContentContext) (NWContentContext, error)
TryNWContentContextCopyAntecedent is like NWContentContextCopyAntecedent but returns an error instead of panicking if nw_content_context_copy_antecedent is unavailable at run time.
func TryNWContentContextCreate ¶
func TryNWContentContextCreate(context_identifier string) (NWContentContext, error)
TryNWContentContextCreate is like NWContentContextCreate but returns an error instead of panicking if nw_content_context_create is unavailable at run time.
type NWDataTransferReport ¶ added in v0.6.3
type NWDataTransferReport struct {
objectivec.Object
}
NWDataTransferReport is a report that provides metrics about data being sent and received on a connection.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_t
func NWConnectionCreateNewDataTransferReport ¶ added in v0.6.3
func NWConnectionCreateNewDataTransferReport(connection NWConnection) NWDataTransferReport
NWConnectionCreateNewDataTransferReport begins a new data transfer report, which can later be collected.
It panics if nw_connection_create_new_data_transfer_report is unavailable at run time; use TryNWConnectionCreateNewDataTransferReport to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_create_new_data_transfer_report(_:)
func NWDataTransferReportFromID ¶ added in v0.6.3
func NWDataTransferReportFromID(id objc.ID) NWDataTransferReport
NWDataTransferReportFromID constructs a NWDataTransferReport from an objc.ID.
func TryNWConnectionCreateNewDataTransferReport ¶
func TryNWConnectionCreateNewDataTransferReport(connection NWConnection) (NWDataTransferReport, error)
TryNWConnectionCreateNewDataTransferReport is like NWConnectionCreateNewDataTransferReport but returns an error instead of panicking if nw_connection_create_new_data_transfer_report is unavailable at run time.
type NWDataTransferReportCollectBlock ¶ added in v0.6.3
type NWDataTransferReportCollectBlock = func(NWDataTransferReport)
NWDataTransferReportCollectBlock is a block that is delivered when a data transfer report is fully collected.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_collect_block_t
type NWDataTransferReportState ¶ added in v0.6.3
type NWDataTransferReportState uint32
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_state_t
const ( // NWDataTransferReportStateCollected: The data transfer report has completed, and data can be examined. NWDataTransferReportStateCollected NWDataTransferReportState = 2 // NWDataTransferReportStateCollecting: The data transfer report has been started but is still collecting data. NWDataTransferReportStateCollecting NWDataTransferReportState = 1 )
func NWDataTransferReportGetState ¶ added in v0.6.3
func NWDataTransferReportGetState(report NWDataTransferReport) NWDataTransferReportState
NWDataTransferReportGetState checks whether a data transfer report is collected.
It panics if nw_data_transfer_report_get_state is unavailable at run time; use TryNWDataTransferReportGetState to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_state(_:)
func TryNWDataTransferReportGetState ¶
func TryNWDataTransferReportGetState(report NWDataTransferReport) (NWDataTransferReportState, error)
TryNWDataTransferReportGetState is like NWDataTransferReportGetState but returns an error instead of panicking if nw_data_transfer_report_get_state is unavailable at run time.
func (NWDataTransferReportState) String ¶ added in v0.6.3
func (e NWDataTransferReportState) String() string
type NWEndpoint ¶ added in v0.6.3
type NWEndpoint struct {
objectivec.Object
}
NWEndpoint is a local or remote endpoint in a network connection.
See: https://developer.apple.com/documentation/Network/nw_endpoint_t
func NWBrowseResultCopyEndpoint ¶ added in v0.6.3
func NWBrowseResultCopyEndpoint(result NWBrowseResult) NWEndpoint
NWBrowseResultCopyEndpoint the discovered service endpoint.
It panics if nw_browse_result_copy_endpoint is unavailable at run time; use TryNWBrowseResultCopyEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browse_result_copy_endpoint(_:)
func NWConnectionCopyEndpoint ¶ added in v0.6.3
func NWConnectionCopyEndpoint(connection NWConnection) NWEndpoint
NWConnectionCopyEndpoint accesses the endpoint with which the connection was created.
It panics if nw_connection_copy_endpoint is unavailable at run time; use TryNWConnectionCopyEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_copy_endpoint(_:)
func NWConnectionGroupCopyLocalEndpointForMessage ¶ added in v0.6.3
func NWConnectionGroupCopyLocalEndpointForMessage(group NWConnectionGroup, context NWContentContext) NWEndpoint
NWConnectionGroupCopyLocalEndpointForMessage accesses the local address and port you use to receive the message.
It panics if nw_connection_group_copy_local_endpoint_for_message is unavailable at run time; use TryNWConnectionGroupCopyLocalEndpointForMessage to get an error instead.
func NWConnectionGroupCopyRemoteEndpointForMessage ¶ added in v0.6.3
func NWConnectionGroupCopyRemoteEndpointForMessage(group NWConnectionGroup, context NWContentContext) NWEndpoint
NWConnectionGroupCopyRemoteEndpointForMessage accesses the endpoint that originates the message you receive.
It panics if nw_connection_group_copy_remote_endpoint_for_message is unavailable at run time; use TryNWConnectionGroupCopyRemoteEndpointForMessage to get an error instead.
func NWEndpointCreateAddress ¶ added in v0.6.3
func NWEndpointCreateAddress(address unsafe.Pointer) NWEndpoint
NWEndpointCreateAddress creates a network endpoint with an address structure.
It panics if nw_endpoint_create_address is unavailable at run time; use TryNWEndpointCreateAddress to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_create_address(_:)
func NWEndpointCreateBonjourService ¶ added in v0.6.3
func NWEndpointCreateBonjourService(name string, type_ string, domain string) NWEndpoint
NWEndpointCreateBonjourService creates a network endpoint with a Bonjour service name, type, and domain.
It panics if nw_endpoint_create_bonjour_service is unavailable at run time; use TryNWEndpointCreateBonjourService to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_create_bonjour_service(_:_:_:)
func NWEndpointCreateHost ¶ added in v0.6.3
func NWEndpointCreateHost(hostname string, port string) NWEndpoint
NWEndpointCreateHost creates a network endpoint with a hostname and port, where the hostname may be interpreted as an IP address.
It panics if nw_endpoint_create_host is unavailable at run time; use TryNWEndpointCreateHost to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_create_host(_:_:)
func NWEndpointCreateURL ¶ added in v0.6.3
func NWEndpointCreateURL(url string) NWEndpoint
NWEndpointCreateURL creates a network endpoint with a URL string.
It panics if nw_endpoint_create_url is unavailable at run time; use TryNWEndpointCreateURL to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_create_url(_:)
func NWEndpointFromID ¶ added in v0.6.3
func NWEndpointFromID(id objc.ID) NWEndpoint
NWEndpointFromID constructs a NWEndpoint from an objc.ID.
func NWEstablishmentReportCopyProxyEndpoint ¶ added in v0.6.3
func NWEstablishmentReportCopyProxyEndpoint(report NWEstablishmentReport) NWEndpoint
NWEstablishmentReportCopyProxyEndpoint accesses the endpoint of the proxy the connection used.
It panics if nw_establishment_report_copy_proxy_endpoint is unavailable at run time; use TryNWEstablishmentReportCopyProxyEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_establishment_report_copy_proxy_endpoint(_:)
func NWFramerCopyLocalEndpoint ¶ added in v0.6.3
func NWFramerCopyLocalEndpoint(framer NWFramer) NWEndpoint
NWFramerCopyLocalEndpoint accesses the local endpoint of the connection in which your protocol is running.
It panics if nw_framer_copy_local_endpoint is unavailable at run time; use TryNWFramerCopyLocalEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_copy_local_endpoint(_:)
func NWFramerCopyRemoteEndpoint ¶ added in v0.6.3
func NWFramerCopyRemoteEndpoint(framer NWFramer) NWEndpoint
NWFramerCopyRemoteEndpoint accesses the remote endpoint of the connection in which your protocol is running.
It panics if nw_framer_copy_remote_endpoint is unavailable at run time; use TryNWFramerCopyRemoteEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_copy_remote_endpoint(_:)
func NWParametersCopyLocalEndpoint ¶ added in v0.6.3
func NWParametersCopyLocalEndpoint(parameters NWParameters) NWEndpoint
NWParametersCopyLocalEndpoint accesses the local IP address and port used for connections and listeners.
It panics if nw_parameters_copy_local_endpoint is unavailable at run time; use TryNWParametersCopyLocalEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_copy_local_endpoint(_:)
func NWPathCopyEffectiveLocalEndpoint ¶ added in v0.6.3
func NWPathCopyEffectiveLocalEndpoint(path NWPath) NWEndpoint
NWPathCopyEffectiveLocalEndpoint accesses the local endpoint in use by a connection’s network path.
It panics if nw_path_copy_effective_local_endpoint is unavailable at run time; use TryNWPathCopyEffectiveLocalEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_copy_effective_local_endpoint(_:)
func NWPathCopyEffectiveRemoteEndpoint ¶ added in v0.6.3
func NWPathCopyEffectiveRemoteEndpoint(path NWPath) NWEndpoint
NWPathCopyEffectiveRemoteEndpoint accesses the remote endpoint in use by a connection’s network path.
It panics if nw_path_copy_effective_remote_endpoint is unavailable at run time; use TryNWPathCopyEffectiveRemoteEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_copy_effective_remote_endpoint(_:)
func NWResolutionReportCopyPreferredEndpoint ¶ added in v0.6.3
func NWResolutionReportCopyPreferredEndpoint(resolution_report NWResolutionReport) NWEndpoint
NWResolutionReportCopyPreferredEndpoint accesses the resolved endpoint that the connection used for its first connection attempt.
It panics if nw_resolution_report_copy_preferred_endpoint is unavailable at run time; use TryNWResolutionReportCopyPreferredEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_copy_preferred_endpoint(_:)
func NWResolutionReportCopySuccessfulEndpoint ¶ added in v0.6.3
func NWResolutionReportCopySuccessfulEndpoint(resolution_report NWResolutionReport) NWEndpoint
NWResolutionReportCopySuccessfulEndpoint accesses the resolved endpoint that led to the established connection.
It panics if nw_resolution_report_copy_successful_endpoint is unavailable at run time; use TryNWResolutionReportCopySuccessfulEndpoint to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_copy_successful_endpoint(_:)
func TryNWBrowseResultCopyEndpoint ¶
func TryNWBrowseResultCopyEndpoint(result NWBrowseResult) (NWEndpoint, error)
TryNWBrowseResultCopyEndpoint is like NWBrowseResultCopyEndpoint but returns an error instead of panicking if nw_browse_result_copy_endpoint is unavailable at run time.
func TryNWConnectionCopyEndpoint ¶
func TryNWConnectionCopyEndpoint(connection NWConnection) (NWEndpoint, error)
TryNWConnectionCopyEndpoint is like NWConnectionCopyEndpoint but returns an error instead of panicking if nw_connection_copy_endpoint is unavailable at run time.
func TryNWConnectionGroupCopyLocalEndpointForMessage ¶
func TryNWConnectionGroupCopyLocalEndpointForMessage(group NWConnectionGroup, context NWContentContext) (NWEndpoint, error)
TryNWConnectionGroupCopyLocalEndpointForMessage is like NWConnectionGroupCopyLocalEndpointForMessage but returns an error instead of panicking if nw_connection_group_copy_local_endpoint_for_message is unavailable at run time.
func TryNWConnectionGroupCopyRemoteEndpointForMessage ¶
func TryNWConnectionGroupCopyRemoteEndpointForMessage(group NWConnectionGroup, context NWContentContext) (NWEndpoint, error)
TryNWConnectionGroupCopyRemoteEndpointForMessage is like NWConnectionGroupCopyRemoteEndpointForMessage but returns an error instead of panicking if nw_connection_group_copy_remote_endpoint_for_message is unavailable at run time.
func TryNWEndpointCreateAddress ¶
func TryNWEndpointCreateAddress(address unsafe.Pointer) (NWEndpoint, error)
TryNWEndpointCreateAddress is like NWEndpointCreateAddress but returns an error instead of panicking if nw_endpoint_create_address is unavailable at run time.
func TryNWEndpointCreateBonjourService ¶
func TryNWEndpointCreateBonjourService(name string, type_ string, domain string) (NWEndpoint, error)
TryNWEndpointCreateBonjourService is like NWEndpointCreateBonjourService but returns an error instead of panicking if nw_endpoint_create_bonjour_service is unavailable at run time.
func TryNWEndpointCreateHost ¶
func TryNWEndpointCreateHost(hostname string, port string) (NWEndpoint, error)
TryNWEndpointCreateHost is like NWEndpointCreateHost but returns an error instead of panicking if nw_endpoint_create_host is unavailable at run time.
func TryNWEndpointCreateURL ¶
func TryNWEndpointCreateURL(url string) (NWEndpoint, error)
TryNWEndpointCreateURL is like NWEndpointCreateURL but returns an error instead of panicking if nw_endpoint_create_url is unavailable at run time.
func TryNWEstablishmentReportCopyProxyEndpoint ¶
func TryNWEstablishmentReportCopyProxyEndpoint(report NWEstablishmentReport) (NWEndpoint, error)
TryNWEstablishmentReportCopyProxyEndpoint is like NWEstablishmentReportCopyProxyEndpoint but returns an error instead of panicking if nw_establishment_report_copy_proxy_endpoint is unavailable at run time.
func TryNWFramerCopyLocalEndpoint ¶
func TryNWFramerCopyLocalEndpoint(framer NWFramer) (NWEndpoint, error)
TryNWFramerCopyLocalEndpoint is like NWFramerCopyLocalEndpoint but returns an error instead of panicking if nw_framer_copy_local_endpoint is unavailable at run time.
func TryNWFramerCopyRemoteEndpoint ¶
func TryNWFramerCopyRemoteEndpoint(framer NWFramer) (NWEndpoint, error)
TryNWFramerCopyRemoteEndpoint is like NWFramerCopyRemoteEndpoint but returns an error instead of panicking if nw_framer_copy_remote_endpoint is unavailable at run time.
func TryNWParametersCopyLocalEndpoint ¶
func TryNWParametersCopyLocalEndpoint(parameters NWParameters) (NWEndpoint, error)
TryNWParametersCopyLocalEndpoint is like NWParametersCopyLocalEndpoint but returns an error instead of panicking if nw_parameters_copy_local_endpoint is unavailable at run time.
func TryNWPathCopyEffectiveLocalEndpoint ¶
func TryNWPathCopyEffectiveLocalEndpoint(path NWPath) (NWEndpoint, error)
TryNWPathCopyEffectiveLocalEndpoint is like NWPathCopyEffectiveLocalEndpoint but returns an error instead of panicking if nw_path_copy_effective_local_endpoint is unavailable at run time.
func TryNWPathCopyEffectiveRemoteEndpoint ¶
func TryNWPathCopyEffectiveRemoteEndpoint(path NWPath) (NWEndpoint, error)
TryNWPathCopyEffectiveRemoteEndpoint is like NWPathCopyEffectiveRemoteEndpoint but returns an error instead of panicking if nw_path_copy_effective_remote_endpoint is unavailable at run time.
func TryNWResolutionReportCopyPreferredEndpoint ¶
func TryNWResolutionReportCopyPreferredEndpoint(resolution_report NWResolutionReport) (NWEndpoint, error)
TryNWResolutionReportCopyPreferredEndpoint is like NWResolutionReportCopyPreferredEndpoint but returns an error instead of panicking if nw_resolution_report_copy_preferred_endpoint is unavailable at run time.
func TryNWResolutionReportCopySuccessfulEndpoint ¶
func TryNWResolutionReportCopySuccessfulEndpoint(resolution_report NWResolutionReport) (NWEndpoint, error)
TryNWResolutionReportCopySuccessfulEndpoint is like NWResolutionReportCopySuccessfulEndpoint but returns an error instead of panicking if nw_resolution_report_copy_successful_endpoint is unavailable at run time.
type NWEndpointType ¶ added in v0.6.3
type NWEndpointType uint32
See: https://developer.apple.com/documentation/Network/nw_endpoint_type_t
const ( // NWEndpointTypeAddress: An endpoint represented as an IP address and port. NWEndpointTypeAddress NWEndpointType = 1 // NWEndpointTypeBonjourService: An endpoint represented as a Bonjour service. NWEndpointTypeBonjourService NWEndpointType = 3 // NWEndpointTypeHost: An endpoint represented as a hostname and port. NWEndpointTypeHost NWEndpointType = 2 // NWEndpointTypeInvalid: An undefined endpoint type. NWEndpointTypeInvalid NWEndpointType = 0 // NWEndpointTypeURL: An endpoint represented as a URL, with host and port values inferred from the URL. NWEndpointTypeURL NWEndpointType = 4 )
func NWEndpointGetType ¶ added in v0.6.3
func NWEndpointGetType(endpoint NWEndpoint) NWEndpointType
NWEndpointGetType accesses the type of a endpoint.
It panics if nw_endpoint_get_type is unavailable at run time; use TryNWEndpointGetType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_type(_:)
func TryNWEndpointGetType ¶
func TryNWEndpointGetType(endpoint NWEndpoint) (NWEndpointType, error)
TryNWEndpointGetType is like NWEndpointGetType but returns an error instead of panicking if nw_endpoint_get_type is unavailable at run time.
func (NWEndpointType) String ¶ added in v0.6.3
func (e NWEndpointType) String() string
type NWError ¶ added in v0.6.3
type NWError struct {
objectivec.Object
}
func (NWError) CopyCFError ¶ added in v0.6.3
func (o NWError) CopyCFError() corefoundation.CFErrorRef
CopyCFError returns a retained Core Foundation copy of the network error.
func (NWError) Domain ¶ added in v0.6.3
func (o NWError) Domain() NWErrorDomain
Domain returns the structured Network.framework error domain.
func (NWError) DomainString ¶ added in v0.6.3
DomainString returns the string form of the Network.framework error domain.
type NWErrorDomain ¶ added in v0.6.3
type NWErrorDomain uint32
See: https://developer.apple.com/documentation/Network/nw_error_domain_t
const ( // NWErrorDomainDns: A DNS error encountered in resolving, browsing, or advertising. NWErrorDomainDns NWErrorDomain = 2 // NWErrorDomainInvalid: The error is invalid. NWErrorDomainInvalid NWErrorDomain = 0 // NWErrorDomainPosix: A POSIX error, which is used for most network protocol and routing errors. NWErrorDomainPosix NWErrorDomain = 1 // NWErrorDomainTLS: A TLS error reported by a TLS connection or listener. NWErrorDomainTLS NWErrorDomain = 3 NWErrorDomainWifiAware NWErrorDomain = 4 )
func NWErrorGetErrorDomain ¶ added in v0.6.3
func NWErrorGetErrorDomain(err NWError) NWErrorDomain
NWErrorGetErrorDomain accesses the domain of the network error.
It panics if nw_error_get_error_domain is unavailable at run time; use TryNWErrorGetErrorDomain to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_error_get_error_domain(_:)
func TryNWErrorGetErrorDomain ¶
func TryNWErrorGetErrorDomain(err NWError) (NWErrorDomain, error)
TryNWErrorGetErrorDomain is like NWErrorGetErrorDomain but returns an error instead of panicking if nw_error_get_error_domain is unavailable at run time.
func (NWErrorDomain) String ¶ added in v0.6.3
func (e NWErrorDomain) String() string
type NWEstablishmentReport ¶ added in v0.6.3
type NWEstablishmentReport struct {
objectivec.Object
}
NWEstablishmentReport is a report that provides metrics about how a connection was established.
See: https://developer.apple.com/documentation/Network/nw_establishment_report_t
func NWEstablishmentReportFromID ¶ added in v0.6.3
func NWEstablishmentReportFromID(id objc.ID) NWEstablishmentReport
NWEstablishmentReportFromID constructs a NWEstablishmentReport from an objc.ID.
type NWEstablishmentReportAccessBlock ¶ added in v0.6.3
type NWEstablishmentReportAccessBlock = func(NWEstablishmentReport)
NWEstablishmentReportAccessBlock is a block that delivers a connection’s establishment report when it’s in the ready state.
See: https://developer.apple.com/documentation/Network/nw_establishment_report_access_block_t
type NWEthernetAddress ¶ added in v0.6.3
type NWEthernetAddress = [6]uint8
NWEthernetAddress is a 48-bit Ethernet address.
See: https://developer.apple.com/documentation/Network/nw_ethernet_address_t
type NWEthernetChannel ¶ added in v0.6.3
type NWEthernetChannel struct {
objectivec.Object
}
NWEthernetChannel is an object you use to send and receive custom Ethernet frames.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_t
func NWEthernetChannelCreate ¶ added in v0.6.3
func NWEthernetChannelCreate(ether_type uint16, interface_ NWInterface) NWEthernetChannel
NWEthernetChannelCreate initializes an Ethernet channel on a specific interface with a custom Ethernet type.
It panics if nw_ethernet_channel_create is unavailable at run time; use TryNWEthernetChannelCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_create(_:_:)
func NWEthernetChannelCreateWithParameters ¶ added in v0.6.3
func NWEthernetChannelCreateWithParameters(ether_type uint16, interface_ NWInterface, parameters NWParameters) NWEthernetChannel
NWEthernetChannelCreateWithParameters.
It panics if nw_ethernet_channel_create_with_parameters is unavailable at run time; use TryNWEthernetChannelCreateWithParameters to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_create_with_parameters(_:_:_:)
func NWEthernetChannelFromID ¶ added in v0.6.3
func NWEthernetChannelFromID(id objc.ID) NWEthernetChannel
NWEthernetChannelFromID constructs a NWEthernetChannel from an objc.ID.
func TryNWEthernetChannelCreate ¶
func TryNWEthernetChannelCreate(ether_type uint16, interface_ NWInterface) (NWEthernetChannel, error)
TryNWEthernetChannelCreate is like NWEthernetChannelCreate but returns an error instead of panicking if nw_ethernet_channel_create is unavailable at run time.
func TryNWEthernetChannelCreateWithParameters ¶
func TryNWEthernetChannelCreateWithParameters(ether_type uint16, interface_ NWInterface, parameters NWParameters) (NWEthernetChannel, error)
TryNWEthernetChannelCreateWithParameters is like NWEthernetChannelCreateWithParameters but returns an error instead of panicking if nw_ethernet_channel_create_with_parameters is unavailable at run time.
type NWEthernetChannelReceiveHandler ¶ added in v0.6.3
type NWEthernetChannelReceiveHandler = func(objectivec.Object, uint16, *uint8, *uint8)
NWEthernetChannelReceiveHandler is a handler that delivers inbound Ethernet frames.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_receive_handler_t
type NWEthernetChannelSendCompletion ¶ added in v0.6.3
type NWEthernetChannelSendCompletion = func(NWError)
NWEthernetChannelSendCompletion is a handler that indicates when an Ethernet frame has been sent, or if an error was encountered.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_send_completion_t
type NWEthernetChannelState ¶ added in v0.6.3
type NWEthernetChannelState uint32
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_state_t
const ( // NWEthernetChannelStateCancelled: The channel has been canceled. NWEthernetChannelStateCancelled NWEthernetChannelState = 5 // NWEthernetChannelStateFailed: The channel has encountered a fatal error. NWEthernetChannelStateFailed NWEthernetChannelState = 4 // NWEthernetChannelStateInvalid: The channel is not valid. NWEthernetChannelStateInvalid NWEthernetChannelState = 0 // NWEthernetChannelStatePreparing: The channel is registering with the interface. NWEthernetChannelStatePreparing NWEthernetChannelState = 2 // NWEthernetChannelStateReady: The channel is able to send and receive Ethernet frames. NWEthernetChannelStateReady NWEthernetChannelState = 3 // NWEthernetChannelStateWaiting: The channel is waiting for its interface to become available. NWEthernetChannelStateWaiting NWEthernetChannelState = 1 )
func (NWEthernetChannelState) String ¶ added in v0.6.3
func (e NWEthernetChannelState) String() string
type NWEthernetChannelStateChangedHandler ¶ added in v0.6.3
type NWEthernetChannelStateChangedHandler = func(NWEthernetChannelState, NWError)
NWEthernetChannelStateChangedHandler is a handler that delivers Ethernet channel state updates with associated errors.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_state_changed_handler_t
type NWFramer ¶ added in v0.6.3
type NWFramer struct {
objectivec.Object
}
NWFramer is an object that represents a single instance of your custom protocol running in a connection.
See: https://developer.apple.com/documentation/Network/nw_framer_t
type NWFramerBlock ¶ added in v0.6.3
type NWFramerBlock = func()
NWFramerBlock is a block to be invoked asynchronously on your framer protocol’s scheduling context.
See: https://developer.apple.com/documentation/Network/nw_framer_block_t
type NWFramerCleanupHandler ¶ added in v0.6.3
type NWFramerCleanupHandler = func(NWFramer)
NWFramerCleanupHandler is a handler that tells your protocol to clean up all allocations before being deallocated.
See: https://developer.apple.com/documentation/Network/nw_framer_cleanup_handler_t
type NWFramerInputHandler ¶ added in v0.6.3
NWFramerInputHandler is a handler that notifies your protocol that new inbound data is available to parse.
See: https://developer.apple.com/documentation/Network/nw_framer_input_handler_t
type NWFramerMessage ¶ added in v0.6.3
type NWFramerMessage = NWProtocolMetadata
NWFramerMessage is a message for a custom protocol, in which you can store arbitrary key-value pairs.
See: https://developer.apple.com/documentation/Network/nw_framer_message_t
func NWFramerMessageCreate ¶ added in v0.6.3
func NWFramerMessageCreate(framer NWFramer) NWFramerMessage
NWFramerMessageCreate initializes an empty message from within a framer implementation.
It panics if nw_framer_message_create is unavailable at run time; use TryNWFramerMessageCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_message_create(_:)
func NWFramerProtocolCreateMessage ¶ added in v0.6.3
func NWFramerProtocolCreateMessage(definition NWProtocolDefinition) NWFramerMessage
NWFramerProtocolCreateMessage initializes an empty message for a custom framer definition.
It panics if nw_framer_protocol_create_message is unavailable at run time; use TryNWFramerProtocolCreateMessage to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_protocol_create_message(_:)
func TryNWFramerMessageCreate ¶
func TryNWFramerMessageCreate(framer NWFramer) (NWFramerMessage, error)
TryNWFramerMessageCreate is like NWFramerMessageCreate but returns an error instead of panicking if nw_framer_message_create is unavailable at run time.
func TryNWFramerProtocolCreateMessage ¶
func TryNWFramerProtocolCreateMessage(definition NWProtocolDefinition) (NWFramerMessage, error)
TryNWFramerProtocolCreateMessage is like NWFramerProtocolCreateMessage but returns an error instead of panicking if nw_framer_protocol_create_message is unavailable at run time.
type NWFramerMessageDisposeValue ¶ added in v0.6.3
NWFramerMessageDisposeValue is a handler that’s invoked when your custom value needs to be released due to a message being released or the value being replaced.
See: https://developer.apple.com/documentation/Network/nw_framer_message_dispose_value_t
type NWFramerOutputHandler ¶ added in v0.6.3
type NWFramerOutputHandler = func(framer NWFramer, message NWProtocolMetadata, message_length uint64, is_complete bool)
NWFramerOutputHandler is a handler that notifies your protocol about a new outbound message.
See: https://developer.apple.com/documentation/Network/nw_framer_output_handler_t
type NWFramerParseCompletion ¶ added in v0.6.3
NWFramerParseCompletion is a handler that examines a range of data being sent or received.
See: https://developer.apple.com/documentation/Network/nw_framer_parse_completion_t
type NWFramerStartHandler ¶ added in v0.6.3
type NWFramerStartHandler = func(NWFramer) NWFramerStartResult
NWFramerStartHandler is a handler that represents the entry point into your custom protocol.
See: https://developer.apple.com/documentation/Network/nw_framer_start_handler_t
type NWFramerStartResult ¶ added in v0.6.3
type NWFramerStartResult uint32
See: https://developer.apple.com/documentation/Network/nw_framer_start_result_t
const ( // NWFramerStartResultReady: The protocol is immediately ready to send and receive data. NWFramerStartResultReady NWFramerStartResult = 1 // NWFramerStartResultWillMarkReady: The protocol will perform a handshake, preventing the overall connection from becoming ready until nw_framer_mark_ready(_:) is called. NWFramerStartResultWillMarkReady NWFramerStartResult = 2 )
func (NWFramerStartResult) String ¶ added in v0.6.3
func (e NWFramerStartResult) String() string
type NWFramerStopHandler ¶ added in v0.6.3
NWFramerStopHandler is a handler that requests that your protocol send any final messages to close the connection.
See: https://developer.apple.com/documentation/Network/nw_framer_stop_handler_t
type NWFramerWakeupHandler ¶ added in v0.6.3
type NWFramerWakeupHandler = func(NWFramer)
NWFramerWakeupHandler is a handler that delivers a scheduled wakeup event.
See: https://developer.apple.com/documentation/Network/nw_framer_wakeup_handler_t
type NWGroupDescriptor ¶ added in v0.6.3
type NWGroupDescriptor struct {
objectivec.Object
}
NWGroupDescriptor is a type that defines a group of endpoints with which you can communicate, such as a multicast group.
See: https://developer.apple.com/documentation/Network/nw_group_descriptor_t
func NWConnectionGroupCopyDescriptor ¶ added in v0.6.3
func NWConnectionGroupCopyDescriptor(group NWConnectionGroup) NWGroupDescriptor
NWConnectionGroupCopyDescriptor accesses the descriptor of the group you use to initialize the connection group.
It panics if nw_connection_group_copy_descriptor is unavailable at run time; use TryNWConnectionGroupCopyDescriptor to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_descriptor(_:)
func NWGroupDescriptorCreateMulticast ¶ added in v0.6.3
func NWGroupDescriptorCreateMulticast(multicast_group NWEndpoint) NWGroupDescriptor
NWGroupDescriptorCreateMulticast creates group descriptor you use to join an IP multicast group on a local network.
It panics if nw_group_descriptor_create_multicast is unavailable at run time; use TryNWGroupDescriptorCreateMulticast to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_group_descriptor_create_multicast(_:)
func NWGroupDescriptorCreateMultiplex ¶ added in v0.6.3
func NWGroupDescriptorCreateMultiplex(remote_endpoint NWEndpoint) NWGroupDescriptor
NWGroupDescriptorCreateMultiplex.
It panics if nw_group_descriptor_create_multiplex is unavailable at run time; use TryNWGroupDescriptorCreateMultiplex to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_group_descriptor_create_multiplex(_:)
func NWGroupDescriptorFromID ¶ added in v0.6.3
func NWGroupDescriptorFromID(id objc.ID) NWGroupDescriptor
NWGroupDescriptorFromID constructs a NWGroupDescriptor from an objc.ID.
func TryNWConnectionGroupCopyDescriptor ¶
func TryNWConnectionGroupCopyDescriptor(group NWConnectionGroup) (NWGroupDescriptor, error)
TryNWConnectionGroupCopyDescriptor is like NWConnectionGroupCopyDescriptor but returns an error instead of panicking if nw_connection_group_copy_descriptor is unavailable at run time.
func TryNWGroupDescriptorCreateMulticast ¶
func TryNWGroupDescriptorCreateMulticast(multicast_group NWEndpoint) (NWGroupDescriptor, error)
TryNWGroupDescriptorCreateMulticast is like NWGroupDescriptorCreateMulticast but returns an error instead of panicking if nw_group_descriptor_create_multicast is unavailable at run time.
func TryNWGroupDescriptorCreateMultiplex ¶
func TryNWGroupDescriptorCreateMultiplex(remote_endpoint NWEndpoint) (NWGroupDescriptor, error)
TryNWGroupDescriptorCreateMultiplex is like NWGroupDescriptorCreateMultiplex but returns an error instead of panicking if nw_group_descriptor_create_multiplex is unavailable at run time.
type NWGroupDescriptorEnumerateEndpointsBlock ¶ added in v0.6.3
type NWGroupDescriptorEnumerateEndpointsBlock = func(NWEndpoint) bool
NWGroupDescriptorEnumerateEndpointsBlock is a handler that lists all endpoints added to the group descriptor.
See: https://developer.apple.com/documentation/Network/nw_group_descriptor_enumerate_endpoints_block_t
type NWIPEcnFlag ¶ added in v0.6.3
type NWIPEcnFlag uint32
See: https://developer.apple.com/documentation/Network/nw_ip_ecn_flag_t
const ( // NWIPEcnFlagCe: Congestion Experienced. NWIPEcnFlagCe NWIPEcnFlag = 3 // NWIPEcnFlagEct0: ECN Capable Transport (flag 0). NWIPEcnFlagEct0 NWIPEcnFlag = 2 // NWIPEcnFlagEct1: ECN Capable Transport (flag 1). NWIPEcnFlagEct1 NWIPEcnFlag = 1 // NWIPEcnFlagNonEct: Non-ECN Capable Transport. NWIPEcnFlagNonEct NWIPEcnFlag = 0 )
func NWIPMetadataGetEcnFlag ¶ added in v0.6.3
func NWIPMetadataGetEcnFlag(metadata NWProtocolMetadata) NWIPEcnFlag
NWIPMetadataGetEcnFlag checks the Explicit Congestion Notification flag value received on an IP packet.
It panics if nw_ip_metadata_get_ecn_flag is unavailable at run time; use TryNWIPMetadataGetEcnFlag to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_metadata_get_ecn_flag(_:)
func TryNWIPMetadataGetEcnFlag ¶
func TryNWIPMetadataGetEcnFlag(metadata NWProtocolMetadata) (NWIPEcnFlag, error)
TryNWIPMetadataGetEcnFlag is like NWIPMetadataGetEcnFlag but returns an error instead of panicking if nw_ip_metadata_get_ecn_flag is unavailable at run time.
func (NWIPEcnFlag) String ¶ added in v0.6.3
func (e NWIPEcnFlag) String() string
type NWIPLocalAddressPreference ¶ added in v0.6.3
type NWIPLocalAddressPreference uint32
See: https://developer.apple.com/documentation/Network/nw_ip_local_address_preference_t
const ( // NWIPLocalAddressPreferenceDefault: Allow the system to decide which kind of local address to prefer for a connection or listener. NWIPLocalAddressPreferenceDefault NWIPLocalAddressPreference = 0 // NWIPLocalAddressPreferenceStable: Prefer using stable local addresses. NWIPLocalAddressPreferenceStable NWIPLocalAddressPreference = 2 // NWIPLocalAddressPreferenceTemporary: Prefer using temporary local addresses. NWIPLocalAddressPreferenceTemporary NWIPLocalAddressPreference = 1 )
func (NWIPLocalAddressPreference) String ¶ added in v0.6.3
func (e NWIPLocalAddressPreference) String() string
type NWIPVersion ¶ added in v0.6.3
type NWIPVersion uint32
See: https://developer.apple.com/documentation/Network/nw_ip_version_t
const ( // NWIPVersion4: Require IP version 4. NWIPVersion4 NWIPVersion = 4 // NWIPVersion6: Require IP version 6. NWIPVersion6 NWIPVersion = 6 // NWIPVersionAny: Allow any IP version. NWIPVersionAny NWIPVersion = 0 )
func (NWIPVersion) String ¶ added in v0.6.3
func (e NWIPVersion) String() string
type NWInterface ¶ added in v0.6.3
type NWInterface struct {
objectivec.Object
}
NWInterface is an interface that a network connection uses to send and receive data.
See: https://developer.apple.com/documentation/Network/nw_interface_t
func NWDataTransferReportCopyPathInterface ¶ added in v0.6.3
func NWDataTransferReportCopyPathInterface(report NWDataTransferReport, path_index uint32) NWInterface
NWDataTransferReportCopyPathInterface accesses the network interface the path used.
It panics if nw_data_transfer_report_copy_path_interface is unavailable at run time; use TryNWDataTransferReportCopyPathInterface to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_copy_path_interface(_:_:)
func NWInterfaceFromID ¶ added in v0.6.3
func NWInterfaceFromID(id objc.ID) NWInterface
NWInterfaceFromID constructs a NWInterface from an objc.ID.
func NWParametersCopyRequiredInterface ¶ added in v0.6.3
func NWParametersCopyRequiredInterface(parameters NWParameters) NWInterface
NWParametersCopyRequiredInterface accesses the interface required on connections, listeners, and browsers.
It panics if nw_parameters_copy_required_interface is unavailable at run time; use TryNWParametersCopyRequiredInterface to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_copy_required_interface(_:)
func TryNWDataTransferReportCopyPathInterface ¶
func TryNWDataTransferReportCopyPathInterface(report NWDataTransferReport, path_index uint32) (NWInterface, error)
TryNWDataTransferReportCopyPathInterface is like NWDataTransferReportCopyPathInterface but returns an error instead of panicking if nw_data_transfer_report_copy_path_interface is unavailable at run time.
func TryNWParametersCopyRequiredInterface ¶
func TryNWParametersCopyRequiredInterface(parameters NWParameters) (NWInterface, error)
TryNWParametersCopyRequiredInterface is like NWParametersCopyRequiredInterface but returns an error instead of panicking if nw_parameters_copy_required_interface is unavailable at run time.
type NWInterfaceRadioType ¶ added in v0.6.3
type NWInterfaceRadioType uint32
See: https://developer.apple.com/documentation/Network/nw_interface_radio_type_t
const ( NWInterfaceRadioTypeCellCdma NWInterfaceRadioType = 0x87 NWInterfaceRadioTypeCellEndcMmw NWInterfaceRadioType = 0x82 NWInterfaceRadioTypeCellEndcSub6 NWInterfaceRadioType = 0x81 NWInterfaceRadioTypeCellEvdo NWInterfaceRadioType = 0x88 NWInterfaceRadioTypeCellGsm NWInterfaceRadioType = 0x86 NWInterfaceRadioTypeCellLte NWInterfaceRadioType = 0x80 NWInterfaceRadioTypeCellNrSaMmw NWInterfaceRadioType = 0x84 NWInterfaceRadioTypeCellNrSaSub6 NWInterfaceRadioType = 0x83 NWInterfaceRadioTypeCellWcdma NWInterfaceRadioType = 0x85 NWInterfaceRadioTypeUnknown NWInterfaceRadioType = 0 NWInterfaceRadioTypeWifiA NWInterfaceRadioType = 2 NWInterfaceRadioTypeWifiAc NWInterfaceRadioType = 5 NWInterfaceRadioTypeWifiAx NWInterfaceRadioType = 6 NWInterfaceRadioTypeWifiB NWInterfaceRadioType = 1 NWInterfaceRadioTypeWifiG NWInterfaceRadioType = 3 NWInterfaceRadioTypeWifiN NWInterfaceRadioType = 4 )
func NWDataTransferReportGetPathRadioType ¶ added in v0.6.3
func NWDataTransferReportGetPathRadioType(report NWDataTransferReport, path_index uint32) NWInterfaceRadioType
NWDataTransferReportGetPathRadioType.
It panics if nw_data_transfer_report_get_path_radio_type is unavailable at run time; use TryNWDataTransferReportGetPathRadioType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_path_radio_type(_:_:)
func TryNWDataTransferReportGetPathRadioType ¶
func TryNWDataTransferReportGetPathRadioType(report NWDataTransferReport, path_index uint32) (NWInterfaceRadioType, error)
TryNWDataTransferReportGetPathRadioType is like NWDataTransferReportGetPathRadioType but returns an error instead of panicking if nw_data_transfer_report_get_path_radio_type is unavailable at run time.
func (NWInterfaceRadioType) String ¶ added in v0.6.3
func (e NWInterfaceRadioType) String() string
type NWInterfaceType ¶ added in v0.6.3
type NWInterfaceType uint32
See: https://developer.apple.com/documentation/Network/nw_interface_type_t
const ( // NWInterfaceTypeCellular: The network interface type used for communication over cellular networks. NWInterfaceTypeCellular NWInterfaceType = 2 // NWInterfaceTypeLoopback: The network interface type used for communication over local loopback networks. NWInterfaceTypeLoopback NWInterfaceType = 4 // NWInterfaceTypeOther: The network interface type used for communication over virtual networks or networks of unknown types. NWInterfaceTypeOther NWInterfaceType = 0 // NWInterfaceTypeWifi: The network interface type used for communication over Wi-Fi networks. NWInterfaceTypeWifi NWInterfaceType = 1 // NWInterfaceTypeWired: The network interface type used for communication over wired Ethernet networks. NWInterfaceTypeWired NWInterfaceType = 3 )
func NWInterfaceGetType ¶ added in v0.6.3
func NWInterfaceGetType(interface_ NWInterface) NWInterfaceType
NWInterfaceGetType accesses the type of the interface, such as Wi-Fi or Loopback.
It panics if nw_interface_get_type is unavailable at run time; use TryNWInterfaceGetType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_interface_get_type(_:)
func NWParametersGetRequiredInterfaceType ¶ added in v0.6.3
func NWParametersGetRequiredInterfaceType(parameters NWParameters) NWInterfaceType
NWParametersGetRequiredInterfaceType accesses the interface type required on connections and listeners.
It panics if nw_parameters_get_required_interface_type is unavailable at run time; use TryNWParametersGetRequiredInterfaceType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_required_interface_type(_:)
func TryNWInterfaceGetType ¶
func TryNWInterfaceGetType(interface_ NWInterface) (NWInterfaceType, error)
TryNWInterfaceGetType is like NWInterfaceGetType but returns an error instead of panicking if nw_interface_get_type is unavailable at run time.
func TryNWParametersGetRequiredInterfaceType ¶
func TryNWParametersGetRequiredInterfaceType(parameters NWParameters) (NWInterfaceType, error)
TryNWParametersGetRequiredInterfaceType is like NWParametersGetRequiredInterfaceType but returns an error instead of panicking if nw_parameters_get_required_interface_type is unavailable at run time.
func (NWInterfaceType) String ¶ added in v0.6.3
func (e NWInterfaceType) String() string
type NWLinkQuality ¶ added in v0.6.3
type NWLinkQuality uint32
See: https://developer.apple.com/documentation/Network/nw_link_quality_t
const ( NWLinkQualityGood NWLinkQuality = 30 NWLinkQualityMinimal NWLinkQuality = 10 NWLinkQualityModerate NWLinkQuality = 20 NWLinkQualityUnknown NWLinkQuality = 0 )
func NWPathGetLinkQuality ¶ added in v0.6.3
func NWPathGetLinkQuality(path NWPath) NWLinkQuality
NWPathGetLinkQuality.
It panics if nw_path_get_link_quality is unavailable at run time; use TryNWPathGetLinkQuality to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_get_link_quality(_:)
func TryNWPathGetLinkQuality ¶
func TryNWPathGetLinkQuality(path NWPath) (NWLinkQuality, error)
TryNWPathGetLinkQuality is like NWPathGetLinkQuality but returns an error instead of panicking if nw_path_get_link_quality is unavailable at run time.
func (NWLinkQuality) String ¶ added in v0.6.3
func (e NWLinkQuality) String() string
type NWListener ¶ added in v0.6.3
type NWListener struct {
objectivec.Object
}
NWListener is an object you use to listen for incoming network connections.
See: https://developer.apple.com/documentation/Network/nw_listener_t
func NWListenerCreate ¶ added in v0.6.3
func NWListenerCreate(parameters NWParameters) NWListener
NWListenerCreate initializes a network listener, which will select a random port.
It panics if nw_listener_create is unavailable at run time; use TryNWListenerCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_create(_:)
func NWListenerCreateWithConnection ¶ added in v0.6.3
func NWListenerCreateWithConnection(connection NWConnection, parameters NWParameters) NWListener
NWListenerCreateWithConnection initializes a network listener to receive new streams on a multiplexed connection.
It panics if nw_listener_create_with_connection is unavailable at run time; use TryNWListenerCreateWithConnection to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_create_with_connection(_:_:)
func NWListenerCreateWithLaunchdKey ¶ added in v0.6.3
func NWListenerCreateWithLaunchdKey(parameters NWParameters, launchd_key string) NWListener
NWListenerCreateWithLaunchdKey.
It panics if nw_listener_create_with_launchd_key is unavailable at run time; use TryNWListenerCreateWithLaunchdKey to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_create_with_launchd_key(_:_:)
func NWListenerCreateWithPort ¶ added in v0.6.3
func NWListenerCreateWithPort(port string, parameters NWParameters) NWListener
NWListenerCreateWithPort initializes a network listener with a specified local port.
It panics if nw_listener_create_with_port is unavailable at run time; use TryNWListenerCreateWithPort to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_listener_create_with_port(_:_:)
func NWListenerFromID ¶ added in v0.6.3
func NWListenerFromID(id objc.ID) NWListener
NWListenerFromID constructs a NWListener from an objc.ID.
func TryNWListenerCreate ¶
func TryNWListenerCreate(parameters NWParameters) (NWListener, error)
TryNWListenerCreate is like NWListenerCreate but returns an error instead of panicking if nw_listener_create is unavailable at run time.
func TryNWListenerCreateWithConnection ¶
func TryNWListenerCreateWithConnection(connection NWConnection, parameters NWParameters) (NWListener, error)
TryNWListenerCreateWithConnection is like NWListenerCreateWithConnection but returns an error instead of panicking if nw_listener_create_with_connection is unavailable at run time.
func TryNWListenerCreateWithLaunchdKey ¶
func TryNWListenerCreateWithLaunchdKey(parameters NWParameters, launchd_key string) (NWListener, error)
TryNWListenerCreateWithLaunchdKey is like NWListenerCreateWithLaunchdKey but returns an error instead of panicking if nw_listener_create_with_launchd_key is unavailable at run time.
func TryNWListenerCreateWithPort ¶
func TryNWListenerCreateWithPort(port string, parameters NWParameters) (NWListener, error)
TryNWListenerCreateWithPort is like NWListenerCreateWithPort but returns an error instead of panicking if nw_listener_create_with_port is unavailable at run time.
type NWListenerAdvertisedEndpointChangedHandler ¶ added in v0.6.3
type NWListenerAdvertisedEndpointChangedHandler = func(NWEndpoint, bool)
NWListenerAdvertisedEndpointChangedHandler is a handler that indicates changes to the service endpoints being advertised as they are added and removed.
See: https://developer.apple.com/documentation/Network/nw_listener_advertised_endpoint_changed_handler_t
type NWListenerNewConnectionGroupHandler ¶ added in v0.6.3
type NWListenerNewConnectionGroupHandler = func(NWConnectionGroup)
See: https://developer.apple.com/documentation/Network/nw_listener_new_connection_group_handler_t
type NWListenerNewConnectionHandler ¶ added in v0.6.3
type NWListenerNewConnectionHandler = func(NWConnection)
NWListenerNewConnectionHandler is a handler that delivers inbound connections.
See: https://developer.apple.com/documentation/Network/nw_listener_new_connection_handler_t
type NWListenerState ¶ added in v0.6.3
type NWListenerState uint32
See: https://developer.apple.com/documentation/Network/nw_listener_state_t
const ( // NWListenerStateCancelled: The listener has been canceled. NWListenerStateCancelled NWListenerState = 4 // NWListenerStateFailed: The listener has encountered a fatal error. NWListenerStateFailed NWListenerState = 3 // NWListenerStateInvalid: The listener is not valid. NWListenerStateInvalid NWListenerState = 0 // NWListenerStateReady: The listener is running and able to receive incoming connections. NWListenerStateReady NWListenerState = 2 // NWListenerStateWaiting: The listener is waiting for a network to become available. NWListenerStateWaiting NWListenerState = 1 )
func (NWListenerState) String ¶ added in v0.6.3
func (e NWListenerState) String() string
type NWListenerStateChangedHandler ¶ added in v0.6.3
type NWListenerStateChangedHandler = func(NWListenerState, NWError)
NWListenerStateChangedHandler is a handler that delivers listener state updates with associated errors.
See: https://developer.apple.com/documentation/Network/nw_listener_state_changed_handler_t
type NWMultipathService ¶ added in v0.6.3
type NWMultipathService uint32
See: https://developer.apple.com/documentation/Network/nw_multipath_service_t
const ( // NWMultipathServiceAggregate: Enable multipath to maximize bandwidth across multiple interfaces. NWMultipathServiceAggregate NWMultipathService = 3 // NWMultipathServiceDisabled: Disable multipath. NWMultipathServiceDisabled NWMultipathService = 0 // NWMultipathServiceHandover: Enable multipath, but only use other interfaces when the primary interface is lost. NWMultipathServiceHandover NWMultipathService = 1 // NWMultipathServiceInteractive: Enable multipath to use other interfaces when the primary interface encounters loss or delay. NWMultipathServiceInteractive NWMultipathService = 2 )
func NWParametersGetMultipathService ¶ added in v0.6.3
func NWParametersGetMultipathService(parameters NWParameters) NWMultipathService
NWParametersGetMultipathService checks if multipath is enabled on a connection.
It panics if nw_parameters_get_multipath_service is unavailable at run time; use TryNWParametersGetMultipathService to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_multipath_service(_:)
func TryNWParametersGetMultipathService ¶
func TryNWParametersGetMultipathService(parameters NWParameters) (NWMultipathService, error)
TryNWParametersGetMultipathService is like NWParametersGetMultipathService but returns an error instead of panicking if nw_parameters_get_multipath_service is unavailable at run time.
func (NWMultipathService) String ¶ added in v0.6.3
func (e NWMultipathService) String() string
type NWMultipathVersion ¶ added in v0.6.3
type NWMultipathVersion int32
See: https://developer.apple.com/documentation/Network/nw_multipath_version_t
const ( NWMultipathVersion0 NWMultipathVersion = 0 NWMultipathVersion1 NWMultipathVersion = 1 NWMultipathVersionUnspecified NWMultipathVersion = -1 )
func (NWMultipathVersion) String ¶ added in v0.6.3
func (e NWMultipathVersion) String() string
type NWObject ¶ added in v0.6.3
type NWObject struct {
objectivec.Object
}
NWObject is the generic type for objects in the Network framework.
See: https://developer.apple.com/documentation/Network/nw_object_t
type NWParameters ¶ added in v0.6.3
type NWParameters struct {
objectivec.Object
}
NWParameters is an object that stores the protocols to use for connections, options for sending data, and network path constraints.
See: https://developer.apple.com/documentation/Network/nw_parameters_t
func NWBrowserCopyParameters ¶ added in v0.6.3
func NWBrowserCopyParameters(browser NWBrowser) NWParameters
NWBrowserCopyParameters accesses the parameters with which the browser was created.
It panics if nw_browser_copy_parameters is unavailable at run time; use TryNWBrowserCopyParameters to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browser_copy_parameters(_:)
func NWConnectionCopyParameters ¶ added in v0.6.3
func NWConnectionCopyParameters(connection NWConnection) NWParameters
NWConnectionCopyParameters accesses the parameters with which the connection was created.
It panics if nw_connection_copy_parameters is unavailable at run time; use TryNWConnectionCopyParameters to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_copy_parameters(_:)
func NWConnectionGroupCopyParameters ¶ added in v0.6.3
func NWConnectionGroupCopyParameters(group NWConnectionGroup) NWParameters
NWConnectionGroupCopyParameters accesses the parameters with which you initialize the connection group.
It panics if nw_connection_group_copy_parameters is unavailable at run time; use TryNWConnectionGroupCopyParameters to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_parameters(_:)
func NWFramerCopyParameters ¶ added in v0.6.3
func NWFramerCopyParameters(framer NWFramer) NWParameters
NWFramerCopyParameters accesses the parameters of the connection in which your protocol is running.
It panics if nw_framer_copy_parameters is unavailable at run time; use TryNWFramerCopyParameters to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_copy_parameters(_:)
func NWParametersCopy ¶ added in v0.6.3
func NWParametersCopy(parameters NWParameters) NWParameters
NWParametersCopy peforms a deep copy of a parameters object.
It panics if nw_parameters_copy is unavailable at run time; use TryNWParametersCopy to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_copy(_:)
func NWParametersCreate ¶ added in v0.6.3
func NWParametersCreate() NWParameters
NWParametersCreate initializes parameters for connections, listeners, and browsers with no protocols specified.
It panics if nw_parameters_create is unavailable at run time; use TryNWParametersCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_create()
func NWParametersCreateApplicationService ¶ added in v0.6.3
func NWParametersCreateApplicationService() NWParameters
NWParametersCreateApplicationService.
It panics if nw_parameters_create_application_service is unavailable at run time; use TryNWParametersCreateApplicationService to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_create_application_service()
func NWParametersCreateCustomIP ¶ added in v0.6.3
func NWParametersCreateCustomIP(custom_ip_protocol_number uint8, configure_ip NWParametersConfigureProtocolBlock) NWParameters
NWParametersCreateCustomIP initializes parameters for connections and listeners using a custom IP protocol.
It panics if nw_parameters_create_custom_ip is unavailable at run time; use TryNWParametersCreateCustomIP to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_create_custom_ip(_:_:)
func NWParametersCreatePlainTCP ¶ added in v0.6.3
func NWParametersCreatePlainTCP(configureTCP NWParametersConfigureProtocolBlock) NWParameters
NWParametersCreatePlainTCP initializes parameters for cleartext TCP.
func NWParametersCreateQuic ¶ added in v0.6.3
func NWParametersCreateQuic(configure_quic NWParametersConfigureProtocolBlock) NWParameters
NWParametersCreateQuic initializes parameters for QUIC connections and listeners.
It panics if nw_parameters_create_quic is unavailable at run time; use TryNWParametersCreateQuic to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_create_quic(_:)
func NWParametersCreateSecureTCP ¶ added in v0.6.3
func NWParametersCreateSecureTCP(configure_tls NWParametersConfigureProtocolBlock, configure_tcp NWParametersConfigureProtocolBlock) NWParameters
NWParametersCreateSecureTCP initializes parameters for TLS or TCP connections and listeners.
It panics if nw_parameters_create_secure_tcp is unavailable at run time; use TryNWParametersCreateSecureTCP to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_create_secure_tcp(_:_:)
func NWParametersCreateSecureUDP ¶ added in v0.6.3
func NWParametersCreateSecureUDP(configure_dtls NWParametersConfigureProtocolBlock, configure_udp NWParametersConfigureProtocolBlock) NWParameters
NWParametersCreateSecureUDP initializes parameters for DTLS or UDP connections and listeners.
It panics if nw_parameters_create_secure_udp is unavailable at run time; use TryNWParametersCreateSecureUDP to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_create_secure_udp(_:_:)
func NWParametersFromID ¶ added in v0.6.3
func NWParametersFromID(id objc.ID) NWParameters
NWParametersFromID constructs a NWParameters from an objc.ID.
func TryNWBrowserCopyParameters ¶
func TryNWBrowserCopyParameters(browser NWBrowser) (NWParameters, error)
TryNWBrowserCopyParameters is like NWBrowserCopyParameters but returns an error instead of panicking if nw_browser_copy_parameters is unavailable at run time.
func TryNWConnectionCopyParameters ¶
func TryNWConnectionCopyParameters(connection NWConnection) (NWParameters, error)
TryNWConnectionCopyParameters is like NWConnectionCopyParameters but returns an error instead of panicking if nw_connection_copy_parameters is unavailable at run time.
func TryNWConnectionGroupCopyParameters ¶
func TryNWConnectionGroupCopyParameters(group NWConnectionGroup) (NWParameters, error)
TryNWConnectionGroupCopyParameters is like NWConnectionGroupCopyParameters but returns an error instead of panicking if nw_connection_group_copy_parameters is unavailable at run time.
func TryNWFramerCopyParameters ¶
func TryNWFramerCopyParameters(framer NWFramer) (NWParameters, error)
TryNWFramerCopyParameters is like NWFramerCopyParameters but returns an error instead of panicking if nw_framer_copy_parameters is unavailable at run time.
func TryNWParametersCopy ¶
func TryNWParametersCopy(parameters NWParameters) (NWParameters, error)
TryNWParametersCopy is like NWParametersCopy but returns an error instead of panicking if nw_parameters_copy is unavailable at run time.
func TryNWParametersCreate ¶
func TryNWParametersCreate() (NWParameters, error)
TryNWParametersCreate is like NWParametersCreate but returns an error instead of panicking if nw_parameters_create is unavailable at run time.
func TryNWParametersCreateApplicationService ¶
func TryNWParametersCreateApplicationService() (NWParameters, error)
TryNWParametersCreateApplicationService is like NWParametersCreateApplicationService but returns an error instead of panicking if nw_parameters_create_application_service is unavailable at run time.
func TryNWParametersCreateCustomIP ¶
func TryNWParametersCreateCustomIP(custom_ip_protocol_number uint8, configure_ip NWParametersConfigureProtocolBlock) (NWParameters, error)
TryNWParametersCreateCustomIP is like NWParametersCreateCustomIP but returns an error instead of panicking if nw_parameters_create_custom_ip is unavailable at run time.
func TryNWParametersCreatePlainTCP ¶ added in v0.6.3
func TryNWParametersCreatePlainTCP(configureTCP NWParametersConfigureProtocolBlock) (NWParameters, error)
TryNWParametersCreatePlainTCP initializes parameters for cleartext TCP.
func TryNWParametersCreateQuic ¶
func TryNWParametersCreateQuic(configure_quic NWParametersConfigureProtocolBlock) (NWParameters, error)
TryNWParametersCreateQuic is like NWParametersCreateQuic but returns an error instead of panicking if nw_parameters_create_quic is unavailable at run time.
func TryNWParametersCreateSecureTCP ¶
func TryNWParametersCreateSecureTCP(configure_tls NWParametersConfigureProtocolBlock, configure_tcp NWParametersConfigureProtocolBlock) (NWParameters, error)
TryNWParametersCreateSecureTCP is like NWParametersCreateSecureTCP but returns an error instead of panicking if nw_parameters_create_secure_tcp is unavailable at run time.
func TryNWParametersCreateSecureUDP ¶
func TryNWParametersCreateSecureUDP(configure_dtls NWParametersConfigureProtocolBlock, configure_udp NWParametersConfigureProtocolBlock) (NWParameters, error)
TryNWParametersCreateSecureUDP is like NWParametersCreateSecureUDP but returns an error instead of panicking if nw_parameters_create_secure_udp is unavailable at run time.
type NWParametersAttribution ¶ added in v0.6.3
type NWParametersAttribution uint8
See: https://developer.apple.com/documentation/Network/nw_parameters_attribution_t
const ( // NWParametersAttributionDeveloper: A developer-initiated network request. NWParametersAttributionDeveloper NWParametersAttribution = 1 // NWParametersAttributionUser: The user explicitly directs the app to make a network request. NWParametersAttributionUser NWParametersAttribution = 2 )
func NWParametersGetAttribution ¶ added in v0.6.3
func NWParametersGetAttribution(parameters NWParameters) NWParametersAttribution
NWParametersGetAttribution gets a flag that indicates whether the network request originates from the developer or the user.
It panics if nw_parameters_get_attribution is unavailable at run time; use TryNWParametersGetAttribution to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_attribution(_:)
func TryNWParametersGetAttribution ¶
func TryNWParametersGetAttribution(parameters NWParameters) (NWParametersAttribution, error)
TryNWParametersGetAttribution is like NWParametersGetAttribution but returns an error instead of panicking if nw_parameters_get_attribution is unavailable at run time.
func (NWParametersAttribution) String ¶ added in v0.6.3
func (e NWParametersAttribution) String() string
type NWParametersConfigureProtocolBlock ¶ added in v0.6.3
type NWParametersConfigureProtocolBlock = func(NWProtocolOptions)
NWParametersConfigureProtocolBlock is a block to configure protocol options during the creation of a parameters object.
See: https://developer.apple.com/documentation/Network/nw_parameters_configure_protocol_block_t
type NWParametersExpiredDnsBehavior ¶ added in v0.6.3
type NWParametersExpiredDnsBehavior uint32
See: https://developer.apple.com/documentation/Network/nw_parameters_expired_dns_behavior_t
const ( // NWParametersExpiredDnsBehaviorAllow: Explicitly allow the use of expired DNS answers. NWParametersExpiredDnsBehaviorAllow NWParametersExpiredDnsBehavior = 1 // NWParametersExpiredDnsBehaviorDefault: Let the system determine whether or not to allow expired DNS answers. NWParametersExpiredDnsBehaviorDefault NWParametersExpiredDnsBehavior = 0 NWParametersExpiredDnsBehaviorPersistent NWParametersExpiredDnsBehavior = 3 // NWParametersExpiredDnsBehaviorProhibit: Explicitly prohibit the use of expired DNS answers. NWParametersExpiredDnsBehaviorProhibit NWParametersExpiredDnsBehavior = 2 )
func NWParametersGetExpiredDnsBehavior ¶ added in v0.6.3
func NWParametersGetExpiredDnsBehavior(parameters NWParameters) NWParametersExpiredDnsBehavior
NWParametersGetExpiredDnsBehavior checks the behavior for how expired DNS answers should be used.
It panics if nw_parameters_get_expired_dns_behavior is unavailable at run time; use TryNWParametersGetExpiredDnsBehavior to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_expired_dns_behavior(_:)
func TryNWParametersGetExpiredDnsBehavior ¶
func TryNWParametersGetExpiredDnsBehavior(parameters NWParameters) (NWParametersExpiredDnsBehavior, error)
TryNWParametersGetExpiredDnsBehavior is like NWParametersGetExpiredDnsBehavior but returns an error instead of panicking if nw_parameters_get_expired_dns_behavior is unavailable at run time.
func (NWParametersExpiredDnsBehavior) String ¶ added in v0.6.3
func (e NWParametersExpiredDnsBehavior) String() string
type NWParametersIterateInterfaceTypesBlock ¶ added in v0.6.3
type NWParametersIterateInterfaceTypesBlock = func(NWInterfaceType) bool
NWParametersIterateInterfaceTypesBlock is a block that allows inspection of a list of interface types.
See: https://developer.apple.com/documentation/Network/nw_parameters_iterate_interface_types_block_t
type NWParametersIterateInterfacesBlock ¶ added in v0.6.3
type NWParametersIterateInterfacesBlock = func(NWInterface) bool
NWParametersIterateInterfacesBlock is a block that allows inspection of a list of interfaces.
See: https://developer.apple.com/documentation/Network/nw_parameters_iterate_interfaces_block_t
type NWPath ¶ added in v0.6.3
type NWPath struct {
objectivec.Object
}
NWPath is an object that contains information about the properties of the network that a connection uses, or that are available to your app.
See: https://developer.apple.com/documentation/Network/nw_path_t
func NWConnectionCopyCurrentPath ¶ added in v0.6.3
func NWConnectionCopyCurrentPath(connection NWConnection) NWPath
NWConnectionCopyCurrentPath accesses the network path the connection is using.
It panics if nw_connection_copy_current_path is unavailable at run time; use TryNWConnectionCopyCurrentPath to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_copy_current_path(_:)
func NWConnectionGroupCopyPathForMessage ¶ added in v0.6.3
func NWConnectionGroupCopyPathForMessage(group NWConnectionGroup, context NWContentContext) NWPath
NWConnectionGroupCopyPathForMessage accesses the network path on which you receive the message.
It panics if nw_connection_group_copy_path_for_message is unavailable at run time; use TryNWConnectionGroupCopyPathForMessage to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_path_for_message(_:_:)
func NWPathFromID ¶ added in v0.6.3
NWPathFromID constructs a NWPath from an objc.ID.
func TryNWConnectionCopyCurrentPath ¶
func TryNWConnectionCopyCurrentPath(connection NWConnection) (NWPath, error)
TryNWConnectionCopyCurrentPath is like NWConnectionCopyCurrentPath but returns an error instead of panicking if nw_connection_copy_current_path is unavailable at run time.
func TryNWConnectionGroupCopyPathForMessage ¶
func TryNWConnectionGroupCopyPathForMessage(group NWConnectionGroup, context NWContentContext) (NWPath, error)
TryNWConnectionGroupCopyPathForMessage is like NWConnectionGroupCopyPathForMessage but returns an error instead of panicking if nw_connection_group_copy_path_for_message is unavailable at run time.
type NWPathEnumerateGatewaysBlock ¶ added in v0.6.3
type NWPathEnumerateGatewaysBlock = func(NWEndpoint) bool
NWPathEnumerateGatewaysBlock is a block that enumerates the gateways configured on the interfaces available to a path.
See: https://developer.apple.com/documentation/Network/nw_path_enumerate_gateways_block_t
type NWPathEnumerateInterfacesBlock ¶ added in v0.6.3
type NWPathEnumerateInterfacesBlock = func(NWInterface) bool
NWPathEnumerateInterfacesBlock is a block that enumerates the interfaces available to a path.
See: https://developer.apple.com/documentation/Network/nw_path_enumerate_interfaces_block_t
type NWPathMonitor ¶ added in v0.6.3
type NWPathMonitor struct {
objectivec.Object
}
NWPathMonitor is an observer that you use to monitor and react to network changes.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_t
func NWPathMonitorCreate ¶ added in v0.6.3
func NWPathMonitorCreate() NWPathMonitor
NWPathMonitorCreate initializes a path monitor to observe all available interface types.
It panics if nw_path_monitor_create is unavailable at run time; use TryNWPathMonitorCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_create()
func NWPathMonitorCreateForEthernetChannel ¶ added in v0.6.3
func NWPathMonitorCreateForEthernetChannel() NWPathMonitor
NWPathMonitorCreateForEthernetChannel.
It panics if nw_path_monitor_create_for_ethernet_channel is unavailable at run time; use TryNWPathMonitorCreateForEthernetChannel to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_create_for_ethernet_channel()
func NWPathMonitorCreateWithType ¶ added in v0.6.3
func NWPathMonitorCreateWithType(required_interface_type NWInterfaceType) NWPathMonitor
NWPathMonitorCreateWithType initializes a path monitor to observe a specific interface type.
It panics if nw_path_monitor_create_with_type is unavailable at run time; use TryNWPathMonitorCreateWithType to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_create_with_type(_:)
func NWPathMonitorFromID ¶ added in v0.6.3
func NWPathMonitorFromID(id objc.ID) NWPathMonitor
NWPathMonitorFromID constructs a NWPathMonitor from an objc.ID.
func TryNWPathMonitorCreate ¶
func TryNWPathMonitorCreate() (NWPathMonitor, error)
TryNWPathMonitorCreate is like NWPathMonitorCreate but returns an error instead of panicking if nw_path_monitor_create is unavailable at run time.
func TryNWPathMonitorCreateForEthernetChannel ¶
func TryNWPathMonitorCreateForEthernetChannel() (NWPathMonitor, error)
TryNWPathMonitorCreateForEthernetChannel is like NWPathMonitorCreateForEthernetChannel but returns an error instead of panicking if nw_path_monitor_create_for_ethernet_channel is unavailable at run time.
func TryNWPathMonitorCreateWithType ¶
func TryNWPathMonitorCreateWithType(required_interface_type NWInterfaceType) (NWPathMonitor, error)
TryNWPathMonitorCreateWithType is like NWPathMonitorCreateWithType but returns an error instead of panicking if nw_path_monitor_create_with_type is unavailable at run time.
type NWPathMonitorCancelHandler ¶ added in v0.6.3
type NWPathMonitorCancelHandler = func()
NWPathMonitorCancelHandler is a handler that indicates when a monitor has been cancelled.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_cancel_handler_t
type NWPathMonitorUpdateHandler ¶ added in v0.6.3
type NWPathMonitorUpdateHandler = func(NWPath)
NWPathMonitorUpdateHandler is a handler that delivers network path updates.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_update_handler_t
type NWPathStatus ¶ added in v0.6.3
type NWPathStatus uint32
See: https://developer.apple.com/documentation/Network/nw_path_status_t
const ( // NWPathStatusInvalid: The path is not valid. NWPathStatusInvalid NWPathStatus = 0 // NWPathStatusSatisfiable: The path is not currently available, but establishing a new connection may activate the path. NWPathStatusSatisfiable NWPathStatus = 3 // NWPathStatusSatisfied: The path is available to establish connections and send data. NWPathStatusSatisfied NWPathStatus = 1 // NWPathStatusUnsatisfied: The path is not available for use. NWPathStatusUnsatisfied NWPathStatus = 2 )
func NWPathGetStatus ¶ added in v0.6.3
func NWPathGetStatus(path NWPath) NWPathStatus
NWPathGetStatus checks whether a path can be used by connections.
It panics if nw_path_get_status is unavailable at run time; use TryNWPathGetStatus to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_get_status(_:)
func TryNWPathGetStatus ¶
func TryNWPathGetStatus(path NWPath) (NWPathStatus, error)
TryNWPathGetStatus is like NWPathGetStatus but returns an error instead of panicking if nw_path_get_status is unavailable at run time.
func (NWPathStatus) String ¶ added in v0.6.3
func (e NWPathStatus) String() string
type NWPathUnsatisfiedReason ¶ added in v0.6.3
type NWPathUnsatisfiedReason uint32
See: https://developer.apple.com/documentation/Network/nw_path_unsatisfied_reason_t
const ( NWPathUnsatisfiedReasonCellularDenied NWPathUnsatisfiedReason = 1 NWPathUnsatisfiedReasonLocalNetworkDenied NWPathUnsatisfiedReason = 3 NWPathUnsatisfiedReasonNotAvailable NWPathUnsatisfiedReason = 0 NWPathUnsatisfiedReasonVpnInactive NWPathUnsatisfiedReason = 4 NWPathUnsatisfiedReasonWifiDenied NWPathUnsatisfiedReason = 2 )
func NWPathGetUnsatisfiedReason ¶ added in v0.6.3
func NWPathGetUnsatisfiedReason(path NWPath) NWPathUnsatisfiedReason
NWPathGetUnsatisfiedReason.
It panics if nw_path_get_unsatisfied_reason is unavailable at run time; use TryNWPathGetUnsatisfiedReason to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_path_get_unsatisfied_reason(_:)
func TryNWPathGetUnsatisfiedReason ¶
func TryNWPathGetUnsatisfiedReason(path NWPath) (NWPathUnsatisfiedReason, error)
TryNWPathGetUnsatisfiedReason is like NWPathGetUnsatisfiedReason but returns an error instead of panicking if nw_path_get_unsatisfied_reason is unavailable at run time.
func (NWPathUnsatisfiedReason) String ¶ added in v0.6.3
func (e NWPathUnsatisfiedReason) String() string
type NWPrivacyContext ¶ added in v0.6.3
type NWPrivacyContext struct {
objectivec.Object
}
NWPrivacyContext is an object that defines the privacy requirements for a set of connections.
See: https://developer.apple.com/documentation/Network/nw_privacy_context_t
func NWPrivacyContextCreate ¶ added in v0.6.3
func NWPrivacyContextCreate(description string) NWPrivacyContext
NWPrivacyContextCreate initializes a privacy context with a description string.
It panics if nw_privacy_context_create is unavailable at run time; use TryNWPrivacyContextCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_privacy_context_create(_:)
func NWPrivacyContextFromID ¶ added in v0.6.3
func NWPrivacyContextFromID(id objc.ID) NWPrivacyContext
NWPrivacyContextFromID constructs a NWPrivacyContext from an objc.ID.
func TryNWPrivacyContextCreate ¶
func TryNWPrivacyContextCreate(description string) (NWPrivacyContext, error)
TryNWPrivacyContextCreate is like NWPrivacyContextCreate but returns an error instead of panicking if nw_privacy_context_create is unavailable at run time.
type NWProtocolDefinition ¶ added in v0.6.3
type NWProtocolDefinition struct {
objectivec.Object
}
NWProtocolDefinition is the abstract superclass for identifying a network protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_definition_t
func NWFramerCreateDefinition ¶ added in v0.6.3
func NWFramerCreateDefinition(identifier string, flags uint32, start_handler NWFramerStartHandler) NWProtocolDefinition
NWFramerCreateDefinition initializes a new protocol definition based on your protocol implementation.
It panics if nw_framer_create_definition is unavailable at run time; use TryNWFramerCreateDefinition to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_create_definition(_:_:_:)
func NWProtocolCopyIPDefinition ¶ added in v0.6.3
func NWProtocolCopyIPDefinition() NWProtocolDefinition
NWProtocolCopyIPDefinition accesses the system definition of the Internet Protocol.
It panics if nw_protocol_copy_ip_definition is unavailable at run time; use TryNWProtocolCopyIPDefinition to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_ip_definition()
func NWProtocolCopyQuicDefinition ¶ added in v0.6.3
func NWProtocolCopyQuicDefinition() NWProtocolDefinition
NWProtocolCopyQuicDefinition accesses the system definition of the QUIC transport protocol.
It panics if nw_protocol_copy_quic_definition is unavailable at run time; use TryNWProtocolCopyQuicDefinition to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_quic_definition()
func NWProtocolCopyTCPDefinition ¶ added in v0.6.3
func NWProtocolCopyTCPDefinition() NWProtocolDefinition
NWProtocolCopyTCPDefinition accesses the system definition of the Transport Control Protocol.
It panics if nw_protocol_copy_tcp_definition is unavailable at run time; use TryNWProtocolCopyTCPDefinition to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_tcp_definition()
func NWProtocolCopyTLSDefinition ¶ added in v0.6.3
func NWProtocolCopyTLSDefinition() NWProtocolDefinition
NWProtocolCopyTLSDefinition accesses the system definition of the Transport Layer Security protocol.
It panics if nw_protocol_copy_tls_definition is unavailable at run time; use TryNWProtocolCopyTLSDefinition to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_tls_definition()
func NWProtocolCopyUDPDefinition ¶ added in v0.6.3
func NWProtocolCopyUDPDefinition() NWProtocolDefinition
NWProtocolCopyUDPDefinition accesses the system definition of the User Datagram Protocol.
It panics if nw_protocol_copy_udp_definition is unavailable at run time; use TryNWProtocolCopyUDPDefinition to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_udp_definition()
func NWProtocolCopyWsDefinition ¶ added in v0.6.3
func NWProtocolCopyWsDefinition() NWProtocolDefinition
NWProtocolCopyWsDefinition accesses the system definition of the WebSocket protocol.
It panics if nw_protocol_copy_ws_definition is unavailable at run time; use TryNWProtocolCopyWsDefinition to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_ws_definition()
func NWProtocolDefinitionFromID ¶ added in v0.6.3
func NWProtocolDefinitionFromID(id objc.ID) NWProtocolDefinition
NWProtocolDefinitionFromID constructs a NWProtocolDefinition from an objc.ID.
func NWProtocolMetadataCopyDefinition ¶ added in v0.6.3
func NWProtocolMetadataCopyDefinition(metadata NWProtocolMetadata) NWProtocolDefinition
NWProtocolMetadataCopyDefinition accesses the protocol definition associated with the metadata object.
It panics if nw_protocol_metadata_copy_definition is unavailable at run time; use TryNWProtocolMetadataCopyDefinition to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_copy_definition(_:)
func NWProtocolOptionsCopyDefinition ¶ added in v0.6.3
func NWProtocolOptionsCopyDefinition(options NWProtocolOptions) NWProtocolDefinition
NWProtocolOptionsCopyDefinition accesses the protocol definition associated with the options object.
It panics if nw_protocol_options_copy_definition is unavailable at run time; use TryNWProtocolOptionsCopyDefinition to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_options_copy_definition(_:)
func TryNWFramerCreateDefinition ¶
func TryNWFramerCreateDefinition(identifier string, flags uint32, start_handler NWFramerStartHandler) (NWProtocolDefinition, error)
TryNWFramerCreateDefinition is like NWFramerCreateDefinition but returns an error instead of panicking if nw_framer_create_definition is unavailable at run time.
func TryNWProtocolCopyIPDefinition ¶
func TryNWProtocolCopyIPDefinition() (NWProtocolDefinition, error)
TryNWProtocolCopyIPDefinition is like NWProtocolCopyIPDefinition but returns an error instead of panicking if nw_protocol_copy_ip_definition is unavailable at run time.
func TryNWProtocolCopyQuicDefinition ¶
func TryNWProtocolCopyQuicDefinition() (NWProtocolDefinition, error)
TryNWProtocolCopyQuicDefinition is like NWProtocolCopyQuicDefinition but returns an error instead of panicking if nw_protocol_copy_quic_definition is unavailable at run time.
func TryNWProtocolCopyTCPDefinition ¶
func TryNWProtocolCopyTCPDefinition() (NWProtocolDefinition, error)
TryNWProtocolCopyTCPDefinition is like NWProtocolCopyTCPDefinition but returns an error instead of panicking if nw_protocol_copy_tcp_definition is unavailable at run time.
func TryNWProtocolCopyTLSDefinition ¶
func TryNWProtocolCopyTLSDefinition() (NWProtocolDefinition, error)
TryNWProtocolCopyTLSDefinition is like NWProtocolCopyTLSDefinition but returns an error instead of panicking if nw_protocol_copy_tls_definition is unavailable at run time.
func TryNWProtocolCopyUDPDefinition ¶
func TryNWProtocolCopyUDPDefinition() (NWProtocolDefinition, error)
TryNWProtocolCopyUDPDefinition is like NWProtocolCopyUDPDefinition but returns an error instead of panicking if nw_protocol_copy_udp_definition is unavailable at run time.
func TryNWProtocolCopyWsDefinition ¶
func TryNWProtocolCopyWsDefinition() (NWProtocolDefinition, error)
TryNWProtocolCopyWsDefinition is like NWProtocolCopyWsDefinition but returns an error instead of panicking if nw_protocol_copy_ws_definition is unavailable at run time.
func TryNWProtocolMetadataCopyDefinition ¶
func TryNWProtocolMetadataCopyDefinition(metadata NWProtocolMetadata) (NWProtocolDefinition, error)
TryNWProtocolMetadataCopyDefinition is like NWProtocolMetadataCopyDefinition but returns an error instead of panicking if nw_protocol_metadata_copy_definition is unavailable at run time.
func TryNWProtocolOptionsCopyDefinition ¶
func TryNWProtocolOptionsCopyDefinition(options NWProtocolOptions) (NWProtocolDefinition, error)
TryNWProtocolOptionsCopyDefinition is like NWProtocolOptionsCopyDefinition but returns an error instead of panicking if nw_protocol_options_copy_definition is unavailable at run time.
type NWProtocolMetadata ¶ added in v0.6.3
type NWProtocolMetadata struct {
objectivec.Object
}
NWProtocolMetadata is the abstract superclass for specifying metadata about a network protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_t
func NWConnectionCopyProtocolMetadata ¶ added in v0.6.3
func NWConnectionCopyProtocolMetadata(connection NWConnection, definition NWProtocolDefinition) NWProtocolMetadata
NWConnectionCopyProtocolMetadata retrieves the connection-wide metadata for a specific protocol.
It panics if nw_connection_copy_protocol_metadata is unavailable at run time; use TryNWConnectionCopyProtocolMetadata to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_copy_protocol_metadata(_:_:)
func NWConnectionGroupCopyProtocolMetadata ¶ added in v0.6.3
func NWConnectionGroupCopyProtocolMetadata(group NWConnectionGroup, definition NWProtocolDefinition) NWProtocolMetadata
NWConnectionGroupCopyProtocolMetadata.
It panics if nw_connection_group_copy_protocol_metadata is unavailable at run time; use TryNWConnectionGroupCopyProtocolMetadata to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_protocol_metadata(_:_:)
func NWConnectionGroupCopyProtocolMetadataForMessage ¶ added in v0.6.3
func NWConnectionGroupCopyProtocolMetadataForMessage(group NWConnectionGroup, context NWContentContext, definition NWProtocolDefinition) NWProtocolMetadata
NWConnectionGroupCopyProtocolMetadataForMessage.
It panics if nw_connection_group_copy_protocol_metadata_for_message is unavailable at run time; use TryNWConnectionGroupCopyProtocolMetadataForMessage to get an error instead.
func NWContentContextCopyProtocolMetadata ¶ added in v0.6.3
func NWContentContextCopyProtocolMetadata(context NWContentContext, protocol_ NWProtocolDefinition) NWProtocolMetadata
NWContentContextCopyProtocolMetadata retreives the metadata associated with a specific protocol.
It panics if nw_content_context_copy_protocol_metadata is unavailable at run time; use TryNWContentContextCopyProtocolMetadata to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_content_context_copy_protocol_metadata(_:_:)
func NWIPCreateMetadata ¶ added in v0.6.3
func NWIPCreateMetadata() NWProtocolMetadata
NWIPCreateMetadata initializes an IP packet configuration with default settings.
It panics if nw_ip_create_metadata is unavailable at run time; use TryNWIPCreateMetadata to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_create_metadata()
func NWProtocolMetadataFromID ¶ added in v0.6.3
func NWProtocolMetadataFromID(id objc.ID) NWProtocolMetadata
NWProtocolMetadataFromID constructs a NWProtocolMetadata from an objc.ID.
func NWUDPCreateMetadata ¶ added in v0.6.3
func NWUDPCreateMetadata() NWProtocolMetadata
NWUDPCreateMetadata initializes a default UDP message.
It panics if nw_udp_create_metadata is unavailable at run time; use TryNWUDPCreateMetadata to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_udp_create_metadata()
func NWWsCreateMetadata ¶ added in v0.6.3
func NWWsCreateMetadata(opcode NWWsOpcode) NWProtocolMetadata
NWWsCreateMetadata initializes a WebSocket message with a specific type code.
It panics if nw_ws_create_metadata is unavailable at run time; use TryNWWsCreateMetadata to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_create_metadata(_:)
func TryNWConnectionCopyProtocolMetadata ¶
func TryNWConnectionCopyProtocolMetadata(connection NWConnection, definition NWProtocolDefinition) (NWProtocolMetadata, error)
TryNWConnectionCopyProtocolMetadata is like NWConnectionCopyProtocolMetadata but returns an error instead of panicking if nw_connection_copy_protocol_metadata is unavailable at run time.
func TryNWConnectionGroupCopyProtocolMetadata ¶
func TryNWConnectionGroupCopyProtocolMetadata(group NWConnectionGroup, definition NWProtocolDefinition) (NWProtocolMetadata, error)
TryNWConnectionGroupCopyProtocolMetadata is like NWConnectionGroupCopyProtocolMetadata but returns an error instead of panicking if nw_connection_group_copy_protocol_metadata is unavailable at run time.
func TryNWConnectionGroupCopyProtocolMetadataForMessage ¶
func TryNWConnectionGroupCopyProtocolMetadataForMessage(group NWConnectionGroup, context NWContentContext, definition NWProtocolDefinition) (NWProtocolMetadata, error)
TryNWConnectionGroupCopyProtocolMetadataForMessage is like NWConnectionGroupCopyProtocolMetadataForMessage but returns an error instead of panicking if nw_connection_group_copy_protocol_metadata_for_message is unavailable at run time.
func TryNWContentContextCopyProtocolMetadata ¶
func TryNWContentContextCopyProtocolMetadata(context NWContentContext, protocol_ NWProtocolDefinition) (NWProtocolMetadata, error)
TryNWContentContextCopyProtocolMetadata is like NWContentContextCopyProtocolMetadata but returns an error instead of panicking if nw_content_context_copy_protocol_metadata is unavailable at run time.
func TryNWIPCreateMetadata ¶
func TryNWIPCreateMetadata() (NWProtocolMetadata, error)
TryNWIPCreateMetadata is like NWIPCreateMetadata but returns an error instead of panicking if nw_ip_create_metadata is unavailable at run time.
func TryNWUDPCreateMetadata ¶
func TryNWUDPCreateMetadata() (NWProtocolMetadata, error)
TryNWUDPCreateMetadata is like NWUDPCreateMetadata but returns an error instead of panicking if nw_udp_create_metadata is unavailable at run time.
func TryNWWsCreateMetadata ¶
func TryNWWsCreateMetadata(opcode NWWsOpcode) (NWProtocolMetadata, error)
TryNWWsCreateMetadata is like NWWsCreateMetadata but returns an error instead of panicking if nw_ws_create_metadata is unavailable at run time.
type NWProtocolOptions ¶ added in v0.6.3
type NWProtocolOptions struct {
objectivec.Object
}
NWProtocolOptions is the abstract superclass for configuring the options of a network protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_options_t
func NWFramerCopyOptions ¶ added in v0.6.3
func NWFramerCopyOptions(framer NWFramer) NWProtocolOptions
NWFramerCopyOptions.
It panics if nw_framer_copy_options is unavailable at run time; use TryNWFramerCopyOptions to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_copy_options(_:)
func NWFramerCreateOptions ¶ added in v0.6.3
func NWFramerCreateOptions(framer_definition NWProtocolDefinition) NWProtocolOptions
NWFramerCreateOptions initializes a set of protocol options with a custom framer definition.
It panics if nw_framer_create_options is unavailable at run time; use TryNWFramerCreateOptions to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_framer_create_options(_:)
func NWProtocolOptionsFromID ¶ added in v0.6.3
func NWProtocolOptionsFromID(id objc.ID) NWProtocolOptions
NWProtocolOptionsFromID constructs a NWProtocolOptions from an objc.ID.
func NWProtocolStackCopyInternetProtocol ¶ added in v0.6.3
func NWProtocolStackCopyInternetProtocol(stack NWProtocolStack) NWProtocolOptions
NWProtocolStackCopyInternetProtocol accesses the protocol stack’s Internet Protocol options.
It panics if nw_protocol_stack_copy_internet_protocol is unavailable at run time; use TryNWProtocolStackCopyInternetProtocol to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_stack_copy_internet_protocol(_:)
func NWProtocolStackCopyTransportProtocol ¶ added in v0.6.3
func NWProtocolStackCopyTransportProtocol(stack NWProtocolStack) NWProtocolOptions
NWProtocolStackCopyTransportProtocol accesses the options for the protocol stack’s transport protocol.
It panics if nw_protocol_stack_copy_transport_protocol is unavailable at run time; use TryNWProtocolStackCopyTransportProtocol to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_protocol_stack_copy_transport_protocol(_:)
func NWQuicCreateOptions ¶ added in v0.6.3
func NWQuicCreateOptions() NWProtocolOptions
NWQuicCreateOptions initializes a default set of QUIC connection options.
It panics if nw_quic_create_options is unavailable at run time; use TryNWQuicCreateOptions to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_quic_create_options()
func NWTCPCreateOptions ¶ added in v0.6.3
func NWTCPCreateOptions() NWProtocolOptions
NWTCPCreateOptions initializes a default set of TCP connection options.
It panics if nw_tcp_create_options is unavailable at run time; use TryNWTCPCreateOptions to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tcp_create_options()
func NWTLSCreateOptions ¶ added in v0.6.3
func NWTLSCreateOptions() NWProtocolOptions
NWTLSCreateOptions initializes a default set of TLS connection options.
It panics if nw_tls_create_options is unavailable at run time; use TryNWTLSCreateOptions to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_tls_create_options()
func NWUDPCreateOptions ¶ added in v0.6.3
func NWUDPCreateOptions() NWProtocolOptions
NWUDPCreateOptions initializes a default set of UDP connection options.
It panics if nw_udp_create_options is unavailable at run time; use TryNWUDPCreateOptions to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_udp_create_options()
func NWWsCreateOptions ¶ added in v0.6.3
func NWWsCreateOptions(version NWWsVersion) NWProtocolOptions
NWWsCreateOptions initializes a default set of WebSocket connection options.
It panics if nw_ws_create_options is unavailable at run time; use TryNWWsCreateOptions to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_create_options(_:)
func TryNWFramerCopyOptions ¶
func TryNWFramerCopyOptions(framer NWFramer) (NWProtocolOptions, error)
TryNWFramerCopyOptions is like NWFramerCopyOptions but returns an error instead of panicking if nw_framer_copy_options is unavailable at run time.
func TryNWFramerCreateOptions ¶
func TryNWFramerCreateOptions(framer_definition NWProtocolDefinition) (NWProtocolOptions, error)
TryNWFramerCreateOptions is like NWFramerCreateOptions but returns an error instead of panicking if nw_framer_create_options is unavailable at run time.
func TryNWProtocolStackCopyInternetProtocol ¶
func TryNWProtocolStackCopyInternetProtocol(stack NWProtocolStack) (NWProtocolOptions, error)
TryNWProtocolStackCopyInternetProtocol is like NWProtocolStackCopyInternetProtocol but returns an error instead of panicking if nw_protocol_stack_copy_internet_protocol is unavailable at run time.
func TryNWProtocolStackCopyTransportProtocol ¶
func TryNWProtocolStackCopyTransportProtocol(stack NWProtocolStack) (NWProtocolOptions, error)
TryNWProtocolStackCopyTransportProtocol is like NWProtocolStackCopyTransportProtocol but returns an error instead of panicking if nw_protocol_stack_copy_transport_protocol is unavailable at run time.
func TryNWQuicCreateOptions ¶
func TryNWQuicCreateOptions() (NWProtocolOptions, error)
TryNWQuicCreateOptions is like NWQuicCreateOptions but returns an error instead of panicking if nw_quic_create_options is unavailable at run time.
func TryNWTCPCreateOptions ¶
func TryNWTCPCreateOptions() (NWProtocolOptions, error)
TryNWTCPCreateOptions is like NWTCPCreateOptions but returns an error instead of panicking if nw_tcp_create_options is unavailable at run time.
func TryNWTLSCreateOptions ¶
func TryNWTLSCreateOptions() (NWProtocolOptions, error)
TryNWTLSCreateOptions is like NWTLSCreateOptions but returns an error instead of panicking if nw_tls_create_options is unavailable at run time.
func TryNWUDPCreateOptions ¶
func TryNWUDPCreateOptions() (NWProtocolOptions, error)
TryNWUDPCreateOptions is like NWUDPCreateOptions but returns an error instead of panicking if nw_udp_create_options is unavailable at run time.
func TryNWWsCreateOptions ¶
func TryNWWsCreateOptions(version NWWsVersion) (NWProtocolOptions, error)
TryNWWsCreateOptions is like NWWsCreateOptions but returns an error instead of panicking if nw_ws_create_options is unavailable at run time.
type NWProtocolStack ¶ added in v0.6.3
type NWProtocolStack struct {
objectivec.Object
}
NWProtocolStack is an ordered set of protocol options that define the protocols that connections and listeners use.
See: https://developer.apple.com/documentation/Network/nw_protocol_stack_t
func NWParametersCopyDefaultProtocolStack ¶ added in v0.6.3
func NWParametersCopyDefaultProtocolStack(parameters NWParameters) NWProtocolStack
NWParametersCopyDefaultProtocolStack accesses the protocol stack used by connections and listeners.
It panics if nw_parameters_copy_default_protocol_stack is unavailable at run time; use TryNWParametersCopyDefaultProtocolStack to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_copy_default_protocol_stack(_:)
func NWProtocolStackFromID ¶ added in v0.6.3
func NWProtocolStackFromID(id objc.ID) NWProtocolStack
NWProtocolStackFromID constructs a NWProtocolStack from an objc.ID.
func TryNWParametersCopyDefaultProtocolStack ¶
func TryNWParametersCopyDefaultProtocolStack(parameters NWParameters) (NWProtocolStack, error)
TryNWParametersCopyDefaultProtocolStack is like NWParametersCopyDefaultProtocolStack but returns an error instead of panicking if nw_parameters_copy_default_protocol_stack is unavailable at run time.
type NWProtocolStackIterateProtocolsBlock ¶ added in v0.6.3
type NWProtocolStackIterateProtocolsBlock = func(NWProtocolOptions)
NWProtocolStackIterateProtocolsBlock is a block that allows you to inspect or modify a single protocol’s options.
See: https://developer.apple.com/documentation/Network/nw_protocol_stack_iterate_protocols_block_t
type NWProxyConfig ¶ added in v0.6.3
type NWProxyConfig struct {
objectivec.Object
}
NWProxyConfig is a proxy configuration for Relays, Oblivious HTTP, HTTP CONNECT, or SOCKSv5.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_t
func NWProxyConfigCreateHttpConnect ¶ added in v0.6.3
func NWProxyConfigCreateHttpConnect(proxy_endpoint NWEndpoint, proxy_tls_options NWProtocolOptions) NWProxyConfig
NWProxyConfigCreateHttpConnect initializes a legacy HTTP CONNECT configuration for a proxy server accessible using HTTP/1.1.
It panics if nw_proxy_config_create_http_connect is unavailable at run time; use TryNWProxyConfigCreateHttpConnect to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_create_http_connect(_:_:)
func NWProxyConfigCreateObliviousHttp ¶ added in v0.6.3
func NWProxyConfigCreateObliviousHttp(relay NWRelayHop, relay_resource_path string, gateway_key_config []byte, gateway_key_config_length uintptr) NWProxyConfig
NWProxyConfigCreateObliviousHttp initializes an Oblivious HTTP proxy configuration using a relay and a gateway.
It panics if nw_proxy_config_create_oblivious_http is unavailable at run time; use TryNWProxyConfigCreateObliviousHttp to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_create_oblivious_http(_:_:_:_:)
func NWProxyConfigCreateRelay ¶ added in v0.6.3
func NWProxyConfigCreateRelay(first_hop NWRelayHop, second_hop NWRelayHop) NWProxyConfig
NWProxyConfigCreateRelay initializes a proxy configuration with one or two relay hops.
It panics if nw_proxy_config_create_relay is unavailable at run time; use TryNWProxyConfigCreateRelay to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_create_relay(_:_:)
func NWProxyConfigCreateSocksv5 ¶ added in v0.6.3
func NWProxyConfigCreateSocksv5(proxy_endpoint NWEndpoint) NWProxyConfig
NWProxyConfigCreateSocksv5 initializes a SOCKSv5 proxy configuration.
It panics if nw_proxy_config_create_socksv5 is unavailable at run time; use TryNWProxyConfigCreateSocksv5 to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_create_socksv5(_:)
func NWProxyConfigFromID ¶ added in v0.6.3
func NWProxyConfigFromID(id objc.ID) NWProxyConfig
NWProxyConfigFromID constructs a NWProxyConfig from an objc.ID.
func TryNWProxyConfigCreateHttpConnect ¶
func TryNWProxyConfigCreateHttpConnect(proxy_endpoint NWEndpoint, proxy_tls_options NWProtocolOptions) (NWProxyConfig, error)
TryNWProxyConfigCreateHttpConnect is like NWProxyConfigCreateHttpConnect but returns an error instead of panicking if nw_proxy_config_create_http_connect is unavailable at run time.
func TryNWProxyConfigCreateObliviousHttp ¶
func TryNWProxyConfigCreateObliviousHttp(relay NWRelayHop, relay_resource_path string, gateway_key_config []byte, gateway_key_config_length uintptr) (NWProxyConfig, error)
TryNWProxyConfigCreateObliviousHttp is like NWProxyConfigCreateObliviousHttp but returns an error instead of panicking if nw_proxy_config_create_oblivious_http is unavailable at run time.
func TryNWProxyConfigCreateRelay ¶
func TryNWProxyConfigCreateRelay(first_hop NWRelayHop, second_hop NWRelayHop) (NWProxyConfig, error)
TryNWProxyConfigCreateRelay is like NWProxyConfigCreateRelay but returns an error instead of panicking if nw_proxy_config_create_relay is unavailable at run time.
func TryNWProxyConfigCreateSocksv5 ¶
func TryNWProxyConfigCreateSocksv5(proxy_endpoint NWEndpoint) (NWProxyConfig, error)
TryNWProxyConfigCreateSocksv5 is like NWProxyConfigCreateSocksv5 but returns an error instead of panicking if nw_proxy_config_create_socksv5 is unavailable at run time.
type NWProxyDomainEnumerator ¶ added in v0.6.3
type NWProxyDomainEnumerator = func(string)
See: https://developer.apple.com/documentation/Network/nw_proxy_domain_enumerator_t
type NWQuicStreamType ¶ added in v0.6.3
type NWQuicStreamType uint32
See: https://developer.apple.com/documentation/Network/nw_quic_stream_type_t
const ( NWQuicStreamTypeBidirectional NWQuicStreamType = 1 NWQuicStreamTypeDatagram NWQuicStreamType = 3 NWQuicStreamTypeUnidirectional NWQuicStreamType = 2 NWQuicStreamTypeUnknown NWQuicStreamType = 0 )
func (NWQuicStreamType) String ¶ added in v0.6.3
func (e NWQuicStreamType) String() string
type NWRelayHop ¶ added in v0.6.3
type NWRelayHop struct {
objectivec.Object
}
NWRelayHop is a single relay server you can chain together with other servers.
See: https://developer.apple.com/documentation/Network/nw_relay_hop_t
func NWRelayHopCreate ¶ added in v0.6.3
func NWRelayHopCreate(http3_relay_endpoint NWEndpoint, http2_relay_endpoint NWEndpoint, relay_tls_options NWProtocolOptions) NWRelayHop
NWRelayHopCreate creates a configuration for a secure relay accessible using HTTP/3, with an optional HTTP/2 fallback.
It panics if nw_relay_hop_create is unavailable at run time; use TryNWRelayHopCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_relay_hop_create(_:_:_:)
func NWRelayHopFromID ¶ added in v0.6.3
func NWRelayHopFromID(id objc.ID) NWRelayHop
NWRelayHopFromID constructs a NWRelayHop from an objc.ID.
func TryNWRelayHopCreate ¶
func TryNWRelayHopCreate(http3_relay_endpoint NWEndpoint, http2_relay_endpoint NWEndpoint, relay_tls_options NWProtocolOptions) (NWRelayHop, error)
TryNWRelayHopCreate is like NWRelayHopCreate but returns an error instead of panicking if nw_relay_hop_create is unavailable at run time.
type NWReportProtocolEnumerator ¶ added in v0.6.3
type NWReportProtocolEnumerator = func(NWProtocolDefinition, uint64, uint64) bool
NWReportProtocolEnumerator is a block used to enumerate protocol handshakes performed during connection establishment.
See: https://developer.apple.com/documentation/Network/nw_report_protocol_enumerator_t
type NWReportResolutionEnumerator ¶ added in v0.6.3
type NWReportResolutionEnumerator = func(NWReportResolutionSource, uint64, uint32, NWEndpoint, NWEndpoint) bool
NWReportResolutionEnumerator is a block used to enumerate resolution steps performed during connection establishment.
See: https://developer.apple.com/documentation/Network/nw_report_resolution_enumerator_t
type NWReportResolutionProtocol ¶ added in v0.6.3
type NWReportResolutionProtocol uint32
See: https://developer.apple.com/documentation/Network/nw_report_resolution_protocol_t
const ( // NWReportResolutionProtocolHttps: The connection used HTTPS for DNS resolution. NWReportResolutionProtocolHttps NWReportResolutionProtocol = 4 // NWReportResolutionProtocolTCP: The connection used cleartext TCP for DNS resolution. NWReportResolutionProtocolTCP NWReportResolutionProtocol = 2 // NWReportResolutionProtocolTLS: The connection used TLS for DNS resolution. NWReportResolutionProtocolTLS NWReportResolutionProtocol = 3 // NWReportResolutionProtocolUDP: The connection used cleartext UDP for DNS resolution. NWReportResolutionProtocolUDP NWReportResolutionProtocol = 1 // NWReportResolutionProtocolUnknown: The DNS response protocol is unknown or not applicable. NWReportResolutionProtocolUnknown NWReportResolutionProtocol = 0 )
func NWResolutionReportGetProtocol ¶ added in v0.6.3
func NWResolutionReportGetProtocol(resolution_report NWResolutionReport) NWReportResolutionProtocol
NWResolutionReportGetProtocol accesses the transport protocol your connection used for DNS resolution.
It panics if nw_resolution_report_get_protocol is unavailable at run time; use TryNWResolutionReportGetProtocol to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_get_protocol(_:)
func TryNWResolutionReportGetProtocol ¶
func TryNWResolutionReportGetProtocol(resolution_report NWResolutionReport) (NWReportResolutionProtocol, error)
TryNWResolutionReportGetProtocol is like NWResolutionReportGetProtocol but returns an error instead of panicking if nw_resolution_report_get_protocol is unavailable at run time.
func (NWReportResolutionProtocol) String ¶ added in v0.6.3
func (e NWReportResolutionProtocol) String() string
type NWReportResolutionReportEnumerator ¶ added in v0.6.3
type NWReportResolutionReportEnumerator = func(NWResolutionReport) bool
NWReportResolutionReportEnumerator is iterates a list of resolution steps, as [nw_resolution_report_t] objects, performed during connection establishment, in order from first resolved to last resolved.
See: https://developer.apple.com/documentation/Network/nw_report_resolution_report_enumerator_t
type NWReportResolutionSource ¶ added in v0.6.3
type NWReportResolutionSource uint32
See: https://developer.apple.com/documentation/Network/nw_report_resolution_source_t
const ( // NWReportResolutionSourceCache: The DNS response was retrieved from a local cache. NWReportResolutionSourceCache NWReportResolutionSource = 2 // NWReportResolutionSourceExpiredCache: The DNS response had expired and was retrieved from a local cache. NWReportResolutionSourceExpiredCache NWReportResolutionSource = 3 // NWReportResolutionSourceQuery: The DNS response was received from the network. NWReportResolutionSourceQuery NWReportResolutionSource = 1 )
func NWResolutionReportGetSource ¶ added in v0.6.3
func NWResolutionReportGetSource(resolution_report NWResolutionReport) NWReportResolutionSource
NWResolutionReportGetSource accesses the source of the DNS response.
It panics if nw_resolution_report_get_source is unavailable at run time; use TryNWResolutionReportGetSource to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_get_source(_:)
func TryNWResolutionReportGetSource ¶
func TryNWResolutionReportGetSource(resolution_report NWResolutionReport) (NWReportResolutionSource, error)
TryNWResolutionReportGetSource is like NWResolutionReportGetSource but returns an error instead of panicking if nw_resolution_report_get_source is unavailable at run time.
func (NWReportResolutionSource) String ¶ added in v0.6.3
func (e NWReportResolutionSource) String() string
type NWResolutionReport ¶ added in v0.6.3
type NWResolutionReport struct {
objectivec.Object
}
NWResolutionReport is a description of a single DNS resolution step.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_t
func NWResolutionReportFromID ¶ added in v0.6.3
func NWResolutionReportFromID(id objc.ID) NWResolutionReport
NWResolutionReportFromID constructs a NWResolutionReport from an objc.ID.
type NWResolverConfig ¶ added in v0.6.3
type NWResolverConfig struct {
objectivec.Object
}
NWResolverConfig is a DNS server configuration that uses TLS or HTTPS.
See: https://developer.apple.com/documentation/Network/nw_resolver_config_t
func NWResolverConfigCreateHttps ¶ added in v0.6.3
func NWResolverConfigCreateHttps(url_endpoint NWEndpoint) NWResolverConfig
NWResolverConfigCreateHttps initializes a DNS-over-HTTPS resolver configuration.
It panics if nw_resolver_config_create_https is unavailable at run time; use TryNWResolverConfigCreateHttps to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_resolver_config_create_https(_:)
func NWResolverConfigCreateTLS ¶ added in v0.6.3
func NWResolverConfigCreateTLS(server_endpoint NWEndpoint) NWResolverConfig
NWResolverConfigCreateTLS initializes a DNS-over-TLS resolver configuration.
It panics if nw_resolver_config_create_tls is unavailable at run time; use TryNWResolverConfigCreateTLS to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_resolver_config_create_tls(_:)
func NWResolverConfigFromID ¶ added in v0.6.3
func NWResolverConfigFromID(id objc.ID) NWResolverConfig
NWResolverConfigFromID constructs a NWResolverConfig from an objc.ID.
func TryNWResolverConfigCreateHttps ¶
func TryNWResolverConfigCreateHttps(url_endpoint NWEndpoint) (NWResolverConfig, error)
TryNWResolverConfigCreateHttps is like NWResolverConfigCreateHttps but returns an error instead of panicking if nw_resolver_config_create_https is unavailable at run time.
func TryNWResolverConfigCreateTLS ¶
func TryNWResolverConfigCreateTLS(server_endpoint NWEndpoint) (NWResolverConfig, error)
TryNWResolverConfigCreateTLS is like NWResolverConfigCreateTLS but returns an error instead of panicking if nw_resolver_config_create_tls is unavailable at run time.
type NWServiceClass ¶ added in v0.6.3
type NWServiceClass uint32
See: https://developer.apple.com/documentation/Network/nw_service_class_t
const ( // NWServiceClassBackground: Bulk traffic, or traffic that can be deprioritized behind foreground traffic. NWServiceClassBackground NWServiceClass = 1 // NWServiceClassBestEffort: Default priority traffic. NWServiceClassBestEffort NWServiceClass = 0 // NWServiceClassInteractiveVideo: Interactive video traffic. NWServiceClassInteractiveVideo NWServiceClass = 2 // NWServiceClassInteractiveVoice: Interactive voice traffic. NWServiceClassInteractiveVoice NWServiceClass = 3 // NWServiceClassResponsiveData: Responsive user-data traffic. NWServiceClassResponsiveData NWServiceClass = 4 // NWServiceClassSignaling: Signaling control traffic. NWServiceClassSignaling NWServiceClass = 5 )
func NWIPMetadataGetServiceClass ¶ added in v0.6.3
func NWIPMetadataGetServiceClass(metadata NWProtocolMetadata) NWServiceClass
NWIPMetadataGetServiceClass accesses a specific service class to mark on an IP packet.
It panics if nw_ip_metadata_get_service_class is unavailable at run time; use TryNWIPMetadataGetServiceClass to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ip_metadata_get_service_class(_:)
func NWParametersGetServiceClass ¶ added in v0.6.3
func NWParametersGetServiceClass(parameters NWParameters) NWServiceClass
NWParametersGetServiceClass checks the level of service quality used for connections.
It panics if nw_parameters_get_service_class is unavailable at run time; use TryNWParametersGetServiceClass to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_service_class(_:)
func TryNWIPMetadataGetServiceClass ¶
func TryNWIPMetadataGetServiceClass(metadata NWProtocolMetadata) (NWServiceClass, error)
TryNWIPMetadataGetServiceClass is like NWIPMetadataGetServiceClass but returns an error instead of panicking if nw_ip_metadata_get_service_class is unavailable at run time.
func TryNWParametersGetServiceClass ¶
func TryNWParametersGetServiceClass(parameters NWParameters) (NWServiceClass, error)
TryNWParametersGetServiceClass is like NWParametersGetServiceClass but returns an error instead of panicking if nw_parameters_get_service_class is unavailable at run time.
func (NWServiceClass) String ¶ added in v0.6.3
func (e NWServiceClass) String() string
type NWTXTRecord ¶ added in v0.6.3
type NWTXTRecord struct {
objectivec.Object
}
NWTXTRecord is a dictionary representing a TXT record in a DNS packet.
See: https://developer.apple.com/documentation/Network/nw_txt_record_t
func NWAdvertiseDescriptorCopyTXTRecordObject ¶ added in v0.6.3
func NWAdvertiseDescriptorCopyTXTRecordObject(advertise_descriptor NWAdvertiseDescriptor) NWTXTRecord
NWAdvertiseDescriptorCopyTXTRecordObject accesses the TXT record to advertise with the service.
It panics if nw_advertise_descriptor_copy_txt_record_object is unavailable at run time; use TryNWAdvertiseDescriptorCopyTXTRecordObject to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_advertise_descriptor_copy_txt_record_object(_:)
func NWBrowseResultCopyTXTRecordObject ¶ added in v0.6.3
func NWBrowseResultCopyTXTRecordObject(result NWBrowseResult) NWTXTRecord
NWBrowseResultCopyTXTRecordObject accesses the TXT record associated with a discovered service.
It panics if nw_browse_result_copy_txt_record_object is unavailable at run time; use TryNWBrowseResultCopyTXTRecordObject to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_browse_result_copy_txt_record_object(_:)
func NWEndpointCopyTXTRecord ¶ added in v0.6.3
func NWEndpointCopyTXTRecord(endpoint NWEndpoint) NWTXTRecord
NWEndpointCopyTXTRecord.
It panics if nw_endpoint_copy_txt_record is unavailable at run time; use TryNWEndpointCopyTXTRecord to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_endpoint_copy_txt_record(_:)
func NWTXTRecordCopy ¶ added in v0.6.3
func NWTXTRecordCopy(txt_record NWTXTRecord) NWTXTRecord
NWTXTRecordCopy performs a deep copy of a TXT record.
It panics if nw_txt_record_copy is unavailable at run time; use TryNWTXTRecordCopy to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_copy(_:)
func NWTXTRecordCreateDictionary ¶ added in v0.6.3
func NWTXTRecordCreateDictionary() NWTXTRecord
NWTXTRecordCreateDictionary initializes a TXT record as a dictionary of strings.
It panics if nw_txt_record_create_dictionary is unavailable at run time; use TryNWTXTRecordCreateDictionary to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_create_dictionary()
func NWTXTRecordCreateWithBytes ¶ added in v0.6.3
func NWTXTRecordCreateWithBytes(txt_bytes []byte, txt_len uintptr) NWTXTRecord
NWTXTRecordCreateWithBytes initializes a TXT record with raw bytes.
It panics if nw_txt_record_create_with_bytes is unavailable at run time; use TryNWTXTRecordCreateWithBytes to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_create_with_bytes(_:_:)
func NWTXTRecordFromID ¶ added in v0.6.3
func NWTXTRecordFromID(id objc.ID) NWTXTRecord
NWTXTRecordFromID constructs a NWTXTRecord from an objc.ID.
func TryNWAdvertiseDescriptorCopyTXTRecordObject ¶
func TryNWAdvertiseDescriptorCopyTXTRecordObject(advertise_descriptor NWAdvertiseDescriptor) (NWTXTRecord, error)
TryNWAdvertiseDescriptorCopyTXTRecordObject is like NWAdvertiseDescriptorCopyTXTRecordObject but returns an error instead of panicking if nw_advertise_descriptor_copy_txt_record_object is unavailable at run time.
func TryNWBrowseResultCopyTXTRecordObject ¶
func TryNWBrowseResultCopyTXTRecordObject(result NWBrowseResult) (NWTXTRecord, error)
TryNWBrowseResultCopyTXTRecordObject is like NWBrowseResultCopyTXTRecordObject but returns an error instead of panicking if nw_browse_result_copy_txt_record_object is unavailable at run time.
func TryNWEndpointCopyTXTRecord ¶
func TryNWEndpointCopyTXTRecord(endpoint NWEndpoint) (NWTXTRecord, error)
TryNWEndpointCopyTXTRecord is like NWEndpointCopyTXTRecord but returns an error instead of panicking if nw_endpoint_copy_txt_record is unavailable at run time.
func TryNWTXTRecordCopy ¶
func TryNWTXTRecordCopy(txt_record NWTXTRecord) (NWTXTRecord, error)
TryNWTXTRecordCopy is like NWTXTRecordCopy but returns an error instead of panicking if nw_txt_record_copy is unavailable at run time.
func TryNWTXTRecordCreateDictionary ¶
func TryNWTXTRecordCreateDictionary() (NWTXTRecord, error)
TryNWTXTRecordCreateDictionary is like NWTXTRecordCreateDictionary but returns an error instead of panicking if nw_txt_record_create_dictionary is unavailable at run time.
func TryNWTXTRecordCreateWithBytes ¶
func TryNWTXTRecordCreateWithBytes(txt_bytes []byte, txt_len uintptr) (NWTXTRecord, error)
TryNWTXTRecordCreateWithBytes is like NWTXTRecordCreateWithBytes but returns an error instead of panicking if nw_txt_record_create_with_bytes is unavailable at run time.
type NWTXTRecordAccessBytes ¶ added in v0.6.3
NWTXTRecordAccessBytes is a block that provides access to the raw bytes of a TXT record.
See: https://developer.apple.com/documentation/Network/nw_txt_record_access_bytes_t
type NWTXTRecordAccessKey ¶ added in v0.6.3
type NWTXTRecordAccessKey = func(string, NWTXTRecordFindKey, *uint8, uint64) bool
NWTXTRecordAccessKey is a block that returns a value in a TXT record dictionary.
See: https://developer.apple.com/documentation/Network/nw_txt_record_access_key_t
type NWTXTRecordApplier ¶ added in v0.6.3
type NWTXTRecordApplier = func(string, NWTXTRecordFindKey, *uint8, uint64) bool
NWTXTRecordApplier is a block that iterates over values and keys in a TXT record dictionary.
See: https://developer.apple.com/documentation/Network/nw_txt_record_applier_t
type NWTXTRecordFindKey ¶ added in v0.6.3
type NWTXTRecordFindKey uint32
See: https://developer.apple.com/documentation/Network/nw_txt_record_find_key_t
const ( // NWTXTRecordFindKeyEmptyValue: The key is present and has an empty associated value. NWTXTRecordFindKeyEmptyValue NWTXTRecordFindKey = 3 // NWTXTRecordFindKeyInvalid: The key is not valid. NWTXTRecordFindKeyInvalid NWTXTRecordFindKey = 0 // NWTXTRecordFindKeyNoValue: The key is present but has no associated value. NWTXTRecordFindKeyNoValue NWTXTRecordFindKey = 2 // NWTXTRecordFindKeyNonEmptyValue: The key has an associated value. NWTXTRecordFindKeyNonEmptyValue NWTXTRecordFindKey = 4 // NWTXTRecordFindKeyNotPresent: The key is not present in the dictionary. NWTXTRecordFindKeyNotPresent NWTXTRecordFindKey = 1 )
func NWTXTRecordFindKeyFunc ¶ added in v0.6.3
func NWTXTRecordFindKeyFunc(txt_record NWTXTRecord, key string) NWTXTRecordFindKey
NWTXTRecordFindKeyFunc checks the status of value associated with a key in a TXT record dictionary.
It panics if nw_txt_record_find_key is unavailable at run time; use TryNWTXTRecordFindKeyFunc to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_txt_record_find_key(_:_:)
func TryNWTXTRecordFindKeyFunc ¶
func TryNWTXTRecordFindKeyFunc(txt_record NWTXTRecord, key string) (NWTXTRecordFindKey, error)
TryNWTXTRecordFindKeyFunc is like NWTXTRecordFindKeyFunc but returns an error instead of panicking if nw_txt_record_find_key is unavailable at run time.
func (NWTXTRecordFindKey) String ¶ added in v0.6.3
func (e NWTXTRecordFindKey) String() string
type NWWsAdditionalHeaderEnumerator ¶ added in v0.6.3
NWWsAdditionalHeaderEnumerator is a block that enumerates additional HTTP headers in a WebSocket client request.
See: https://developer.apple.com/documentation/Network/nw_ws_additional_header_enumerator_t
type NWWsClientRequestHandler ¶ added in v0.6.3
type NWWsClientRequestHandler = func(NWWsRequest) NWWsResponse
NWWsClientRequestHandler is a handler that delivers inbound client handshake requests.
See: https://developer.apple.com/documentation/Network/nw_ws_client_request_handler_t
type NWWsCloseCode ¶ added in v0.6.3
type NWWsCloseCode uint32
See: https://developer.apple.com/documentation/Network/nw_ws_close_code_t
const ( // NWWsCloseCodeAbnormalClosure: This value is reserved for local errors and indicates that no Close message was received. NWWsCloseCodeAbnormalClosure NWWsCloseCode = 1006 // NWWsCloseCodeGoingAway: An endpoint is no longer available, such as when a server is down. NWWsCloseCodeGoingAway NWWsCloseCode = 1001 // NWWsCloseCodeInternalServerError: The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request. NWWsCloseCodeInternalServerError NWWsCloseCode = 1011 // NWWsCloseCodeInvalidFramePayloadData: An endpoint is terminating the connection because it received data within a message that was inconsistent with the message type. NWWsCloseCodeInvalidFramePayloadData NWWsCloseCode = 1007 // NWWsCloseCodeMandatoryExtension: The WebSocket client expected the server to negotiate one or more extensions that were not negotiated. NWWsCloseCodeMandatoryExtension NWWsCloseCode = 1010 // NWWsCloseCodeMessageTooBig: An endpoint is terminating the connection because it received a message that is too big for it to process. NWWsCloseCodeMessageTooBig NWWsCloseCode = 1009 // NWWsCloseCodeNoStatusReceived: This value is reserved for local errors and indicates that no Close code was received. NWWsCloseCodeNoStatusReceived NWWsCloseCode = 1005 // NWWsCloseCodeNormalClosure: A normal closure occurred with no errors. NWWsCloseCodeNormalClosure NWWsCloseCode = 1000 // NWWsCloseCodePolicyViolation: An endpoint is terminating the connection because it received a message that violates its policy. NWWsCloseCodePolicyViolation NWWsCloseCode = 1008 // NWWsCloseCodeProtocolError: An endpoint is terminating the connection due to a protocol error. NWWsCloseCodeProtocolError NWWsCloseCode = 1002 // NWWsCloseCodeTLSHandshake: This value is reserved for local errors and indicates that the TLS handshake failed. NWWsCloseCodeTLSHandshake NWWsCloseCode = 1015 // NWWsCloseCodeUnsupportedData: An endpoint is terminating the connection because it received a type of data it cannot accept. NWWsCloseCodeUnsupportedData NWWsCloseCode = 1003 )
func NWWsMetadataGetCloseCode ¶ added in v0.6.3
func NWWsMetadataGetCloseCode(metadata NWProtocolMetadata) NWWsCloseCode
NWWsMetadataGetCloseCode accesses the close code on a WebSocket message.
It panics if nw_ws_metadata_get_close_code is unavailable at run time; use TryNWWsMetadataGetCloseCode to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_metadata_get_close_code(_:)
func TryNWWsMetadataGetCloseCode ¶
func TryNWWsMetadataGetCloseCode(metadata NWProtocolMetadata) (NWWsCloseCode, error)
TryNWWsMetadataGetCloseCode is like NWWsMetadataGetCloseCode but returns an error instead of panicking if nw_ws_metadata_get_close_code is unavailable at run time.
func (NWWsCloseCode) String ¶ added in v0.6.3
func (e NWWsCloseCode) String() string
type NWWsOpcode ¶ added in v0.6.3
type NWWsOpcode int32
See: https://developer.apple.com/documentation/Network/nw_ws_opcode_t
const ( // NWWsOpcodeBinary: A binary data message. NWWsOpcodeBinary NWWsOpcode = 0x2 // NWWsOpcodeClose: A message indicating a close of the connection. NWWsOpcodeClose NWWsOpcode = 0x8 // NWWsOpcodeCont: A continuation message. NWWsOpcodeCont NWWsOpcode = 0 // NWWsOpcodeInvalid: The message is not valid. NWWsOpcodeInvalid NWWsOpcode = -1 // NWWsOpcodePing: A Ping message, which requests a Pong from the peer. NWWsOpcodePing NWWsOpcode = 0x9 // NWWsOpcodePong: A Pong message in response to a Ping from the peer. NWWsOpcodePong NWWsOpcode = 0xa // NWWsOpcodeText: A text data message. NWWsOpcodeText NWWsOpcode = 0x1 )
func NWWsMetadataGetOpcode ¶ added in v0.6.3
func NWWsMetadataGetOpcode(metadata NWProtocolMetadata) NWWsOpcode
NWWsMetadataGetOpcode checks the type code on a WebSocket message.
It panics if nw_ws_metadata_get_opcode is unavailable at run time; use TryNWWsMetadataGetOpcode to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_metadata_get_opcode(_:)
func TryNWWsMetadataGetOpcode ¶
func TryNWWsMetadataGetOpcode(metadata NWProtocolMetadata) (NWWsOpcode, error)
TryNWWsMetadataGetOpcode is like NWWsMetadataGetOpcode but returns an error instead of panicking if nw_ws_metadata_get_opcode is unavailable at run time.
func (NWWsOpcode) String ¶ added in v0.6.3
func (e NWWsOpcode) String() string
type NWWsPongHandler ¶ added in v0.6.3
type NWWsPongHandler = func(NWError)
NWWsPongHandler is a handler that indicates that a Pong message has been received for a previously sent Ping message, or that an error was encountered.
See: https://developer.apple.com/documentation/Network/nw_ws_pong_handler_t
type NWWsRequest ¶ added in v0.6.3
type NWWsRequest struct {
objectivec.Object
}
NWWsRequest is a WebSocket handshake request sent from a client to a server.
See: https://developer.apple.com/documentation/Network/nw_ws_request_t
func NWWsRequestFromID ¶ added in v0.6.3
func NWWsRequestFromID(id objc.ID) NWWsRequest
NWWsRequestFromID constructs a NWWsRequest from an objc.ID.
type NWWsResponse ¶ added in v0.6.3
type NWWsResponse struct {
objectivec.Object
}
NWWsResponse is a WebSocket handshake reponse sent from a server to a client.
See: https://developer.apple.com/documentation/Network/nw_ws_response_t
func NWWsMetadataCopyServerResponse ¶ added in v0.6.3
func NWWsMetadataCopyServerResponse(metadata NWProtocolMetadata) NWWsResponse
NWWsMetadataCopyServerResponse accesses the WebSocket server’s response sent during the handshake.
It panics if nw_ws_metadata_copy_server_response is unavailable at run time; use TryNWWsMetadataCopyServerResponse to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_metadata_copy_server_response(_:)
func NWWsResponseCreate ¶ added in v0.6.3
func NWWsResponseCreate(status NWWsResponseStatus, selected_subprotocol string) NWWsResponse
NWWsResponseCreate initializes a WebSocket server response with a status and selected subprotocol.
It panics if nw_ws_response_create is unavailable at run time; use TryNWWsResponseCreate to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_response_create(_:_:)
func NWWsResponseFromID ¶ added in v0.6.3
func NWWsResponseFromID(id objc.ID) NWWsResponse
NWWsResponseFromID constructs a NWWsResponse from an objc.ID.
func TryNWWsMetadataCopyServerResponse ¶
func TryNWWsMetadataCopyServerResponse(metadata NWProtocolMetadata) (NWWsResponse, error)
TryNWWsMetadataCopyServerResponse is like NWWsMetadataCopyServerResponse but returns an error instead of panicking if nw_ws_metadata_copy_server_response is unavailable at run time.
func TryNWWsResponseCreate ¶
func TryNWWsResponseCreate(status NWWsResponseStatus, selected_subprotocol string) (NWWsResponse, error)
TryNWWsResponseCreate is like NWWsResponseCreate but returns an error instead of panicking if nw_ws_response_create is unavailable at run time.
type NWWsResponseStatus ¶ added in v0.6.3
type NWWsResponseStatus uint32
See: https://developer.apple.com/documentation/Network/nw_ws_response_status_t
const ( // NWWsResponseStatusAccept: The client request is being accepted. NWWsResponseStatusAccept NWWsResponseStatus = 1 // NWWsResponseStatusInvalid: An invalid response status. NWWsResponseStatusInvalid NWWsResponseStatus = 0 // NWWsResponseStatusReject: The client request is being rejected. NWWsResponseStatusReject NWWsResponseStatus = 2 )
func NWWsResponseGetStatus ¶ added in v0.6.3
func NWWsResponseGetStatus(response NWWsResponse) NWWsResponseStatus
NWWsResponseGetStatus accesses the status of a WebSocket server response.
It panics if nw_ws_response_get_status is unavailable at run time; use TryNWWsResponseGetStatus to get an error instead.
See: https://developer.apple.com/documentation/Network/nw_ws_response_get_status(_:)
func TryNWWsResponseGetStatus ¶
func TryNWWsResponseGetStatus(response NWWsResponse) (NWWsResponseStatus, error)
TryNWWsResponseGetStatus is like NWWsResponseGetStatus but returns an error instead of panicking if nw_ws_response_get_status is unavailable at run time.
func (NWWsResponseStatus) String ¶ added in v0.6.3
func (e NWWsResponseStatus) String() string
type NWWsSubprotocolEnumerator ¶ added in v0.6.3
NWWsSubprotocolEnumerator is a block that enumerates the supported subprotocols in a WebSocket client request.
See: https://developer.apple.com/documentation/Network/nw_ws_subprotocol_enumerator_t
type NWWsVersion ¶ added in v0.6.3
type NWWsVersion uint32
See: https://developer.apple.com/documentation/Network/nw_ws_version_t
const ( // NWWsVersion13: Version 13 of the WebSocket protocol. NWWsVersion13 NWWsVersion = 1 // NWWsVersionInvalid: An invalid version. NWWsVersionInvalid NWWsVersion = 0 )
func (NWWsVersion) String ¶ added in v0.6.3
func (e NWWsVersion) String() string
type Nw_advertise_descriptor_t ¶
type Nw_advertise_descriptor_t = NWAdvertiseDescriptor
Nw_advertise_descriptor_t is a C-name alias for NWAdvertiseDescriptor.
type Nw_browse_descriptor_t ¶
type Nw_browse_descriptor_t = NWBrowseDescriptor
Nw_browse_descriptor_t is a C-name alias for NWBrowseDescriptor.
type Nw_browse_result_change_t ¶
type Nw_browse_result_change_t = NWBrowseResultChange
Nw_browse_result_change_t is a C-name alias for NWBrowseResultChange.
type Nw_browse_result_enumerate_interface_t ¶
type Nw_browse_result_enumerate_interface_t = NWBrowseResultEnumerateInterface
Nw_browse_result_enumerate_interface_t is a C-name alias for NWBrowseResultEnumerateInterface.
type Nw_browse_result_t ¶
type Nw_browse_result_t = NWBrowseResult
Nw_browse_result_t is a C-name alias for NWBrowseResult.
type Nw_browser_browse_results_changed_handler_t ¶
type Nw_browser_browse_results_changed_handler_t = NWBrowserBrowseResultsChangedHandler
Nw_browser_browse_results_changed_handler_t is a C-name alias for NWBrowserBrowseResultsChangedHandler.
type Nw_browser_state_changed_handler_t ¶
type Nw_browser_state_changed_handler_t = NWBrowserStateChangedHandler
Nw_browser_state_changed_handler_t is a C-name alias for NWBrowserStateChangedHandler.
type Nw_browser_state_t ¶ added in v0.6.16
type Nw_browser_state_t = NWBrowserState
Nw_browser_state_t is a C-name alias for NWBrowserState.
type Nw_connection_boolean_event_handler_t ¶
type Nw_connection_boolean_event_handler_t = NWConnectionBooleanEventHandler
Nw_connection_boolean_event_handler_t is a C-name alias for NWConnectionBooleanEventHandler.
type Nw_connection_group_new_connection_handler_t ¶
type Nw_connection_group_new_connection_handler_t = NWConnectionGroupNewConnectionHandler
Nw_connection_group_new_connection_handler_t is a C-name alias for NWConnectionGroupNewConnectionHandler.
type Nw_connection_group_receive_handler_t ¶
type Nw_connection_group_receive_handler_t = NWConnectionGroupReceiveHandler
Nw_connection_group_receive_handler_t is a C-name alias for NWConnectionGroupReceiveHandler.
type Nw_connection_group_send_completion_t ¶
type Nw_connection_group_send_completion_t = NWConnectionGroupSendCompletion
Nw_connection_group_send_completion_t is a C-name alias for NWConnectionGroupSendCompletion.
type Nw_connection_group_state_changed_handler_t ¶
type Nw_connection_group_state_changed_handler_t = NWConnectionGroupStateChangedHandler
Nw_connection_group_state_changed_handler_t is a C-name alias for NWConnectionGroupStateChangedHandler.
type Nw_connection_group_state_t ¶ added in v0.6.16
type Nw_connection_group_state_t = NWConnectionGroupState
Nw_connection_group_state_t is a C-name alias for NWConnectionGroupState.
type Nw_connection_group_t ¶
type Nw_connection_group_t = NWConnectionGroup
Nw_connection_group_t is a C-name alias for NWConnectionGroup.
type Nw_connection_path_event_handler_t ¶
type Nw_connection_path_event_handler_t = NWConnectionPathEventHandler
Nw_connection_path_event_handler_t is a C-name alias for NWConnectionPathEventHandler.
type Nw_connection_receive_completion_t ¶
type Nw_connection_receive_completion_t = NWConnectionReceiveCompletion
Nw_connection_receive_completion_t is a C-name alias for NWConnectionReceiveCompletion.
type Nw_connection_send_completion_t ¶
type Nw_connection_send_completion_t = NWConnectionSendCompletion
Nw_connection_send_completion_t is a C-name alias for NWConnectionSendCompletion.
type Nw_connection_state_changed_handler_t ¶
type Nw_connection_state_changed_handler_t = NWConnectionStateChangedHandler
Nw_connection_state_changed_handler_t is a C-name alias for NWConnectionStateChangedHandler.
type Nw_connection_state_t ¶ added in v0.6.16
type Nw_connection_state_t = NWConnectionState
Nw_connection_state_t is a C-name alias for NWConnectionState.
type Nw_connection_t ¶
type Nw_connection_t = NWConnection
Nw_connection_t is a C-name alias for NWConnection.
type Nw_content_context_t ¶
type Nw_content_context_t = NWContentContext
Nw_content_context_t is a C-name alias for NWContentContext.
type Nw_data_transfer_report_collect_block_t ¶
type Nw_data_transfer_report_collect_block_t = NWDataTransferReportCollectBlock
Nw_data_transfer_report_collect_block_t is a C-name alias for NWDataTransferReportCollectBlock.
type Nw_data_transfer_report_state_t ¶ added in v0.6.16
type Nw_data_transfer_report_state_t = NWDataTransferReportState
Nw_data_transfer_report_state_t is a C-name alias for NWDataTransferReportState.
type Nw_data_transfer_report_t ¶
type Nw_data_transfer_report_t = NWDataTransferReport
Nw_data_transfer_report_t is a C-name alias for NWDataTransferReport.
type Nw_endpoint_t ¶
type Nw_endpoint_t = NWEndpoint
Nw_endpoint_t is a C-name alias for NWEndpoint.
type Nw_endpoint_type_t ¶ added in v0.6.16
type Nw_endpoint_type_t = NWEndpointType
Nw_endpoint_type_t is a C-name alias for NWEndpointType.
type Nw_error_domain_t ¶ added in v0.6.16
type Nw_error_domain_t = NWErrorDomain
Nw_error_domain_t is a C-name alias for NWErrorDomain.
type Nw_establishment_report_access_block_t ¶
type Nw_establishment_report_access_block_t = NWEstablishmentReportAccessBlock
Nw_establishment_report_access_block_t is a C-name alias for NWEstablishmentReportAccessBlock.
type Nw_establishment_report_t ¶
type Nw_establishment_report_t = NWEstablishmentReport
Nw_establishment_report_t is a C-name alias for NWEstablishmentReport.
type Nw_ethernet_address_t ¶
type Nw_ethernet_address_t = NWEthernetAddress
Nw_ethernet_address_t is a C-name alias for NWEthernetAddress.
type Nw_ethernet_channel_receive_handler_t ¶
type Nw_ethernet_channel_receive_handler_t = NWEthernetChannelReceiveHandler
Nw_ethernet_channel_receive_handler_t is a C-name alias for NWEthernetChannelReceiveHandler.
type Nw_ethernet_channel_send_completion_t ¶
type Nw_ethernet_channel_send_completion_t = NWEthernetChannelSendCompletion
Nw_ethernet_channel_send_completion_t is a C-name alias for NWEthernetChannelSendCompletion.
type Nw_ethernet_channel_state_changed_handler_t ¶
type Nw_ethernet_channel_state_changed_handler_t = NWEthernetChannelStateChangedHandler
Nw_ethernet_channel_state_changed_handler_t is a C-name alias for NWEthernetChannelStateChangedHandler.
type Nw_ethernet_channel_state_t ¶ added in v0.6.16
type Nw_ethernet_channel_state_t = NWEthernetChannelState
Nw_ethernet_channel_state_t is a C-name alias for NWEthernetChannelState.
type Nw_ethernet_channel_t ¶
type Nw_ethernet_channel_t = NWEthernetChannel
Nw_ethernet_channel_t is a C-name alias for NWEthernetChannel.
type Nw_framer_block_t ¶
type Nw_framer_block_t = NWFramerBlock
Nw_framer_block_t is a C-name alias for NWFramerBlock.
type Nw_framer_cleanup_handler_t ¶
type Nw_framer_cleanup_handler_t = NWFramerCleanupHandler
Nw_framer_cleanup_handler_t is a C-name alias for NWFramerCleanupHandler.
type Nw_framer_input_handler_t ¶
type Nw_framer_input_handler_t = NWFramerInputHandler
Nw_framer_input_handler_t is a C-name alias for NWFramerInputHandler.
type Nw_framer_message_dispose_value_t ¶
type Nw_framer_message_dispose_value_t = NWFramerMessageDisposeValue
Nw_framer_message_dispose_value_t is a C-name alias for NWFramerMessageDisposeValue.
type Nw_framer_message_t ¶
type Nw_framer_message_t = NWFramerMessage
Nw_framer_message_t is a C-name alias for NWFramerMessage.
type Nw_framer_output_handler_t ¶
type Nw_framer_output_handler_t = NWFramerOutputHandler
Nw_framer_output_handler_t is a C-name alias for NWFramerOutputHandler.
type Nw_framer_parse_completion_t ¶
type Nw_framer_parse_completion_t = NWFramerParseCompletion
Nw_framer_parse_completion_t is a C-name alias for NWFramerParseCompletion.
type Nw_framer_start_handler_t ¶
type Nw_framer_start_handler_t = NWFramerStartHandler
Nw_framer_start_handler_t is a C-name alias for NWFramerStartHandler.
type Nw_framer_start_result_t ¶ added in v0.6.16
type Nw_framer_start_result_t = NWFramerStartResult
Nw_framer_start_result_t is a C-name alias for NWFramerStartResult.
type Nw_framer_stop_handler_t ¶
type Nw_framer_stop_handler_t = NWFramerStopHandler
Nw_framer_stop_handler_t is a C-name alias for NWFramerStopHandler.
type Nw_framer_wakeup_handler_t ¶
type Nw_framer_wakeup_handler_t = NWFramerWakeupHandler
Nw_framer_wakeup_handler_t is a C-name alias for NWFramerWakeupHandler.
type Nw_group_descriptor_enumerate_endpoints_block_t ¶
type Nw_group_descriptor_enumerate_endpoints_block_t = NWGroupDescriptorEnumerateEndpointsBlock
Nw_group_descriptor_enumerate_endpoints_block_t is a C-name alias for NWGroupDescriptorEnumerateEndpointsBlock.
type Nw_group_descriptor_t ¶
type Nw_group_descriptor_t = NWGroupDescriptor
Nw_group_descriptor_t is a C-name alias for NWGroupDescriptor.
type Nw_interface_radio_type_t ¶ added in v0.6.16
type Nw_interface_radio_type_t = NWInterfaceRadioType
Nw_interface_radio_type_t is a C-name alias for NWInterfaceRadioType.
type Nw_interface_t ¶
type Nw_interface_t = NWInterface
Nw_interface_t is a C-name alias for NWInterface.
type Nw_interface_type_t ¶ added in v0.6.16
type Nw_interface_type_t = NWInterfaceType
Nw_interface_type_t is a C-name alias for NWInterfaceType.
type Nw_ip_ecn_flag_t ¶ added in v0.6.16
type Nw_ip_ecn_flag_t = NWIPEcnFlag
Nw_ip_ecn_flag_t is a C-name alias for NWIPEcnFlag.
type Nw_ip_local_address_preference_t ¶ added in v0.6.16
type Nw_ip_local_address_preference_t = NWIPLocalAddressPreference
Nw_ip_local_address_preference_t is a C-name alias for NWIPLocalAddressPreference.
type Nw_ip_version_t ¶ added in v0.6.16
type Nw_ip_version_t = NWIPVersion
Nw_ip_version_t is a C-name alias for NWIPVersion.
type Nw_link_quality_t ¶ added in v0.6.16
type Nw_link_quality_t = NWLinkQuality
Nw_link_quality_t is a C-name alias for NWLinkQuality.
type Nw_listener_advertised_endpoint_changed_handler_t ¶
type Nw_listener_advertised_endpoint_changed_handler_t = NWListenerAdvertisedEndpointChangedHandler
Nw_listener_advertised_endpoint_changed_handler_t is a C-name alias for NWListenerAdvertisedEndpointChangedHandler.
type Nw_listener_new_connection_group_handler_t ¶
type Nw_listener_new_connection_group_handler_t = NWListenerNewConnectionGroupHandler
Nw_listener_new_connection_group_handler_t is a C-name alias for NWListenerNewConnectionGroupHandler.
type Nw_listener_new_connection_handler_t ¶
type Nw_listener_new_connection_handler_t = NWListenerNewConnectionHandler
Nw_listener_new_connection_handler_t is a C-name alias for NWListenerNewConnectionHandler.
type Nw_listener_state_changed_handler_t ¶
type Nw_listener_state_changed_handler_t = NWListenerStateChangedHandler
Nw_listener_state_changed_handler_t is a C-name alias for NWListenerStateChangedHandler.
type Nw_listener_state_t ¶ added in v0.6.16
type Nw_listener_state_t = NWListenerState
Nw_listener_state_t is a C-name alias for NWListenerState.
type Nw_listener_t ¶
type Nw_listener_t = NWListener
Nw_listener_t is a C-name alias for NWListener.
type Nw_multipath_service_t ¶ added in v0.6.16
type Nw_multipath_service_t = NWMultipathService
Nw_multipath_service_t is a C-name alias for NWMultipathService.
type Nw_multipath_version_t ¶ added in v0.6.16
type Nw_multipath_version_t = NWMultipathVersion
Nw_multipath_version_t is a C-name alias for NWMultipathVersion.
type Nw_parameters_attribution_t ¶
type Nw_parameters_attribution_t = NWParametersAttribution
Nw_parameters_attribution_t is a C-name alias for NWParametersAttribution.
type Nw_parameters_configure_protocol_block_t ¶
type Nw_parameters_configure_protocol_block_t = NWParametersConfigureProtocolBlock
Nw_parameters_configure_protocol_block_t is a C-name alias for NWParametersConfigureProtocolBlock.
type Nw_parameters_expired_dns_behavior_t ¶ added in v0.6.16
type Nw_parameters_expired_dns_behavior_t = NWParametersExpiredDnsBehavior
Nw_parameters_expired_dns_behavior_t is a C-name alias for NWParametersExpiredDnsBehavior.
type Nw_parameters_iterate_interface_types_block_t ¶
type Nw_parameters_iterate_interface_types_block_t = NWParametersIterateInterfaceTypesBlock
Nw_parameters_iterate_interface_types_block_t is a C-name alias for NWParametersIterateInterfaceTypesBlock.
type Nw_parameters_iterate_interfaces_block_t ¶
type Nw_parameters_iterate_interfaces_block_t = NWParametersIterateInterfacesBlock
Nw_parameters_iterate_interfaces_block_t is a C-name alias for NWParametersIterateInterfacesBlock.
type Nw_parameters_t ¶
type Nw_parameters_t = NWParameters
Nw_parameters_t is a C-name alias for NWParameters.
type Nw_path_enumerate_gateways_block_t ¶
type Nw_path_enumerate_gateways_block_t = NWPathEnumerateGatewaysBlock
Nw_path_enumerate_gateways_block_t is a C-name alias for NWPathEnumerateGatewaysBlock.
type Nw_path_enumerate_interfaces_block_t ¶
type Nw_path_enumerate_interfaces_block_t = NWPathEnumerateInterfacesBlock
Nw_path_enumerate_interfaces_block_t is a C-name alias for NWPathEnumerateInterfacesBlock.
type Nw_path_monitor_cancel_handler_t ¶
type Nw_path_monitor_cancel_handler_t = NWPathMonitorCancelHandler
Nw_path_monitor_cancel_handler_t is a C-name alias for NWPathMonitorCancelHandler.
type Nw_path_monitor_t ¶
type Nw_path_monitor_t = NWPathMonitor
Nw_path_monitor_t is a C-name alias for NWPathMonitor.
type Nw_path_monitor_update_handler_t ¶
type Nw_path_monitor_update_handler_t = NWPathMonitorUpdateHandler
Nw_path_monitor_update_handler_t is a C-name alias for NWPathMonitorUpdateHandler.
type Nw_path_status_t ¶ added in v0.6.16
type Nw_path_status_t = NWPathStatus
Nw_path_status_t is a C-name alias for NWPathStatus.
type Nw_path_unsatisfied_reason_t ¶ added in v0.6.16
type Nw_path_unsatisfied_reason_t = NWPathUnsatisfiedReason
Nw_path_unsatisfied_reason_t is a C-name alias for NWPathUnsatisfiedReason.
type Nw_privacy_context_t ¶
type Nw_privacy_context_t = NWPrivacyContext
Nw_privacy_context_t is a C-name alias for NWPrivacyContext.
type Nw_protocol_definition_t ¶
type Nw_protocol_definition_t = NWProtocolDefinition
Nw_protocol_definition_t is a C-name alias for NWProtocolDefinition.
type Nw_protocol_metadata_t ¶
type Nw_protocol_metadata_t = NWProtocolMetadata
Nw_protocol_metadata_t is a C-name alias for NWProtocolMetadata.
type Nw_protocol_options_t ¶
type Nw_protocol_options_t = NWProtocolOptions
Nw_protocol_options_t is a C-name alias for NWProtocolOptions.
type Nw_protocol_stack_iterate_protocols_block_t ¶
type Nw_protocol_stack_iterate_protocols_block_t = NWProtocolStackIterateProtocolsBlock
Nw_protocol_stack_iterate_protocols_block_t is a C-name alias for NWProtocolStackIterateProtocolsBlock.
type Nw_protocol_stack_t ¶
type Nw_protocol_stack_t = NWProtocolStack
Nw_protocol_stack_t is a C-name alias for NWProtocolStack.
type Nw_proxy_config_t ¶
type Nw_proxy_config_t = NWProxyConfig
Nw_proxy_config_t is a C-name alias for NWProxyConfig.
type Nw_proxy_domain_enumerator_t ¶
type Nw_proxy_domain_enumerator_t = NWProxyDomainEnumerator
Nw_proxy_domain_enumerator_t is a C-name alias for NWProxyDomainEnumerator.
type Nw_quic_stream_type_t ¶ added in v0.6.16
type Nw_quic_stream_type_t = NWQuicStreamType
Nw_quic_stream_type_t is a C-name alias for NWQuicStreamType.
type Nw_relay_hop_t ¶
type Nw_relay_hop_t = NWRelayHop
Nw_relay_hop_t is a C-name alias for NWRelayHop.
type Nw_report_protocol_enumerator_t ¶
type Nw_report_protocol_enumerator_t = NWReportProtocolEnumerator
Nw_report_protocol_enumerator_t is a C-name alias for NWReportProtocolEnumerator.
type Nw_report_resolution_enumerator_t ¶
type Nw_report_resolution_enumerator_t = NWReportResolutionEnumerator
Nw_report_resolution_enumerator_t is a C-name alias for NWReportResolutionEnumerator.
type Nw_report_resolution_protocol_t ¶ added in v0.6.16
type Nw_report_resolution_protocol_t = NWReportResolutionProtocol
Nw_report_resolution_protocol_t is a C-name alias for NWReportResolutionProtocol.
type Nw_report_resolution_report_enumerator_t ¶
type Nw_report_resolution_report_enumerator_t = NWReportResolutionReportEnumerator
Nw_report_resolution_report_enumerator_t is a C-name alias for NWReportResolutionReportEnumerator.
type Nw_report_resolution_source_t ¶ added in v0.6.16
type Nw_report_resolution_source_t = NWReportResolutionSource
Nw_report_resolution_source_t is a C-name alias for NWReportResolutionSource.
type Nw_resolution_report_t ¶
type Nw_resolution_report_t = NWResolutionReport
Nw_resolution_report_t is a C-name alias for NWResolutionReport.
type Nw_resolver_config_t ¶
type Nw_resolver_config_t = NWResolverConfig
Nw_resolver_config_t is a C-name alias for NWResolverConfig.
type Nw_service_class_t ¶ added in v0.6.16
type Nw_service_class_t = NWServiceClass
Nw_service_class_t is a C-name alias for NWServiceClass.
type Nw_txt_record_access_bytes_t ¶
type Nw_txt_record_access_bytes_t = NWTXTRecordAccessBytes
Nw_txt_record_access_bytes_t is a C-name alias for NWTXTRecordAccessBytes.
type Nw_txt_record_access_key_t ¶
type Nw_txt_record_access_key_t = NWTXTRecordAccessKey
Nw_txt_record_access_key_t is a C-name alias for NWTXTRecordAccessKey.
type Nw_txt_record_applier_t ¶
type Nw_txt_record_applier_t = NWTXTRecordApplier
Nw_txt_record_applier_t is a C-name alias for NWTXTRecordApplier.
type Nw_txt_record_find_key_t ¶ added in v0.6.16
type Nw_txt_record_find_key_t = NWTXTRecordFindKey
Nw_txt_record_find_key_t is a C-name alias for NWTXTRecordFindKey.
type Nw_txt_record_t ¶
type Nw_txt_record_t = NWTXTRecord
Nw_txt_record_t is a C-name alias for NWTXTRecord.
type Nw_ws_additional_header_enumerator_t ¶
type Nw_ws_additional_header_enumerator_t = NWWsAdditionalHeaderEnumerator
Nw_ws_additional_header_enumerator_t is a C-name alias for NWWsAdditionalHeaderEnumerator.
type Nw_ws_client_request_handler_t ¶
type Nw_ws_client_request_handler_t = NWWsClientRequestHandler
Nw_ws_client_request_handler_t is a C-name alias for NWWsClientRequestHandler.
type Nw_ws_close_code_t ¶ added in v0.6.16
type Nw_ws_close_code_t = NWWsCloseCode
Nw_ws_close_code_t is a C-name alias for NWWsCloseCode.
type Nw_ws_opcode_t ¶ added in v0.6.16
type Nw_ws_opcode_t = NWWsOpcode
Nw_ws_opcode_t is a C-name alias for NWWsOpcode.
type Nw_ws_pong_handler_t ¶
type Nw_ws_pong_handler_t = NWWsPongHandler
Nw_ws_pong_handler_t is a C-name alias for NWWsPongHandler.
type Nw_ws_request_t ¶
type Nw_ws_request_t = NWWsRequest
Nw_ws_request_t is a C-name alias for NWWsRequest.
type Nw_ws_response_status_t ¶ added in v0.6.16
type Nw_ws_response_status_t = NWWsResponseStatus
Nw_ws_response_status_t is a C-name alias for NWWsResponseStatus.
type Nw_ws_response_t ¶
type Nw_ws_response_t = NWWsResponse
Nw_ws_response_t is a C-name alias for NWWsResponse.
type Nw_ws_subprotocol_enumerator_t ¶
type Nw_ws_subprotocol_enumerator_t = NWWsSubprotocolEnumerator
Nw_ws_subprotocol_enumerator_t is a C-name alias for NWWsSubprotocolEnumerator.
type Nw_ws_version_t ¶ added in v0.6.16
type Nw_ws_version_t = NWWsVersion
Nw_ws_version_t is a C-name alias for NWWsVersion.
type OS_nw_advertise_descriptor ¶
type OS_nw_advertise_descriptor interface {
objectivec.IObject
}
OS_nw_advertise_descriptor protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_advertise_descriptor
type OS_nw_advertise_descriptorObject ¶
type OS_nw_advertise_descriptorObject struct {
objectivec.Object
}
OS_nw_advertise_descriptorObject wraps an existing Objective-C object that conforms to the OS_nw_advertise_descriptor protocol.
func OS_nw_advertise_descriptorObjectFromID ¶
func OS_nw_advertise_descriptorObjectFromID(id objc.ID) OS_nw_advertise_descriptorObject
OS_nw_advertise_descriptorObjectFromID constructs a OS_nw_advertise_descriptorObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_advertise_descriptorObject) BaseObject ¶
func (o OS_nw_advertise_descriptorObject) BaseObject() objectivec.Object
type OS_nw_browse_descriptor ¶
type OS_nw_browse_descriptor interface {
objectivec.IObject
}
OS_nw_browse_descriptor protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_browse_descriptor
type OS_nw_browse_descriptorObject ¶
type OS_nw_browse_descriptorObject struct {
objectivec.Object
}
OS_nw_browse_descriptorObject wraps an existing Objective-C object that conforms to the OS_nw_browse_descriptor protocol.
func OS_nw_browse_descriptorObjectFromID ¶
func OS_nw_browse_descriptorObjectFromID(id objc.ID) OS_nw_browse_descriptorObject
OS_nw_browse_descriptorObjectFromID constructs a OS_nw_browse_descriptorObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_browse_descriptorObject) BaseObject ¶
func (o OS_nw_browse_descriptorObject) BaseObject() objectivec.Object
type OS_nw_browse_result ¶
type OS_nw_browse_result interface {
objectivec.IObject
}
OS_nw_browse_result protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_browse_result
type OS_nw_browse_resultObject ¶
type OS_nw_browse_resultObject struct {
objectivec.Object
}
OS_nw_browse_resultObject wraps an existing Objective-C object that conforms to the OS_nw_browse_result protocol.
func OS_nw_browse_resultObjectFromID ¶
func OS_nw_browse_resultObjectFromID(id objc.ID) OS_nw_browse_resultObject
OS_nw_browse_resultObjectFromID constructs a OS_nw_browse_resultObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_browse_resultObject) BaseObject ¶
func (o OS_nw_browse_resultObject) BaseObject() objectivec.Object
type OS_nw_browser ¶
type OS_nw_browser interface {
objectivec.IObject
}
OS_nw_browser protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_browser
type OS_nw_browserObject ¶
type OS_nw_browserObject struct {
objectivec.Object
}
OS_nw_browserObject wraps an existing Objective-C object that conforms to the OS_nw_browser protocol.
func OS_nw_browserObjectFromID ¶
func OS_nw_browserObjectFromID(id objc.ID) OS_nw_browserObject
OS_nw_browserObjectFromID constructs a OS_nw_browserObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_browserObject) BaseObject ¶
func (o OS_nw_browserObject) BaseObject() objectivec.Object
type OS_nw_connection ¶
type OS_nw_connection interface {
objectivec.IObject
}
OS_nw_connection protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_connection
type OS_nw_connectionObject ¶
type OS_nw_connectionObject struct {
objectivec.Object
}
OS_nw_connectionObject wraps an existing Objective-C object that conforms to the OS_nw_connection protocol.
func OS_nw_connectionObjectFromID ¶
func OS_nw_connectionObjectFromID(id objc.ID) OS_nw_connectionObject
OS_nw_connectionObjectFromID constructs a OS_nw_connectionObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_connectionObject) BaseObject ¶
func (o OS_nw_connectionObject) BaseObject() objectivec.Object
type OS_nw_connection_group ¶
type OS_nw_connection_group interface {
objectivec.IObject
}
OS_nw_connection_group protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_connection_group
type OS_nw_connection_groupObject ¶
type OS_nw_connection_groupObject struct {
objectivec.Object
}
OS_nw_connection_groupObject wraps an existing Objective-C object that conforms to the OS_nw_connection_group protocol.
func OS_nw_connection_groupObjectFromID ¶
func OS_nw_connection_groupObjectFromID(id objc.ID) OS_nw_connection_groupObject
OS_nw_connection_groupObjectFromID constructs a OS_nw_connection_groupObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_connection_groupObject) BaseObject ¶
func (o OS_nw_connection_groupObject) BaseObject() objectivec.Object
type OS_nw_content_context ¶
type OS_nw_content_context interface {
objectivec.IObject
}
OS_nw_content_context protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_content_context
type OS_nw_content_contextObject ¶
type OS_nw_content_contextObject struct {
objectivec.Object
}
OS_nw_content_contextObject wraps an existing Objective-C object that conforms to the OS_nw_content_context protocol.
func OS_nw_content_contextObjectFromID ¶
func OS_nw_content_contextObjectFromID(id objc.ID) OS_nw_content_contextObject
OS_nw_content_contextObjectFromID constructs a OS_nw_content_contextObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_content_contextObject) BaseObject ¶
func (o OS_nw_content_contextObject) BaseObject() objectivec.Object
type OS_nw_data_transfer_report ¶
type OS_nw_data_transfer_report interface {
objectivec.IObject
}
OS_nw_data_transfer_report protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_data_transfer_report
type OS_nw_data_transfer_reportObject ¶
type OS_nw_data_transfer_reportObject struct {
objectivec.Object
}
OS_nw_data_transfer_reportObject wraps an existing Objective-C object that conforms to the OS_nw_data_transfer_report protocol.
func OS_nw_data_transfer_reportObjectFromID ¶
func OS_nw_data_transfer_reportObjectFromID(id objc.ID) OS_nw_data_transfer_reportObject
OS_nw_data_transfer_reportObjectFromID constructs a OS_nw_data_transfer_reportObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_data_transfer_reportObject) BaseObject ¶
func (o OS_nw_data_transfer_reportObject) BaseObject() objectivec.Object
type OS_nw_endpoint ¶
type OS_nw_endpoint interface {
objectivec.IObject
}
OS_nw_endpoint protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_endpoint
type OS_nw_endpointObject ¶
type OS_nw_endpointObject struct {
objectivec.Object
}
OS_nw_endpointObject wraps an existing Objective-C object that conforms to the OS_nw_endpoint protocol.
func OS_nw_endpointObjectFromID ¶
func OS_nw_endpointObjectFromID(id objc.ID) OS_nw_endpointObject
OS_nw_endpointObjectFromID constructs a OS_nw_endpointObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_endpointObject) BaseObject ¶
func (o OS_nw_endpointObject) BaseObject() objectivec.Object
type OS_nw_error ¶
type OS_nw_error interface {
objectivec.IObject
}
OS_nw_error protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_error
type OS_nw_errorObject ¶
type OS_nw_errorObject struct {
objectivec.Object
}
OS_nw_errorObject wraps an existing Objective-C object that conforms to the OS_nw_error protocol.
func OS_nw_errorObjectFromID ¶
func OS_nw_errorObjectFromID(id objc.ID) OS_nw_errorObject
OS_nw_errorObjectFromID constructs a OS_nw_errorObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_errorObject) BaseObject ¶
func (o OS_nw_errorObject) BaseObject() objectivec.Object
type OS_nw_establishment_report ¶
type OS_nw_establishment_report interface {
objectivec.IObject
}
OS_nw_establishment_report protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_establishment_report
type OS_nw_establishment_reportObject ¶
type OS_nw_establishment_reportObject struct {
objectivec.Object
}
OS_nw_establishment_reportObject wraps an existing Objective-C object that conforms to the OS_nw_establishment_report protocol.
func OS_nw_establishment_reportObjectFromID ¶
func OS_nw_establishment_reportObjectFromID(id objc.ID) OS_nw_establishment_reportObject
OS_nw_establishment_reportObjectFromID constructs a OS_nw_establishment_reportObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_establishment_reportObject) BaseObject ¶
func (o OS_nw_establishment_reportObject) BaseObject() objectivec.Object
type OS_nw_ethernet_channel ¶
type OS_nw_ethernet_channel interface {
objectivec.IObject
}
OS_nw_ethernet_channel protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_ethernet_channel
type OS_nw_ethernet_channelObject ¶
type OS_nw_ethernet_channelObject struct {
objectivec.Object
}
OS_nw_ethernet_channelObject wraps an existing Objective-C object that conforms to the OS_nw_ethernet_channel protocol.
func OS_nw_ethernet_channelObjectFromID ¶
func OS_nw_ethernet_channelObjectFromID(id objc.ID) OS_nw_ethernet_channelObject
OS_nw_ethernet_channelObjectFromID constructs a OS_nw_ethernet_channelObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_ethernet_channelObject) BaseObject ¶
func (o OS_nw_ethernet_channelObject) BaseObject() objectivec.Object
type OS_nw_framer ¶
type OS_nw_framer interface {
objectivec.IObject
}
OS_nw_framer protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_framer
type OS_nw_framerObject ¶
type OS_nw_framerObject struct {
objectivec.Object
}
OS_nw_framerObject wraps an existing Objective-C object that conforms to the OS_nw_framer protocol.
func OS_nw_framerObjectFromID ¶
func OS_nw_framerObjectFromID(id objc.ID) OS_nw_framerObject
OS_nw_framerObjectFromID constructs a OS_nw_framerObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_framerObject) BaseObject ¶
func (o OS_nw_framerObject) BaseObject() objectivec.Object
type OS_nw_group_descriptor ¶
type OS_nw_group_descriptor interface {
objectivec.IObject
}
OS_nw_group_descriptor protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_group_descriptor
type OS_nw_group_descriptorObject ¶
type OS_nw_group_descriptorObject struct {
objectivec.Object
}
OS_nw_group_descriptorObject wraps an existing Objective-C object that conforms to the OS_nw_group_descriptor protocol.
func OS_nw_group_descriptorObjectFromID ¶
func OS_nw_group_descriptorObjectFromID(id objc.ID) OS_nw_group_descriptorObject
OS_nw_group_descriptorObjectFromID constructs a OS_nw_group_descriptorObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_group_descriptorObject) BaseObject ¶
func (o OS_nw_group_descriptorObject) BaseObject() objectivec.Object
type OS_nw_interface ¶
type OS_nw_interface interface {
objectivec.IObject
}
OS_nw_interface protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_interface
type OS_nw_interfaceObject ¶
type OS_nw_interfaceObject struct {
objectivec.Object
}
OS_nw_interfaceObject wraps an existing Objective-C object that conforms to the OS_nw_interface protocol.
func OS_nw_interfaceObjectFromID ¶
func OS_nw_interfaceObjectFromID(id objc.ID) OS_nw_interfaceObject
OS_nw_interfaceObjectFromID constructs a OS_nw_interfaceObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_interfaceObject) BaseObject ¶
func (o OS_nw_interfaceObject) BaseObject() objectivec.Object
type OS_nw_listener ¶
type OS_nw_listener interface {
objectivec.IObject
}
OS_nw_listener protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_listener
type OS_nw_listenerObject ¶
type OS_nw_listenerObject struct {
objectivec.Object
}
OS_nw_listenerObject wraps an existing Objective-C object that conforms to the OS_nw_listener protocol.
func OS_nw_listenerObjectFromID ¶
func OS_nw_listenerObjectFromID(id objc.ID) OS_nw_listenerObject
OS_nw_listenerObjectFromID constructs a OS_nw_listenerObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_listenerObject) BaseObject ¶
func (o OS_nw_listenerObject) BaseObject() objectivec.Object
type OS_nw_object ¶
type OS_nw_object interface {
objectivec.IObject
}
OS_nw_object protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_object
type OS_nw_objectObject ¶
type OS_nw_objectObject struct {
objectivec.Object
}
OS_nw_objectObject wraps an existing Objective-C object that conforms to the OS_nw_object protocol.
func OS_nw_objectObjectFromID ¶
func OS_nw_objectObjectFromID(id objc.ID) OS_nw_objectObject
OS_nw_objectObjectFromID constructs a OS_nw_objectObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_objectObject) BaseObject ¶
func (o OS_nw_objectObject) BaseObject() objectivec.Object
type OS_nw_parameters ¶
type OS_nw_parameters interface {
objectivec.IObject
}
OS_nw_parameters protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_parameters
type OS_nw_parametersObject ¶
type OS_nw_parametersObject struct {
objectivec.Object
}
OS_nw_parametersObject wraps an existing Objective-C object that conforms to the OS_nw_parameters protocol.
func OS_nw_parametersObjectFromID ¶
func OS_nw_parametersObjectFromID(id objc.ID) OS_nw_parametersObject
OS_nw_parametersObjectFromID constructs a OS_nw_parametersObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_parametersObject) BaseObject ¶
func (o OS_nw_parametersObject) BaseObject() objectivec.Object
type OS_nw_path ¶
type OS_nw_path interface {
objectivec.IObject
}
OS_nw_path protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_path
type OS_nw_pathObject ¶
type OS_nw_pathObject struct {
objectivec.Object
}
OS_nw_pathObject wraps an existing Objective-C object that conforms to the OS_nw_path protocol.
func OS_nw_pathObjectFromID ¶
func OS_nw_pathObjectFromID(id objc.ID) OS_nw_pathObject
OS_nw_pathObjectFromID constructs a OS_nw_pathObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_pathObject) BaseObject ¶
func (o OS_nw_pathObject) BaseObject() objectivec.Object
type OS_nw_path_monitor ¶
type OS_nw_path_monitor interface {
objectivec.IObject
}
OS_nw_path_monitor protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_path_monitor
type OS_nw_path_monitorObject ¶
type OS_nw_path_monitorObject struct {
objectivec.Object
}
OS_nw_path_monitorObject wraps an existing Objective-C object that conforms to the OS_nw_path_monitor protocol.
func OS_nw_path_monitorObjectFromID ¶
func OS_nw_path_monitorObjectFromID(id objc.ID) OS_nw_path_monitorObject
OS_nw_path_monitorObjectFromID constructs a OS_nw_path_monitorObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_path_monitorObject) BaseObject ¶
func (o OS_nw_path_monitorObject) BaseObject() objectivec.Object
type OS_nw_privacy_context ¶
type OS_nw_privacy_context interface {
objectivec.IObject
}
OS_nw_privacy_context protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_privacy_context
type OS_nw_privacy_contextObject ¶
type OS_nw_privacy_contextObject struct {
objectivec.Object
}
OS_nw_privacy_contextObject wraps an existing Objective-C object that conforms to the OS_nw_privacy_context protocol.
func OS_nw_privacy_contextObjectFromID ¶
func OS_nw_privacy_contextObjectFromID(id objc.ID) OS_nw_privacy_contextObject
OS_nw_privacy_contextObjectFromID constructs a OS_nw_privacy_contextObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_privacy_contextObject) BaseObject ¶
func (o OS_nw_privacy_contextObject) BaseObject() objectivec.Object
type OS_nw_protocol_definition ¶
type OS_nw_protocol_definition interface {
objectivec.IObject
}
OS_nw_protocol_definition protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_protocol_definition
type OS_nw_protocol_definitionObject ¶
type OS_nw_protocol_definitionObject struct {
objectivec.Object
}
OS_nw_protocol_definitionObject wraps an existing Objective-C object that conforms to the OS_nw_protocol_definition protocol.
func OS_nw_protocol_definitionObjectFromID ¶
func OS_nw_protocol_definitionObjectFromID(id objc.ID) OS_nw_protocol_definitionObject
OS_nw_protocol_definitionObjectFromID constructs a OS_nw_protocol_definitionObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_protocol_definitionObject) BaseObject ¶
func (o OS_nw_protocol_definitionObject) BaseObject() objectivec.Object
type OS_nw_protocol_metadata ¶
type OS_nw_protocol_metadata interface {
objectivec.IObject
}
OS_nw_protocol_metadata protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_protocol_metadata
type OS_nw_protocol_metadataObject ¶
type OS_nw_protocol_metadataObject struct {
objectivec.Object
}
OS_nw_protocol_metadataObject wraps an existing Objective-C object that conforms to the OS_nw_protocol_metadata protocol.
func OS_nw_protocol_metadataObjectFromID ¶
func OS_nw_protocol_metadataObjectFromID(id objc.ID) OS_nw_protocol_metadataObject
OS_nw_protocol_metadataObjectFromID constructs a OS_nw_protocol_metadataObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_protocol_metadataObject) BaseObject ¶
func (o OS_nw_protocol_metadataObject) BaseObject() objectivec.Object
type OS_nw_protocol_options ¶
type OS_nw_protocol_options interface {
objectivec.IObject
}
OS_nw_protocol_options protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_protocol_options
type OS_nw_protocol_optionsObject ¶
type OS_nw_protocol_optionsObject struct {
objectivec.Object
}
OS_nw_protocol_optionsObject wraps an existing Objective-C object that conforms to the OS_nw_protocol_options protocol.
func OS_nw_protocol_optionsObjectFromID ¶
func OS_nw_protocol_optionsObjectFromID(id objc.ID) OS_nw_protocol_optionsObject
OS_nw_protocol_optionsObjectFromID constructs a OS_nw_protocol_optionsObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_protocol_optionsObject) BaseObject ¶
func (o OS_nw_protocol_optionsObject) BaseObject() objectivec.Object
type OS_nw_protocol_stack ¶
type OS_nw_protocol_stack interface {
objectivec.IObject
}
OS_nw_protocol_stack protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_protocol_stack
type OS_nw_protocol_stackObject ¶
type OS_nw_protocol_stackObject struct {
objectivec.Object
}
OS_nw_protocol_stackObject wraps an existing Objective-C object that conforms to the OS_nw_protocol_stack protocol.
func OS_nw_protocol_stackObjectFromID ¶
func OS_nw_protocol_stackObjectFromID(id objc.ID) OS_nw_protocol_stackObject
OS_nw_protocol_stackObjectFromID constructs a OS_nw_protocol_stackObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_protocol_stackObject) BaseObject ¶
func (o OS_nw_protocol_stackObject) BaseObject() objectivec.Object
type OS_nw_proxy_config ¶
type OS_nw_proxy_config interface {
objectivec.IObject
}
OS_nw_proxy_config protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_proxy_config
type OS_nw_proxy_configObject ¶
type OS_nw_proxy_configObject struct {
objectivec.Object
}
OS_nw_proxy_configObject wraps an existing Objective-C object that conforms to the OS_nw_proxy_config protocol.
func OS_nw_proxy_configObjectFromID ¶
func OS_nw_proxy_configObjectFromID(id objc.ID) OS_nw_proxy_configObject
OS_nw_proxy_configObjectFromID constructs a OS_nw_proxy_configObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_proxy_configObject) BaseObject ¶
func (o OS_nw_proxy_configObject) BaseObject() objectivec.Object
type OS_nw_relay_hop ¶
type OS_nw_relay_hop interface {
objectivec.IObject
}
OS_nw_relay_hop protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_relay_hop
type OS_nw_relay_hopObject ¶
type OS_nw_relay_hopObject struct {
objectivec.Object
}
OS_nw_relay_hopObject wraps an existing Objective-C object that conforms to the OS_nw_relay_hop protocol.
func OS_nw_relay_hopObjectFromID ¶
func OS_nw_relay_hopObjectFromID(id objc.ID) OS_nw_relay_hopObject
OS_nw_relay_hopObjectFromID constructs a OS_nw_relay_hopObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_relay_hopObject) BaseObject ¶
func (o OS_nw_relay_hopObject) BaseObject() objectivec.Object
type OS_nw_resolution_report ¶
type OS_nw_resolution_report interface {
objectivec.IObject
}
OS_nw_resolution_report protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_resolution_report
type OS_nw_resolution_reportObject ¶
type OS_nw_resolution_reportObject struct {
objectivec.Object
}
OS_nw_resolution_reportObject wraps an existing Objective-C object that conforms to the OS_nw_resolution_report protocol.
func OS_nw_resolution_reportObjectFromID ¶
func OS_nw_resolution_reportObjectFromID(id objc.ID) OS_nw_resolution_reportObject
OS_nw_resolution_reportObjectFromID constructs a OS_nw_resolution_reportObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_resolution_reportObject) BaseObject ¶
func (o OS_nw_resolution_reportObject) BaseObject() objectivec.Object
type OS_nw_resolver_config ¶
type OS_nw_resolver_config interface {
objectivec.IObject
}
OS_nw_resolver_config protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_resolver_config
type OS_nw_resolver_configObject ¶
type OS_nw_resolver_configObject struct {
objectivec.Object
}
OS_nw_resolver_configObject wraps an existing Objective-C object that conforms to the OS_nw_resolver_config protocol.
func OS_nw_resolver_configObjectFromID ¶
func OS_nw_resolver_configObjectFromID(id objc.ID) OS_nw_resolver_configObject
OS_nw_resolver_configObjectFromID constructs a OS_nw_resolver_configObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_resolver_configObject) BaseObject ¶
func (o OS_nw_resolver_configObject) BaseObject() objectivec.Object
type OS_nw_txt_record ¶
type OS_nw_txt_record interface {
objectivec.IObject
}
OS_nw_txt_record protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_txt_record
type OS_nw_txt_recordObject ¶
type OS_nw_txt_recordObject struct {
objectivec.Object
}
OS_nw_txt_recordObject wraps an existing Objective-C object that conforms to the OS_nw_txt_record protocol.
func OS_nw_txt_recordObjectFromID ¶
func OS_nw_txt_recordObjectFromID(id objc.ID) OS_nw_txt_recordObject
OS_nw_txt_recordObjectFromID constructs a OS_nw_txt_recordObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_txt_recordObject) BaseObject ¶
func (o OS_nw_txt_recordObject) BaseObject() objectivec.Object
type OS_nw_ws_request ¶
type OS_nw_ws_request interface {
objectivec.IObject
}
OS_nw_ws_request protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_ws_request
type OS_nw_ws_requestObject ¶
type OS_nw_ws_requestObject struct {
objectivec.Object
}
OS_nw_ws_requestObject wraps an existing Objective-C object that conforms to the OS_nw_ws_request protocol.
func OS_nw_ws_requestObjectFromID ¶
func OS_nw_ws_requestObjectFromID(id objc.ID) OS_nw_ws_requestObject
OS_nw_ws_requestObjectFromID constructs a OS_nw_ws_requestObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_ws_requestObject) BaseObject ¶
func (o OS_nw_ws_requestObject) BaseObject() objectivec.Object
type OS_nw_ws_response ¶
type OS_nw_ws_response interface {
objectivec.IObject
}
OS_nw_ws_response protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_ws_response
type OS_nw_ws_responseObject ¶
type OS_nw_ws_responseObject struct {
objectivec.Object
}
OS_nw_ws_responseObject wraps an existing Objective-C object that conforms to the OS_nw_ws_response protocol.
func OS_nw_ws_responseObjectFromID ¶
func OS_nw_ws_responseObjectFromID(id objc.ID) OS_nw_ws_responseObject
OS_nw_ws_responseObjectFromID constructs a OS_nw_ws_responseObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_ws_responseObject) BaseObject ¶
func (o OS_nw_ws_responseObject) BaseObject() objectivec.Object
Source Files
¶
- blocks.gen.go
- doc.gen.go
- enums.gen.go
- functions.gen.go
- generate.go
- global_vars.gen.go
- os_nw_advertise_descriptor_protocol.gen.go
- os_nw_browse_descriptor_protocol.gen.go
- os_nw_browse_result_protocol.gen.go
- os_nw_browser_protocol.gen.go
- os_nw_connection_group_protocol.gen.go
- os_nw_connection_protocol.gen.go
- os_nw_content_context_protocol.gen.go
- os_nw_data_transfer_report_protocol.gen.go
- os_nw_endpoint_protocol.gen.go
- os_nw_error_protocol.gen.go
- os_nw_establishment_report_protocol.gen.go
- os_nw_ethernet_channel_protocol.gen.go
- os_nw_framer_protocol.gen.go
- os_nw_group_descriptor_protocol.gen.go
- os_nw_interface_protocol.gen.go
- os_nw_listener_protocol.gen.go
- os_nw_object_protocol.gen.go
- os_nw_parameters_protocol.gen.go
- os_nw_path_monitor_protocol.gen.go
- os_nw_path_protocol.gen.go
- os_nw_privacy_context_protocol.gen.go
- os_nw_protocol_definition_protocol.gen.go
- os_nw_protocol_metadata_protocol.gen.go
- os_nw_protocol_options_protocol.gen.go
- os_nw_protocol_stack_protocol.gen.go
- os_nw_proxy_config_protocol.gen.go
- os_nw_relay_hop_protocol.gen.go
- os_nw_resolution_report_protocol.gen.go
- os_nw_resolver_config_protocol.gen.go
- os_nw_txt_record_protocol.gen.go
- os_nw_ws_request_protocol.gen.go
- os_nw_ws_response_protocol.gen.go
- typedefs.gen.go
- types.gen.go
- undefined_types.gen.go