network

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 11 Imported by: 0

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

Connections and Listeners

Network Protocols

Network Security and Privacy

Paths and Interfaces

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

Network Debugging

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

Macros

  • NW_ASSUME_EXTERNALLY_RETAINED_BEGIN
  • NW_ASSUME_EXTERNALLY_RETAINED_END
  • NW_EXTERNALLY_RETAINED

Enumerations

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
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 NWAdvertiseDescriptorGetApplicationServiceName added in v0.6.3

func NWAdvertiseDescriptorGetApplicationServiceName(advertise_descriptor NWAdvertiseDescriptor) *byte

NWAdvertiseDescriptorGetApplicationServiceName.

See: https://developer.apple.com/documentation/Network/nw_advertise_descriptor_get_application_service_name(_:)

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_advertise_descriptor_set_txt_record_object(_:_:)

func NWBrowseDescriptorGetApplicationServiceName added in v0.6.3

func NWBrowseDescriptorGetApplicationServiceName(descriptor NWBrowseDescriptor) *byte

NWBrowseDescriptorGetApplicationServiceName.

See: https://developer.apple.com/documentation/Network/nw_browse_descriptor_get_application_service_name(_:)

func NWBrowseDescriptorGetBonjourServiceDomain added in v0.6.3

func NWBrowseDescriptorGetBonjourServiceDomain(descriptor NWBrowseDescriptor) *byte

NWBrowseDescriptorGetBonjourServiceDomain accesses the Bonjour service domain set on a browse descriptor.

See: https://developer.apple.com/documentation/Network/nw_browse_descriptor_get_bonjour_service_domain(_:)

func NWBrowseDescriptorGetBonjourServiceType added in v0.6.3

func NWBrowseDescriptorGetBonjourServiceType(descriptor NWBrowseDescriptor) *byte

NWBrowseDescriptorGetBonjourServiceType accesses the Bonjour service type set on a browse descriptor.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_browser_set_browse_results_changed_handler(_:_:)

func NWBrowserSetQueue added in v0.6.3

func NWBrowserSetQueue(browser NWBrowser, queue dispatch.Queue)

NWBrowserSetQueue sets the queue on which all browser events will be delivered.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_connection_group_reinsert_extracted_connection(_:_:)

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_connection_group_set_new_connection_handler(_:_:)

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_connection_group_set_state_changed_handler(_:_:)

func NWConnectionGroupStart added in v0.6.3

func NWConnectionGroupStart(group NWConnectionGroup)

NWConnectionGroupStart joins the group and registers to receive messages.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_connection_set_better_path_available_handler(_:_:)

func NWConnectionSetPathChangedHandler added in v0.6.3

func NWConnectionSetPathChangedHandler(connection NWConnection, handler NWConnectionPathEventHandler)

NWConnectionSetPathChangedHandler sets a handler that receives network path updates.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_content_context_set_expiration_milliseconds(_:_:)

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_duration_milliseconds(_:)

func NWDataTransferReportGetPathCount added in v0.6.3

func NWDataTransferReportGetPathCount(report NWDataTransferReport) uint32

NWDataTransferReportGetPathCount checks the number of valid paths in the report.

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_received_application_byte_count(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_received_ip_packet_count(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_received_transport_byte_count(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_received_transport_duplicate_byte_count(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_received_transport_out_of_order_byte_count(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_sent_application_byte_count(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_sent_ip_packet_count(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_sent_transport_byte_count(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_sent_transport_retransmitted_byte_count(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_transport_minimum_rtt_milliseconds(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_transport_rtt_variance(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_transport_smoothed_rtt_milliseconds(_:_:)

func NWEndpointCopyAddressString added in v0.6.3

func NWEndpointCopyAddressString(endpoint NWEndpoint) *byte

NWEndpointCopyAddressString copies the address of an endpoint as a string.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_error_copy_cf_error(_:)

func NWErrorGetErrorCode added in v0.6.3

func NWErrorGetErrorCode(err NWError) int

NWErrorGetErrorCode accesses the specific code of the network error.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_establishment_report_enumerate_resolution_reports(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_establishment_report_enumerate_resolutions(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_establishment_report_get_attempt_started_after_milliseconds(_:)

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.

See: https://developer.apple.com/documentation/Network/nw_establishment_report_get_duration_milliseconds(_:)

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.

See: https://developer.apple.com/documentation/Network/nw_establishment_report_get_previous_attempt_count(_:)

func NWEstablishmentReportGetProxyConfigured added in v0.6.3

func NWEstablishmentReportGetProxyConfigured(report NWEstablishmentReport) bool

NWEstablishmentReportGetProxyConfigured checks whether a proxy was configured on the connection.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_set_state_changed_handler(_:_:)

func NWEthernetChannelStart added in v0.6.3

func NWEthernetChannelStart(ethernet_channel NWEthernetChannel)

NWEthernetChannelStart starts the process of registering the channel.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_framer_deliver_input_no_copy(_:_:_:_:)

func NWFramerMarkFailedWithError added in v0.6.3

func NWFramerMarkFailedWithError(framer NWFramer, error_code int)

NWFramerMarkFailedWithError indicates to a connection that your protocol has encountered an error, or has gracefully closed.

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.

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.

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.

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.

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 NWFramerMessageDisposeValue)

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.

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.

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.

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.

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.

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.

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.

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(_:).

See: https://developer.apple.com/documentation/Network/nw_framer_prepend_application_protocol(_:_:)

func NWFramerScheduleWakeup added in v0.6.3

func NWFramerScheduleWakeup(framer NWFramer, milliseconds uint64)

NWFramerScheduleWakeup requests that the nw_framer_wakeup_handler_t be called on your protocol at a specific time in the future.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_framer_set_wakeup_handler(_:_:)

func NWFramerWriteOutput added in v0.6.3

func NWFramerWriteOutput(framer NWFramer, output_buffer []byte, output_length uintptr)

NWFramerWriteOutput sends arbitrary output data in a buffer from your protocol to the next protocol.

See: https://developer.apple.com/documentation/Network/nw_framer_write_output(_:_:_:)

func NWFramerWriteOutputData added in v0.6.3

func NWFramerWriteOutputData(framer NWFramer, output_data dispatch.Data)

NWFramerWriteOutputData sends arbitrary output data from your protocol to the next protocol.

See: https://developer.apple.com/documentation/Network/nw_framer_write_output_data(_:_:)

func NWFramerWriteOutputNoCopy added in v0.6.3

func NWFramerWriteOutputNoCopy(framer NWFramer, output_length uintptr) bool

NWFramerWriteOutputNoCopy sends a specific number of bytes from a message while inside your output handler.

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.

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.

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`.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_listener_set_advertised_endpoint_changed_handler(_:_:)

func NWListenerSetNewConnectionGroupHandler added in v0.6.3

func NWListenerSetNewConnectionGroupHandler(listener NWListener, handler NWListenerNewConnectionGroupHandler)

NWListenerSetNewConnectionGroupHandler.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_multicast_group_descriptor_get_disable_unicast_traffic(_:)

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.

See: https://developer.apple.com/documentation/Network/nw_multicast_group_descriptor_set_disable_unicast_traffic(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_multicast_group_descriptor_set_specific_source(_:_:)

func NWParametersClearProhibitedInterfaceTypes added in v0.6.3

func NWParametersClearProhibitedInterfaceTypes(parameters NWParameters)

NWParametersClearProhibitedInterfaceTypes removes all prohibited interface types.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_parameters_iterate_prohibited_interface_types(_:_:)

func NWParametersIterateProhibitedInterfaces added in v0.6.3

func NWParametersIterateProhibitedInterfaces(parameters NWParameters, iterate_block NWParametersIterateInterfacesBlock)

NWParametersIterateProhibitedInterfaces examines the list of prohibited interfaces.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_path_enumerate_interfaces(_:_:)

func NWPathHasDns added in v0.6.3

func NWPathHasDns(path NWPath) bool

NWPathHasDns checks whether the path has a DNS server configured.

See: https://developer.apple.com/documentation/Network/nw_path_has_dns(_:)

func NWPathHasIpv4 added in v0.6.3

func NWPathHasIpv4(path NWPath) bool

NWPathHasIpv4 checks whether the path can route IPv4 traffic.

See: https://developer.apple.com/documentation/Network/nw_path_has_ipv4(_:)

func NWPathHasIpv6 added in v0.6.3

func NWPathHasIpv6(path NWPath) bool

NWPathHasIpv6 checks whether the path can route IPv6 traffic.

See: https://developer.apple.com/documentation/Network/nw_path_has_ipv6(_:)

func NWPathIsConstrained added in v0.6.3

func NWPathIsConstrained(path NWPath) bool

NWPathIsConstrained checks whether the path uses an interface in Low Data Mode.

See: https://developer.apple.com/documentation/Network/nw_path_is_constrained(_:)

func NWPathIsEqual added in v0.6.3

func NWPathIsEqual(path NWPath, other_path NWPath) bool

NWPathIsEqual compares if two paths are identical.

See: https://developer.apple.com/documentation/Network/nw_path_is_equal(_:_:)

func NWPathIsExpensive added in v0.6.3

func NWPathIsExpensive(path NWPath) bool

NWPathIsExpensive checks whether the path uses an interface that is considered expensive, such as Cellular or a Personal Hotspot.

See: https://developer.apple.com/documentation/Network/nw_path_is_expensive(_:)

func NWPathIsUltraConstrained added in v0.6.3

func NWPathIsUltraConstrained(path NWPath) bool

NWPathIsUltraConstrained.

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.

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.

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.

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.

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.

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.

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.

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.

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(_:_:)

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_privacy_context_require_encrypted_name_resolution(_:_:_:)

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_protocol_stack_iterate_application_protocols(_:_:)

func NWProtocolStackPrependApplicationProtocol added in v0.6.3

func NWProtocolStackPrependApplicationProtocol(stack NWProtocolStack, protocol_ NWProtocolOptions)

NWProtocolStackPrependApplicationProtocol adds a protocol onto the top of the protocol stack.

See: https://developer.apple.com/documentation/Network/nw_protocol_stack_prepend_application_protocol(_:_:)

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_quic_get_initial_max_stream_data_bidirectional_local(_:)

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.

See: https://developer.apple.com/documentation/Network/nw_quic_get_initial_max_stream_data_bidirectional_remote(_:)

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.

See: https://developer.apple.com/documentation/Network/nw_quic_get_initial_max_stream_data_unidirectional(_:)

func NWQuicGetInitialMaxStreamsBidirectional added in v0.6.3

func NWQuicGetInitialMaxStreamsBidirectional(options NWProtocolOptions) uint64

NWQuicGetInitialMaxStreamsBidirectional accesses a QUIC connection’s initial maximum number of bidirectional streams.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_quic_set_initial_max_stream_data_bidirectional_local(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_quic_set_initial_max_stream_data_bidirectional_remote(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_quic_set_initial_max_stream_data_unidirectional(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_quic_set_initial_max_streams_bidirectional(_:_:)

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.

See: https://developer.apple.com/documentation/Network/nw_quic_set_initial_max_streams_unidirectional(_:_:)

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_relay_hop_add_additional_http_header_field(_:_:_:)

func NWRelease added in v0.6.3

func NWRelease(obj unsafe.Pointer)

NWRelease releases a reference count on a Network.framework object.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_resolver_config_add_server_address(_:_:)

func NWRetain added in v0.6.3

func NWRetain(obj unsafe.Pointer) unsafe.Pointer

NWRetain adds a reference count to a Network.framework object.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_retransmit_connection_drop_time(_:_:)

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_ws_response_get_selected_subprotocol(_:)

Types

type NWAdvertiseDescriptor added in v0.6.3

type NWAdvertiseDescriptor = 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.

See: https://developer.apple.com/documentation/Network/nw_advertise_descriptor_create_application_service(_:)

func NWAdvertiseDescriptorCreateBonjourService added in v0.6.3

func NWAdvertiseDescriptorCreateBonjourService(name string, type_ string, domain string) NWAdvertiseDescriptor

NWAdvertiseDescriptorCreateBonjourService initializes a Bonjour service to advertise.

See: https://developer.apple.com/documentation/Network/nw_advertise_descriptor_create_bonjour_service(_:_:_:)

func NWAdvertiseDescriptorFromID added in v0.6.3

func NWAdvertiseDescriptorFromID(id objc.ID) NWAdvertiseDescriptor

NWAdvertiseDescriptorFromID constructs a NWAdvertiseDescriptor from an objc.ID.

type NWBrowseDescriptor added in v0.6.3

type NWBrowseDescriptor = 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.

See: https://developer.apple.com/documentation/Network/nw_browse_descriptor_create_application_service(_:)

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.

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.

See: https://developer.apple.com/documentation/Network/nw_browser_copy_browse_descriptor(_:)

type NWBrowseResult added in v0.6.3

type NWBrowseResult = 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 int
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.

See: https://developer.apple.com/documentation/Network/nw_browse_result_get_changes(_:_:)

func (NWBrowseResultChange) String added in v0.6.3

func (e NWBrowseResultChange) String() string

type NWBrowseResultEnumerateInterface added in v0.6.3

type NWBrowseResultEnumerateInterface = func(objectivec.Object) 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 = 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.

See: https://developer.apple.com/documentation/Network/nw_browser_create(_:_:)

func NWBrowserFromID added in v0.6.3

func NWBrowserFromID(id objc.ID) NWBrowser

NWBrowserFromID constructs a NWBrowser from an objc.ID.

type NWBrowserBrowseResultsChangedHandler added in v0.6.3

type NWBrowserBrowseResultsChangedHandler = func(objectivec.Object, objectivec.Object, 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 uint
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 = 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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_connection_group_extract_connection_for_message(_:_:)

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 = 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.

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.

type NWConnectionGroupReceiveHandler added in v0.6.3

type NWConnectionGroupReceiveHandler = func(objectivec.Object, objectivec.Object, 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 uint
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(objectivec.Object)

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(objectivec.Object, objectivec.Object, bool, 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 uint
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 = 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.

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.

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.

type NWDataTransferReport added in v0.6.3

type NWDataTransferReport = 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.

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.

type NWDataTransferReportCollectBlock added in v0.6.3

type NWDataTransferReportCollectBlock = func(objectivec.Object)

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 uint
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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_state(_:)

func (NWDataTransferReportState) String added in v0.6.3

func (e NWDataTransferReportState) String() string

type NWEndpoint added in v0.6.3

type NWEndpoint = 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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_local_endpoint_for_message(_:_:)

func NWConnectionGroupCopyRemoteEndpointForMessage added in v0.6.3

func NWConnectionGroupCopyRemoteEndpointForMessage(group NWConnectionGroup, context NWContentContext) NWEndpoint

NWConnectionGroupCopyRemoteEndpointForMessage accesses the endpoint that originates the message you receive.

See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_remote_endpoint_for_message(_:_:)

func NWEndpointCreateAddress added in v0.6.3

func NWEndpointCreateAddress(address unsafe.Pointer) NWEndpoint

NWEndpointCreateAddress creates a network endpoint with an address structure.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_resolution_report_copy_successful_endpoint(_:)

type NWEndpointType added in v0.6.3

type NWEndpointType uint
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.

See: https://developer.apple.com/documentation/Network/nw_endpoint_get_type(_:)

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) Code added in v0.6.3

func (o NWError) Code() int

Code returns the numeric error code from Network.framework.

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

func (o NWError) DomainString() string

DomainString returns the string form of the Network.framework error domain.

func (NWError) Error added in v0.6.3

func (o NWError) Error() string

Error returns the Objective-C description for the network error.

func (NWError) IsZero added in v0.6.3

func (o NWError) IsZero() bool

IsZero reports whether the network error is nil.

type NWErrorDomain added in v0.6.3

type NWErrorDomain int
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.

See: https://developer.apple.com/documentation/Network/nw_error_get_error_domain(_:)

func (NWErrorDomain) String added in v0.6.3

func (e NWErrorDomain) String() string

type NWEstablishmentReport added in v0.6.3

type NWEstablishmentReport = 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(objectivec.Object)

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 = kernel.Pointer

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 = 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.

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.

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.

type NWEthernetChannelReceiveHandler added in v0.6.3

type NWEthernetChannelReceiveHandler = func(objectivec.Object, uint32, *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 uint
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 = 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

func NWFramerFromID added in v0.6.3

func NWFramerFromID(id objc.ID) NWFramer

NWFramerFromID constructs a NWFramer from an objc.ID.

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(objectivec.Object)

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

type NWFramerInputHandler = func(objectivec.Object) uint64

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.

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.

See: https://developer.apple.com/documentation/Network/nw_framer_protocol_create_message(_:)

type NWFramerMessageDisposeValue added in v0.6.3

type NWFramerMessageDisposeValue = func(kernel.Pointer)

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(objectivec.Object, objectivec.Object, uint32, 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

type NWFramerParseCompletion = func(*uint8, uint32, bool) uint64

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(objectivec.Object) 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 int
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

type NWFramerStopHandler = func(objectivec.Object) bool

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(objectivec.Object)

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 = 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.

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.

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.

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.

type NWGroupDescriptorEnumerateEndpointsBlock added in v0.6.3

type NWGroupDescriptorEnumerateEndpointsBlock = func(objectivec.Object) 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 uint
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.

See: https://developer.apple.com/documentation/Network/nw_ip_metadata_get_ecn_flag(_:)

func (NWIPEcnFlag) String added in v0.6.3

func (e NWIPEcnFlag) String() string

type NWIPLocalAddressPreference added in v0.6.3

type NWIPLocalAddressPreference uint
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

type NWIPVersion added in v0.6.3

type NWIPVersion uint
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 = 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.

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.

See: https://developer.apple.com/documentation/Network/nw_parameters_copy_required_interface(_:)

type NWInterfaceRadioType added in v0.6.3

type NWInterfaceRadioType uint
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.

See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_path_radio_type(_:_:)

func (NWInterfaceRadioType) String added in v0.6.3

func (e NWInterfaceRadioType) String() string

type NWInterfaceType added in v0.6.3

type NWInterfaceType uint
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.

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.

See: https://developer.apple.com/documentation/Network/nw_parameters_get_required_interface_type(_:)

func (NWInterfaceType) String added in v0.6.3

func (e NWInterfaceType) String() string

type NWLinkQuality added in v0.6.3

type NWLinkQuality uint
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.

See: https://developer.apple.com/documentation/Network/nw_path_get_link_quality(_:)

func (NWLinkQuality) String added in v0.6.3

func (e NWLinkQuality) String() string

type NWListener added in v0.6.3

type NWListener = 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.

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.

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.

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.

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.

type NWListenerAdvertisedEndpointChangedHandler added in v0.6.3

type NWListenerAdvertisedEndpointChangedHandler = func(objectivec.Object, 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 NWListenerNewConnectionHandler added in v0.6.3

type NWListenerNewConnectionHandler = func(objectivec.Object)

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 uint
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 uint
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.

See: https://developer.apple.com/documentation/Network/nw_parameters_get_multipath_service(_:)

func (NWMultipathService) String added in v0.6.3

func (e NWMultipathService) String() string

type NWMultipathVersion added in v0.6.3

type NWMultipathVersion int
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 = objectivec.Object

NWObject is the generic type for objects in the Network framework.

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

func NWObjectFromID added in v0.6.3

func NWObjectFromID(id objc.ID) NWObject

NWObjectFromID constructs a NWObject from an objc.ID.

type NWParameters added in v0.6.3

type NWParameters = 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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_parameters_create()

func NWParametersCreateApplicationService added in v0.6.3

func NWParametersCreateApplicationService() NWParameters

NWParametersCreateApplicationService.

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.

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.

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.

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.

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 TryNWParametersCreatePlainTCP added in v0.6.3

func TryNWParametersCreatePlainTCP(configureTCP NWParametersConfigureProtocolBlock) (NWParameters, error)

TryNWParametersCreatePlainTCP initializes parameters for cleartext TCP.

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.

See: https://developer.apple.com/documentation/Network/nw_parameters_get_attribution(_:)

func (NWParametersAttribution) String added in v0.6.3

func (e NWParametersAttribution) String() string

type NWParametersConfigureProtocolBlock added in v0.6.3

type NWParametersConfigureProtocolBlock = func(objectivec.Object)

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 uint
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.

See: https://developer.apple.com/documentation/Network/nw_parameters_get_expired_dns_behavior(_:)

func (NWParametersExpiredDnsBehavior) String added in v0.6.3

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(objectivec.Object) 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 = 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.

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.

See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_path_for_message(_:_:)

func NWPathFromID added in v0.6.3

func NWPathFromID(id objc.ID) NWPath

NWPathFromID constructs a NWPath from an objc.ID.

type NWPathEnumerateGatewaysBlock added in v0.6.3

type NWPathEnumerateGatewaysBlock = func(objectivec.Object) 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(objectivec.Object) 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 = 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.

See: https://developer.apple.com/documentation/Network/nw_path_monitor_create()

func NWPathMonitorCreateForEthernetChannel added in v0.6.3

func NWPathMonitorCreateForEthernetChannel() NWPathMonitor

NWPathMonitorCreateForEthernetChannel.

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.

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.

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(objectivec.Object)

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 int
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.

See: https://developer.apple.com/documentation/Network/nw_path_get_status(_:)

func (NWPathStatus) String added in v0.6.3

func (e NWPathStatus) String() string

type NWPathUnsatisfiedReason added in v0.6.3

type NWPathUnsatisfiedReason uint
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.

See: https://developer.apple.com/documentation/Network/nw_path_get_unsatisfied_reason(_:)

func (NWPathUnsatisfiedReason) String added in v0.6.3

func (e NWPathUnsatisfiedReason) String() string

type NWPrivacyContext added in v0.6.3

type NWPrivacyContext = 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.

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.

type NWProtocolDefinition added in v0.6.3

type NWProtocolDefinition = 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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_protocol_options_copy_definition(_:)

type NWProtocolMetadata added in v0.6.3

type NWProtocolMetadata = 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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_protocol_metadata_for_message(_:_:_:)

func NWContentContextCopyProtocolMetadata added in v0.6.3

func NWContentContextCopyProtocolMetadata(context NWContentContext, protocol_ NWProtocolDefinition) NWProtocolMetadata

NWContentContextCopyProtocolMetadata retreives the metadata associated with a specific protocol.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_ws_create_metadata(_:)

type NWProtocolOptions added in v0.6.3

type NWProtocolOptions = 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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/Network/nw_ws_create_options(_:)

type NWProtocolStack added in v0.6.3

type NWProtocolStack = 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.

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.

type NWProtocolStackIterateProtocolsBlock added in v0.6.3

type NWProtocolStackIterateProtocolsBlock = func(objectivec.Object)

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 = 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.

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.

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.

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.

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.

type NWQuicStreamType added in v0.6.3

type NWQuicStreamType uint
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 = 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.

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.

type NWReportProtocolEnumerator added in v0.6.3

type NWReportProtocolEnumerator = func(objectivec.Object, 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, objectivec.Object, objectivec.Object) 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 uint
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.

See: https://developer.apple.com/documentation/Network/nw_resolution_report_get_protocol(_:)

func (NWReportResolutionProtocol) String added in v0.6.3

type NWReportResolutionReportEnumerator added in v0.6.3

type NWReportResolutionReportEnumerator = func(objectivec.Object) 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 uint
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.

See: https://developer.apple.com/documentation/Network/nw_resolution_report_get_source(_:)

func (NWReportResolutionSource) String added in v0.6.3

func (e NWReportResolutionSource) String() string

type NWResolutionReport added in v0.6.3

type NWResolutionReport = 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 = 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.

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.

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.

type NWServiceClass added in v0.6.3

type NWServiceClass uint
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.

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.

See: https://developer.apple.com/documentation/Network/nw_parameters_get_service_class(_:)

func (NWServiceClass) String added in v0.6.3

func (e NWServiceClass) String() string

type NWTXTRecord added in v0.6.3

type NWTXTRecord = 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.

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.

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.

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.

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.

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.

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.

type NWTXTRecordAccessBytes added in v0.6.3

type NWTXTRecordAccessBytes = func(*uint8, uint32) bool

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, uint32) 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, uint32) 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 uint
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.

See: https://developer.apple.com/documentation/Network/nw_txt_record_find_key(_:_:)

func (NWTXTRecordFindKey) String added in v0.6.3

func (e NWTXTRecordFindKey) String() string

type NWWsAdditionalHeaderEnumerator added in v0.6.3

type NWWsAdditionalHeaderEnumerator = func(string, string) bool

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(objectivec.Object) objectivec.Object

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 uint
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.

See: https://developer.apple.com/documentation/Network/nw_ws_metadata_get_close_code(_:)

func (NWWsCloseCode) String added in v0.6.3

func (e NWWsCloseCode) String() string

type NWWsOpcode added in v0.6.3

type NWWsOpcode int
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.

See: https://developer.apple.com/documentation/Network/nw_ws_metadata_get_opcode(_:)

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 = 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 = 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.

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.

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.

type NWWsResponseStatus added in v0.6.3

type NWWsResponseStatus int
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.

See: https://developer.apple.com/documentation/Network/nw_ws_response_get_status(_:)

func (NWWsResponseStatus) String added in v0.6.3

func (e NWWsResponseStatus) String() string

type NWWsSubprotocolEnumerator added in v0.6.3

type NWWsSubprotocolEnumerator = func(string) bool

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 uint
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 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Jump to

Keyboard shortcuts

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