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 [URLSession](<doc://com.apple.documentation/documentation/Foundation/URLSession>), 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](<doc://com.apple.documentation/documentation/Technotes/tn3151-choosing-the-right-networking-api>).
Essentials ¶
- NWEndpoint: A local or remote endpoint in a network connection.
- NWParameters: An object that stores the protocols to use for connections, options for sending data, and network path constraints.
Connections and Listeners ¶
- NWConnection: A bidirectional data connection between a local endpoint and a remote endpoint.
- NWListener: An object you use to listen for incoming network connections.
- NWBrowser: An object you use to browse for available network services.
- NWConnectionGroup: An object you use to communicate with a group of endpoints, such as an IP multicast group on a local network.
- NWEthernetChannel: An object you use to send and receive custom Ethernet frames.
Network Protocols ¶
- Building a custom peer-to-peer protocol: Use networking frameworks to create a custom protocol for playing a game across iOS, iPadOS, watchOS, and tvOS devices.
- Connecting iPadOS and visionOS apps over the local network: Build an iPadOS companion app to control your visionOS app.
- NWProtocolTCP: A network protocol for connections that use the Transmission Control Protocol.
- NWProtocolTLS: A network protocol for connections that use Transport Layer Security.
- NWProtocolQUIC: A network protocol for connections that use the QUIC transport protocol.
- NWProtocolUDP: A network protocol for connections that use the User Datagram Protocol.
- NWProtocolIP: A network protocol for configuring the Internet Protocol on connections.
- NWProtocolWebSocket: A network protocol for connections that use WebSocket.
- NWProtocolFramer: A customizable network protocol for defining application message parsers.
Network Security and Privacy ¶
- Security Options: Configure security options for TLS handshakes.
- Privacy Management: Configure parameters related to user privacy. (Nw_parameters_attribution_t)
- Creating an Identity for Local Network TLS: Learn how to create and use a digital identity in your application for local network TLS.
Paths and Interfaces ¶
- NWPath: An object that contains information about the properties of the network that a connection uses, or that are available to your app.
- NWPathMonitor: An observer that you use to monitor and react to network changes.
- NWInterface: An interface that a network connection uses to send and receive data.
Errors ¶
- NWError: The errors returned by objects in the Network framework.
Network Debugging ¶
- Choosing a Network Debugging Tool: Decide which tool works best for your network debugging problem.
- Debugging HTTP Server-Side Errors: Understand HTTP server-side errors and how to debug them.
- Debugging HTTPS Problems with CFNetwork Diagnostic Logging: Use CFNetwork diagnostic logging to investigate HTTP and HTTPS problems.
- Recording a Packet Trace: Learn how to record a low-level trace of network traffic.
- Taking Advantage of Third-Party Network Debugging Tools: Learn about the available third-party network debugging tools.
- Testing and Debugging L4S in Your App: Learn how to verify your app on an L4S-capable host and network to improve your app’s responsiveness.
C-Language Symbols ¶
- C-Language Symbols (OS_nw_advertise_descriptor, OS_nw_browse_descriptor, OS_nw_browse_result, OS_nw_browser, OS_nw_connection)
Classes ¶
- NWMultiplexGroup
- NetworkBrowser: Discover advertised services and devices on the network.
- NetworkChannel: A base class supporting sending and recieving data through an arbitrary network channel.
- NetworkConnection: Connect to an endpoint on the network to send and receive data.
- NetworkListener: Listen for incoming network connections.
Protocols ¶
- BrowserProvider: BrowserProviders can be used when creating NetworkBrowsers.
- Connectable: Describes types that can be used to make NetworkConnections.
- ConnectionStorage: Types that conform to ConnectionStorage can be used as additional storage within a connection.
- DatagramProtocol: Types that conform to DatagramProtocol send and receive messages with minimal or no metadata, usually constrained to a fixed maximum size.
- FramerProtocol: Framer protocols allow custom framing and serialization of messages on a connection.
- ListenerProvider: Extensible support for configuring advertise descriptors to define the service a listener should advertise.
- MessageProtocol: Types that conform to MessageProtocol send and receive messages.
- MultiplexProtocol: Types that conform to MultiplexProtocol are allowed to be the top protocol in a network protocol stack for multiplexing network connection objects.
- NWParametersProvider: Types that conform to the NWParametersProvider protocol can be used to generate an NWParameters.
- NetworkCoder
- NetworkDecoder: A type that conforms to the NetworkEncoder protocol can decode data to an Encodable object
- NetworkEncoder: A type that conforms to the NetworkEncoder protocol can encode a Encodable object to Data
- NetworkFixedWidthInteger
- NetworkMetadataProtocol: Types that conform to NetworkProtocolOptions can be used when configuring protocol stacks.
- NetworkProtocolOptions
- OneToOneProtocol: Types that conform to OneToOneProtocol are allowed to be the top protocol in a network protocol stack for non-multiplexed connections.
- StreamProtocol: Types that conform to the StreamProtocol protocol expose methods for sending and receiving byte streams.
Variables ¶
- kNWErrorDomainWiFiAware
- nw_error_domain_wifi_aware
- nw_link_quality_good
- nw_link_quality_minimal
- nw_link_quality_moderate
- nw_link_quality_unknown
Functions ¶
- nw_parameters_get_allow_ultra_constrained(_:)
- nw_parameters_set_allow_ultra_constrained(_:_:)
- nw_path_get_link_quality(_:)
- nw_path_is_ultra_constrained(_:)
- withNetworkConnection(to:using:_:)
- withNetworkConnection(to:using:_:)
- withNetworkConnection(to:using:_:)
- withNetworkConnection(to:using:_:)
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Variables
- func Nw_advertise_descriptor_get_application_service_name(advertise_descriptor Nw_advertise_descriptor_t) *byte
- func Nw_advertise_descriptor_get_no_auto_rename(advertise_descriptor Nw_advertise_descriptor_t) bool
- func Nw_advertise_descriptor_set_no_auto_rename(advertise_descriptor Nw_advertise_descriptor_t, no_auto_rename bool)
- func Nw_advertise_descriptor_set_txt_record(advertise_descriptor Nw_advertise_descriptor_t, txt_record unsafe.Pointer, ...)
- func Nw_advertise_descriptor_set_txt_record_object(advertise_descriptor Nw_advertise_descriptor_t, txt_record Nw_txt_record_t)
- func Nw_browse_descriptor_get_application_service_name(descriptor Nw_browse_descriptor_t) *byte
- func Nw_browse_descriptor_get_bonjour_service_domain(descriptor Nw_browse_descriptor_t) *byte
- func Nw_browse_descriptor_get_bonjour_service_type(descriptor Nw_browse_descriptor_t) *byte
- func Nw_browse_descriptor_get_include_txt_record(descriptor Nw_browse_descriptor_t) bool
- func Nw_browse_descriptor_set_include_txt_record(descriptor Nw_browse_descriptor_t, include_txt_record bool)
- func Nw_browse_result_enumerate_interfaces(result Nw_browse_result_t, enumerator Nw_browse_result_enumerate_interface_t)
- func Nw_browse_result_get_interfaces_count(result Nw_browse_result_t) uintptr
- func Nw_browser_cancel(browser Nw_browser_t)
- func Nw_browser_set_browse_results_changed_handler(browser Nw_browser_t, handler Nw_browser_browse_results_changed_handler_t)
- func Nw_browser_set_queue(browser Nw_browser_t, queue dispatch.Queue)
- func Nw_browser_set_state_changed_handler(browser Nw_browser_t, state_changed_handler Nw_browser_state_changed_handler_t)
- func Nw_browser_start(browser Nw_browser_t)
- func Nw_connection_access_establishment_report(connection Nw_connection_t, queue dispatch.Queue, ...)
- func Nw_connection_batch(connection Nw_connection_t, batch_block unsafe.Pointer)
- func Nw_connection_cancel(connection Nw_connection_t)
- func Nw_connection_cancel_current_endpoint(connection Nw_connection_t)
- func Nw_connection_copy_description(connection Nw_connection_t) *byte
- func Nw_connection_force_cancel(connection Nw_connection_t)
- func Nw_connection_get_maximum_datagram_size(connection Nw_connection_t) uint32
- func Nw_connection_group_cancel(group Nw_connection_group_t)
- func Nw_connection_group_reinsert_extracted_connection(group Nw_connection_group_t, connection Nw_connection_t) bool
- func Nw_connection_group_reply(group Nw_connection_group_t, inbound_message Nw_content_context_t, ...)
- func Nw_connection_group_send_message(group Nw_connection_group_t, content dispatch.Data, endpoint Nw_endpoint_t, ...)
- func Nw_connection_group_set_new_connection_handler(group Nw_connection_group_t, ...)
- func Nw_connection_group_set_queue(group Nw_connection_group_t, queue dispatch.Queue)
- func Nw_connection_group_set_receive_handler(group Nw_connection_group_t, maximum_message_size uint32, ...)
- func Nw_connection_group_set_state_changed_handler(group Nw_connection_group_t, ...)
- func Nw_connection_group_start(group Nw_connection_group_t)
- func Nw_connection_receive(connection Nw_connection_t, minimum_incomplete_length uint32, ...)
- func Nw_connection_receive_message(connection Nw_connection_t, completion Nw_connection_receive_completion_t)
- func Nw_connection_restart(connection Nw_connection_t)
- func Nw_connection_send(connection Nw_connection_t, content dispatch.Data, ...)
- func Nw_connection_set_better_path_available_handler(connection Nw_connection_t, handler Nw_connection_boolean_event_handler_t)
- func Nw_connection_set_path_changed_handler(connection Nw_connection_t, handler Nw_connection_path_event_handler_t)
- func Nw_connection_set_queue(connection Nw_connection_t, queue dispatch.Queue)
- func Nw_connection_set_state_changed_handler(connection Nw_connection_t, handler Nw_connection_state_changed_handler_t)
- func Nw_connection_set_viability_changed_handler(connection Nw_connection_t, handler Nw_connection_boolean_event_handler_t)
- func Nw_connection_start(connection Nw_connection_t)
- func Nw_content_context_foreach_protocol_metadata(context Nw_content_context_t)
- func Nw_content_context_get_expiration_milliseconds(context Nw_content_context_t) uint64
- func Nw_content_context_get_identifier(context Nw_content_context_t) *byte
- func Nw_content_context_get_is_final(context Nw_content_context_t) bool
- func Nw_content_context_get_relative_priority(context Nw_content_context_t) float64
- func Nw_content_context_set_antecedent(context Nw_content_context_t, antecedent_context Nw_content_context_t)
- func Nw_content_context_set_expiration_milliseconds(context Nw_content_context_t, expiration_milliseconds uint64)
- func Nw_content_context_set_is_final(context Nw_content_context_t, is_final bool)
- func Nw_content_context_set_metadata_for_protocol(context Nw_content_context_t, protocol_metadata Nw_protocol_metadata_t)
- func Nw_content_context_set_relative_priority(context Nw_content_context_t, relative_priority float64)
- func Nw_data_transfer_report_collect(report Nw_data_transfer_report_t, queue dispatch.Queue, ...)
- func Nw_data_transfer_report_get_duration_milliseconds(report Nw_data_transfer_report_t) uint64
- func Nw_data_transfer_report_get_path_count(report Nw_data_transfer_report_t) uint32
- func Nw_data_transfer_report_get_received_application_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_received_ip_packet_count(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_received_transport_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_received_transport_duplicate_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_received_transport_out_of_order_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_sent_application_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_sent_ip_packet_count(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_sent_transport_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_sent_transport_retransmitted_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_transport_minimum_rtt_milliseconds(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_transport_rtt_variance(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_data_transfer_report_get_transport_smoothed_rtt_milliseconds(report Nw_data_transfer_report_t, path_index uint32) uint64
- func Nw_endpoint_copy_address_string(endpoint Nw_endpoint_t) *byte
- func Nw_endpoint_copy_port_string(endpoint Nw_endpoint_t) *byte
- func Nw_endpoint_get_address(endpoint Nw_endpoint_t) objectivec.IObject
- func Nw_endpoint_get_bonjour_service_domain(endpoint Nw_endpoint_t) *byte
- func Nw_endpoint_get_bonjour_service_name(endpoint Nw_endpoint_t) *byte
- func Nw_endpoint_get_bonjour_service_type(endpoint Nw_endpoint_t) *byte
- func Nw_endpoint_get_hostname(endpoint Nw_endpoint_t) *byte
- func Nw_endpoint_get_port(endpoint Nw_endpoint_t) uint16
- func Nw_endpoint_get_signature(endpoint Nw_endpoint_t, out_signature_length *uintptr) *uint8
- func Nw_endpoint_get_url(endpoint Nw_endpoint_t) *byte
- func Nw_error_copy_cf_error(err Nw_error_t) corefoundation.CFErrorRef
- func Nw_error_get_error_code(err Nw_error_t) int
- func Nw_establishment_report_enumerate_protocols(report Nw_establishment_report_t, ...)
- func Nw_establishment_report_enumerate_resolution_reports(report Nw_establishment_report_t, ...)
- func Nw_establishment_report_enumerate_resolutions(report Nw_establishment_report_t, ...)
- func Nw_establishment_report_get_attempt_started_after_milliseconds(report Nw_establishment_report_t) uint64
- func Nw_establishment_report_get_duration_milliseconds(report Nw_establishment_report_t) uint64
- func Nw_establishment_report_get_previous_attempt_count(report Nw_establishment_report_t) uint32
- func Nw_establishment_report_get_proxy_configured(report Nw_establishment_report_t) bool
- func Nw_establishment_report_get_used_proxy(report Nw_establishment_report_t) bool
- func Nw_ethernet_channel_cancel(ethernet_channel Nw_ethernet_channel_t)
- func Nw_ethernet_channel_get_maximum_payload_size(ethernet_channel Nw_ethernet_channel_t) uint32
- func Nw_ethernet_channel_send(ethernet_channel Nw_ethernet_channel_t, content dispatch.Data, vlan_tag uint16, ...)
- func Nw_ethernet_channel_set_queue(ethernet_channel Nw_ethernet_channel_t, queue dispatch.Queue)
- func Nw_ethernet_channel_set_receive_handler(ethernet_channel Nw_ethernet_channel_t, ...)
- func Nw_ethernet_channel_set_state_changed_handler(ethernet_channel Nw_ethernet_channel_t, ...)
- func Nw_ethernet_channel_start(ethernet_channel Nw_ethernet_channel_t)
- func Nw_framer_async(framer Nw_framer_t, async_block Nw_framer_block_t)
- func Nw_framer_deliver_input(framer Nw_framer_t, input_buffer *uint8, input_length uintptr, ...)
- func Nw_framer_deliver_input_no_copy(framer Nw_framer_t, input_length uintptr, message Nw_framer_message_t, ...) bool
- func Nw_framer_mark_failed_with_error(framer Nw_framer_t, error_code int)
- func Nw_framer_mark_ready(framer Nw_framer_t)
- func Nw_framer_message_access_value(message Nw_framer_message_t, key string, access_value bool) bool
- func Nw_framer_message_copy_object_value(message Nw_framer_message_t, key string) objectivec.Object
- func Nw_framer_message_set_object_value(message Nw_framer_message_t, key string, value objectivec.Object)
- func Nw_framer_message_set_value(message Nw_framer_message_t, key string, value unsafe.Pointer, ...)
- func Nw_framer_options_copy_object_value(options Nw_protocol_options_t, key string) objectivec.Object
- func Nw_framer_options_set_object_value(options Nw_protocol_options_t, key string, value objectivec.Object)
- func Nw_framer_parse_input(framer Nw_framer_t, minimum_incomplete_length uintptr, maximum_length uintptr, ...) bool
- func Nw_framer_parse_output(framer Nw_framer_t, minimum_incomplete_length uintptr, maximum_length uintptr, ...) bool
- func Nw_framer_pass_through_input(framer Nw_framer_t)
- func Nw_framer_pass_through_output(framer Nw_framer_t)
- func Nw_framer_prepend_application_protocol(framer Nw_framer_t, protocol_options Nw_protocol_options_t) bool
- func Nw_framer_schedule_wakeup(framer Nw_framer_t, milliseconds uint64)
- func Nw_framer_set_cleanup_handler(framer Nw_framer_t, cleanup_handler Nw_framer_cleanup_handler_t)
- func Nw_framer_set_input_handler(framer Nw_framer_t, input_handler Nw_framer_input_handler_t)
- func Nw_framer_set_output_handler(framer Nw_framer_t, output_handler Nw_framer_output_handler_t)
- func Nw_framer_set_stop_handler(framer Nw_framer_t, stop_handler Nw_framer_stop_handler_t)
- func Nw_framer_set_wakeup_handler(framer Nw_framer_t, wakeup_handler Nw_framer_wakeup_handler_t)
- func Nw_framer_write_output(framer Nw_framer_t, output_buffer *uint8, output_length uintptr)
- func Nw_framer_write_output_data(framer Nw_framer_t, output_data dispatch.Data)
- func Nw_framer_write_output_no_copy(framer Nw_framer_t, output_length uintptr) bool
- func Nw_group_descriptor_add_endpoint(descriptor Nw_group_descriptor_t, endpoint Nw_endpoint_t) bool
- func Nw_group_descriptor_enumerate_endpoints(descriptor Nw_group_descriptor_t, ...)
- func Nw_interface_get_index(interface_ Nw_interface_t) uint32
- func Nw_interface_get_name(interface_ Nw_interface_t) *byte
- func Nw_ip_metadata_get_receive_time(metadata Nw_protocol_metadata_t) uint64
- func Nw_ip_metadata_set_ecn_flag(metadata Nw_protocol_metadata_t, ecn_flag NwIpEcnFlag)
- func Nw_ip_metadata_set_service_class(metadata Nw_protocol_metadata_t, service_class NwServiceClass)
- func Nw_ip_options_set_calculate_receive_time(options Nw_protocol_options_t, calculate_receive_time bool)
- func Nw_ip_options_set_disable_fragmentation(options Nw_protocol_options_t, disable_fragmentation bool)
- func Nw_ip_options_set_disable_multicast_loopback(options Nw_protocol_options_t, disable_multicast_loopback bool)
- func Nw_ip_options_set_hop_limit(options Nw_protocol_options_t, hop_limit uint8)
- func Nw_ip_options_set_local_address_preference(options Nw_protocol_options_t, preference NwIpLocalAddressPreference)
- func Nw_ip_options_set_use_minimum_mtu(options Nw_protocol_options_t, use_minimum_mtu bool)
- func Nw_ip_options_set_version(options Nw_protocol_options_t, version NwIpVersion)
- func Nw_listener_cancel(listener Nw_listener_t)
- func Nw_listener_get_new_connection_limit(listener Nw_listener_t) uint32
- func Nw_listener_get_port(listener Nw_listener_t) uint16
- func Nw_listener_set_advertise_descriptor(listener Nw_listener_t, advertise_descriptor Nw_advertise_descriptor_t)
- func Nw_listener_set_advertised_endpoint_changed_handler(listener Nw_listener_t, ...)
- func Nw_listener_set_new_connection_group_handler(listener Nw_listener_t, handler Nw_listener_new_connection_group_handler_t)
- func Nw_listener_set_new_connection_handler(listener Nw_listener_t, handler Nw_listener_new_connection_handler_t)
- func Nw_listener_set_new_connection_limit(listener Nw_listener_t, new_connection_limit uint32)
- func Nw_listener_set_queue(listener Nw_listener_t, queue dispatch.Queue)
- func Nw_listener_set_state_changed_handler(listener Nw_listener_t, handler Nw_listener_state_changed_handler_t)
- func Nw_listener_start(listener Nw_listener_t)
- func Nw_multicast_group_descriptor_get_disable_unicast_traffic(multicast_descriptor Nw_group_descriptor_t) bool
- func Nw_multicast_group_descriptor_set_disable_unicast_traffic(multicast_descriptor Nw_group_descriptor_t, disable_unicast_traffic bool)
- func Nw_multicast_group_descriptor_set_specific_source(multicast_descriptor Nw_group_descriptor_t, source Nw_endpoint_t)
- func Nw_parameters_clear_prohibited_interface_types(parameters Nw_parameters_t)
- func Nw_parameters_clear_prohibited_interfaces(parameters Nw_parameters_t)
- func Nw_parameters_get_allow_ultra_constrained(parameters Nw_parameters_t) bool
- func Nw_parameters_get_fast_open_enabled(parameters Nw_parameters_t) bool
- func Nw_parameters_get_include_peer_to_peer(parameters Nw_parameters_t) bool
- func Nw_parameters_get_local_only(parameters Nw_parameters_t) bool
- func Nw_parameters_get_prefer_no_proxy(parameters Nw_parameters_t) bool
- func Nw_parameters_get_prohibit_constrained(parameters Nw_parameters_t) bool
- func Nw_parameters_get_prohibit_expensive(parameters Nw_parameters_t) bool
- func Nw_parameters_get_reuse_local_address(parameters Nw_parameters_t) bool
- func Nw_parameters_iterate_prohibited_interface_types(parameters Nw_parameters_t, ...)
- func Nw_parameters_iterate_prohibited_interfaces(parameters Nw_parameters_t, ...)
- func Nw_parameters_prohibit_interface(parameters Nw_parameters_t, interface_ Nw_interface_t)
- func Nw_parameters_prohibit_interface_type(parameters Nw_parameters_t, interface_type NwInterfaceType)
- func Nw_parameters_require_interface(parameters Nw_parameters_t, interface_ Nw_interface_t)
- func Nw_parameters_requires_dnssec_validation(parameters Nw_parameters_t) bool
- func Nw_parameters_set_allow_ultra_constrained(parameters Nw_parameters_t, allow_ultra_constrained bool)
- func Nw_parameters_set_attribution(parameters Nw_parameters_t, attribution Nw_parameters_attribution_t)
- func Nw_parameters_set_expired_dns_behavior(parameters Nw_parameters_t, ...)
- func Nw_parameters_set_fast_open_enabled(parameters Nw_parameters_t, fast_open_enabled bool)
- func Nw_parameters_set_include_peer_to_peer(parameters Nw_parameters_t, include_peer_to_peer bool)
- func Nw_parameters_set_local_endpoint(parameters Nw_parameters_t, local_endpoint Nw_endpoint_t)
- func Nw_parameters_set_local_only(parameters Nw_parameters_t, local_only bool)
- func Nw_parameters_set_multipath_service(parameters Nw_parameters_t, multipath_service NwMultipathService)
- func Nw_parameters_set_prefer_no_proxy(parameters Nw_parameters_t, prefer_no_proxy bool)
- func Nw_parameters_set_privacy_context(parameters Nw_parameters_t, privacy_context Nw_privacy_context_t)
- func Nw_parameters_set_prohibit_constrained(parameters Nw_parameters_t, prohibit_constrained bool)
- func Nw_parameters_set_prohibit_expensive(parameters Nw_parameters_t, prohibit_expensive bool)
- func Nw_parameters_set_required_interface_type(parameters Nw_parameters_t, interface_type NwInterfaceType)
- func Nw_parameters_set_requires_dnssec_validation(parameters Nw_parameters_t, requires_dnssec_validation bool)
- func Nw_parameters_set_reuse_local_address(parameters Nw_parameters_t, reuse_local_address bool)
- func Nw_parameters_set_service_class(parameters Nw_parameters_t, service_class NwServiceClass)
- func Nw_path_enumerate_gateways(path Nw_path_t, enumerate_block Nw_path_enumerate_gateways_block_t)
- func Nw_path_enumerate_interfaces(path Nw_path_t, enumerate_block Nw_path_enumerate_interfaces_block_t)
- func Nw_path_has_dns(path Nw_path_t) bool
- func Nw_path_has_ipv4(path Nw_path_t) bool
- func Nw_path_has_ipv6(path Nw_path_t) bool
- func Nw_path_is_constrained(path Nw_path_t) bool
- func Nw_path_is_equal(path Nw_path_t, other_path Nw_path_t) bool
- func Nw_path_is_expensive(path Nw_path_t) bool
- func Nw_path_is_ultra_constrained(path Nw_path_t) bool
- func Nw_path_monitor_cancel(monitor Nw_path_monitor_t)
- func Nw_path_monitor_prohibit_interface_type(monitor Nw_path_monitor_t, interface_type NwInterfaceType)
- func Nw_path_monitor_set_cancel_handler(monitor Nw_path_monitor_t, cancel_handler Nw_path_monitor_cancel_handler_t)
- func Nw_path_monitor_set_queue(monitor Nw_path_monitor_t, queue dispatch.Queue)
- func Nw_path_monitor_set_update_handler(monitor Nw_path_monitor_t, update_handler Nw_path_monitor_update_handler_t)
- func Nw_path_monitor_start(monitor Nw_path_monitor_t)
- func Nw_path_uses_interface_type(path Nw_path_t, interface_type NwInterfaceType) bool
- func Nw_privacy_context_add_proxy(privacy_context Nw_privacy_context_t, proxy_config Nw_proxy_config_t)
- func Nw_privacy_context_clear_proxies(privacy_context Nw_privacy_context_t)
- func Nw_privacy_context_disable_logging(privacy_context Nw_privacy_context_t)
- func Nw_privacy_context_flush_cache(privacy_context Nw_privacy_context_t)
- func Nw_privacy_context_require_encrypted_name_resolution(privacy_context Nw_privacy_context_t, require_encrypted_name_resolution bool, ...)
- func Nw_protocol_definition_is_equal(definition1 Nw_protocol_definition_t, definition2 Nw_protocol_definition_t) bool
- func Nw_protocol_metadata_is_framer_message(metadata Nw_protocol_metadata_t) bool
- func Nw_protocol_metadata_is_ip(metadata Nw_protocol_metadata_t) bool
- func Nw_protocol_metadata_is_quic(metadata Nw_protocol_metadata_t) bool
- func Nw_protocol_metadata_is_tcp(metadata Nw_protocol_metadata_t) bool
- func Nw_protocol_metadata_is_tls(metadata Nw_protocol_metadata_t) bool
- func Nw_protocol_metadata_is_udp(metadata Nw_protocol_metadata_t) bool
- func Nw_protocol_metadata_is_ws(metadata Nw_protocol_metadata_t) bool
- func Nw_protocol_options_is_quic(options Nw_protocol_options_t) bool
- func Nw_protocol_stack_clear_application_protocols(stack Nw_protocol_stack_t)
- func Nw_protocol_stack_iterate_application_protocols(stack Nw_protocol_stack_t, ...)
- func Nw_protocol_stack_prepend_application_protocol(stack Nw_protocol_stack_t, protocol_ Nw_protocol_options_t)
- func Nw_protocol_stack_set_transport_protocol(stack Nw_protocol_stack_t, protocol_ Nw_protocol_options_t)
- func Nw_proxy_config_add_excluded_domain(config Nw_proxy_config_t, excluded_domain string)
- func Nw_proxy_config_add_match_domain(config Nw_proxy_config_t, match_domain string)
- func Nw_proxy_config_clear_excluded_domains(config Nw_proxy_config_t)
- func Nw_proxy_config_clear_match_domains(config Nw_proxy_config_t)
- func Nw_proxy_config_enumerate_excluded_domains(config Nw_proxy_config_t, enumerator Nw_proxy_domain_enumerator_t)
- func Nw_proxy_config_enumerate_match_domains(config Nw_proxy_config_t, enumerator Nw_proxy_domain_enumerator_t)
- func Nw_proxy_config_get_failover_allowed(proxy_config Nw_proxy_config_t) bool
- func Nw_proxy_config_set_failover_allowed(proxy_config Nw_proxy_config_t, failover_allowed bool)
- func Nw_proxy_config_set_username_and_password(proxy_config Nw_proxy_config_t, username string, password string)
- func Nw_quic_add_tls_application_protocol(options Nw_protocol_options_t, application_protocol string)
- func Nw_quic_copy_sec_protocol_metadata(metadata Nw_protocol_metadata_t) security.Sec_protocol_metadata_t
- func Nw_quic_copy_sec_protocol_options(options Nw_protocol_options_t) security.Sec_protocol_options_t
- func Nw_quic_get_application_error(metadata Nw_protocol_metadata_t) uint64
- func Nw_quic_get_application_error_reason(metadata Nw_protocol_metadata_t) *byte
- func Nw_quic_get_idle_timeout(options Nw_protocol_options_t) uint32
- func Nw_quic_get_initial_max_data(options Nw_protocol_options_t) uint64
- func Nw_quic_get_initial_max_stream_data_bidirectional_local(options Nw_protocol_options_t) uint64
- func Nw_quic_get_initial_max_stream_data_bidirectional_remote(options Nw_protocol_options_t) uint64
- func Nw_quic_get_initial_max_stream_data_unidirectional(options Nw_protocol_options_t) uint64
- func Nw_quic_get_initial_max_streams_bidirectional(options Nw_protocol_options_t) uint64
- func Nw_quic_get_initial_max_streams_unidirectional(options Nw_protocol_options_t) uint64
- func Nw_quic_get_keepalive_interval(metadata Nw_protocol_metadata_t) uint16
- func Nw_quic_get_local_max_streams_bidirectional(metadata Nw_protocol_metadata_t) uint64
- func Nw_quic_get_local_max_streams_unidirectional(metadata Nw_protocol_metadata_t) uint64
- func Nw_quic_get_max_datagram_frame_size(options Nw_protocol_options_t) uint16
- func Nw_quic_get_max_udp_payload_size(options Nw_protocol_options_t) uint16
- func Nw_quic_get_remote_idle_timeout(metadata Nw_protocol_metadata_t) uint64
- func Nw_quic_get_remote_max_streams_bidirectional(metadata Nw_protocol_metadata_t) uint64
- func Nw_quic_get_remote_max_streams_unidirectional(metadata Nw_protocol_metadata_t) uint64
- func Nw_quic_get_stream_application_error(metadata Nw_protocol_metadata_t) uint64
- func Nw_quic_get_stream_id(metadata Nw_protocol_metadata_t) uint64
- func Nw_quic_get_stream_is_datagram(options Nw_protocol_options_t) bool
- func Nw_quic_get_stream_is_unidirectional(options Nw_protocol_options_t) bool
- func Nw_quic_get_stream_type(stream_metadata Nw_protocol_metadata_t) uint8
- func Nw_quic_get_stream_usable_datagram_frame_size(metadata Nw_protocol_metadata_t) uint16
- func Nw_quic_set_application_error(metadata Nw_protocol_metadata_t, application_error uint64, reason string)
- func Nw_quic_set_idle_timeout(options Nw_protocol_options_t, idle_timeout uint32)
- func Nw_quic_set_initial_max_data(options Nw_protocol_options_t, initial_max_data uint64)
- func Nw_quic_set_initial_max_stream_data_bidirectional_local(options Nw_protocol_options_t, ...)
- func Nw_quic_set_initial_max_stream_data_bidirectional_remote(options Nw_protocol_options_t, ...)
- func Nw_quic_set_initial_max_stream_data_unidirectional(options Nw_protocol_options_t, initial_max_stream_data_unidirectional uint64)
- func Nw_quic_set_initial_max_streams_bidirectional(options Nw_protocol_options_t, initial_max_streams_bidirectional uint64)
- func Nw_quic_set_initial_max_streams_unidirectional(options Nw_protocol_options_t, initial_max_streams_unidirectional uint64)
- func Nw_quic_set_keepalive_interval(metadata Nw_protocol_metadata_t, keepalive_interval uint16)
- func Nw_quic_set_local_max_streams_bidirectional(metadata Nw_protocol_metadata_t, max_streams_bidirectional uint64)
- func Nw_quic_set_local_max_streams_unidirectional(metadata Nw_protocol_metadata_t, max_streams_unidirectional uint64)
- func Nw_quic_set_max_datagram_frame_size(options Nw_protocol_options_t, max_datagram_frame_size uint16)
- func Nw_quic_set_max_udp_payload_size(options Nw_protocol_options_t, max_udp_payload_size uint16)
- func Nw_quic_set_stream_application_error(metadata Nw_protocol_metadata_t, application_error uint64)
- func Nw_quic_set_stream_is_datagram(options Nw_protocol_options_t, is_datagram bool)
- func Nw_quic_set_stream_is_unidirectional(options Nw_protocol_options_t, is_unidirectional bool)
- func Nw_relay_hop_add_additional_http_header_field(relay_hop Nw_relay_hop_t, field_name string, field_value string)
- func Nw_release(obj unsafe.Pointer)
- func Nw_resolution_report_get_endpoint_count(resolution_report Nw_resolution_report_t) uint32
- func Nw_resolution_report_get_milliseconds(resolution_report Nw_resolution_report_t) uint64
- func Nw_resolver_config_add_server_address(config Nw_resolver_config_t, server_address Nw_endpoint_t)
- func Nw_retain(obj unsafe.Pointer) unsafe.Pointer
- func Nw_tcp_get_available_receive_buffer(metadata Nw_protocol_metadata_t) uint32
- func Nw_tcp_get_available_send_buffer(metadata Nw_protocol_metadata_t) uint32
- func Nw_tcp_options_set_connection_timeout(options Nw_protocol_options_t, connection_timeout uint32)
- func Nw_tcp_options_set_disable_ack_stretching(options Nw_protocol_options_t, disable_ack_stretching bool)
- func Nw_tcp_options_set_disable_ecn(options Nw_protocol_options_t, disable_ecn bool)
- func Nw_tcp_options_set_enable_fast_open(options Nw_protocol_options_t, enable_fast_open bool)
- func Nw_tcp_options_set_enable_keepalive(options Nw_protocol_options_t, enable_keepalive bool)
- func Nw_tcp_options_set_keepalive_count(options Nw_protocol_options_t, keepalive_count uint32)
- func Nw_tcp_options_set_keepalive_idle_time(options Nw_protocol_options_t, keepalive_idle_time uint32)
- func Nw_tcp_options_set_keepalive_interval(options Nw_protocol_options_t, keepalive_interval uint32)
- func Nw_tcp_options_set_maximum_segment_size(options Nw_protocol_options_t, maximum_segment_size uint32)
- func Nw_tcp_options_set_multipath_force_version(options Nw_protocol_options_t, multipath_force_version NwMultipathVersion)
- func Nw_tcp_options_set_no_delay(options Nw_protocol_options_t, no_delay bool)
- func Nw_tcp_options_set_no_options(options Nw_protocol_options_t, no_options bool)
- func Nw_tcp_options_set_no_push(options Nw_protocol_options_t, no_push bool)
- func Nw_tcp_options_set_persist_timeout(options Nw_protocol_options_t, persist_timeout uint32)
- func Nw_tcp_options_set_retransmit_connection_drop_time(options Nw_protocol_options_t, retransmit_connection_drop_time uint32)
- func Nw_tcp_options_set_retransmit_fin_drop(options Nw_protocol_options_t, retransmit_fin_drop bool)
- func Nw_tls_copy_sec_protocol_metadata(metadata Nw_protocol_metadata_t) security.Sec_protocol_metadata_t
- func Nw_tls_copy_sec_protocol_options(options Nw_protocol_options_t) security.Sec_protocol_options_t
- func Nw_txt_record_access_bytes(txt_record Nw_txt_record_t, access_bytes Nw_txt_record_access_bytes_t) bool
- func Nw_txt_record_access_key(txt_record Nw_txt_record_t, key string, ...) bool
- func Nw_txt_record_apply(txt_record Nw_txt_record_t, applier Nw_txt_record_applier_t) bool
- func Nw_txt_record_get_key_count(txt_record Nw_txt_record_t) uintptr
- func Nw_txt_record_is_dictionary(txt_record Nw_txt_record_t) bool
- func Nw_txt_record_is_equal(left Nw_txt_record_t, right Nw_txt_record_t) bool
- func Nw_txt_record_remove_key(txt_record Nw_txt_record_t, key string) bool
- func Nw_txt_record_set_key(txt_record Nw_txt_record_t, key string, value *uint8, value_len uintptr) bool
- func Nw_udp_options_set_prefer_no_checksum(options Nw_protocol_options_t, prefer_no_checksum bool)
- func Nw_ws_metadata_set_close_code(metadata Nw_protocol_metadata_t, close_code NwWsCloseCode)
- func Nw_ws_metadata_set_pong_handler(metadata Nw_protocol_metadata_t, client_queue dispatch.Queue, ...)
- func Nw_ws_options_add_additional_header(options Nw_protocol_options_t, name string, value string)
- func Nw_ws_options_add_subprotocol(options Nw_protocol_options_t, subprotocol string)
- func Nw_ws_options_set_auto_reply_ping(options Nw_protocol_options_t, auto_reply_ping bool)
- func Nw_ws_options_set_client_request_handler(options Nw_protocol_options_t, client_queue dispatch.Queue, ...)
- func Nw_ws_options_set_maximum_message_size(options Nw_protocol_options_t, maximum_message_size uintptr)
- func Nw_ws_options_set_skip_handshake(options Nw_protocol_options_t, skip_handshake bool)
- func Nw_ws_request_enumerate_additional_headers(request Nw_ws_request_t, enumerator Nw_ws_additional_header_enumerator_t) bool
- func Nw_ws_request_enumerate_subprotocols(request Nw_ws_request_t, enumerator Nw_ws_subprotocol_enumerator_t) bool
- func Nw_ws_response_add_additional_header(response Nw_ws_response_t, name string, value string)
- func Nw_ws_response_enumerate_additional_headers(response Nw_ws_response_t, enumerator Nw_ws_additional_header_enumerator_t) bool
- func Nw_ws_response_get_selected_subprotocol(response Nw_ws_response_t) *byte
- type NwBrowseResultChange
- type NwBrowserState
- type NwConnectionGroupState
- type NwConnectionState
- type NwDataTransferReportState
- type NwEndpointType
- type NwErrorDomain
- type NwEthernetChannelState
- type NwFramerStartResult
- type NwInterfaceRadioType
- type NwInterfaceType
- type NwIpEcnFlag
- type NwIpLocalAddressPreference
- type NwIpVersion
- type NwLinkQuality
- type NwListenerState
- type NwMultipathService
- type NwMultipathVersion
- type NwParametersExpiredDnsBehavior
- type NwPathStatus
- type NwPathUnsatisfiedReason
- type NwQuicStreamType
- type NwReportResolutionProtocol
- type NwReportResolutionSource
- type NwServiceClass
- type NwTxtRecordFindKey
- type NwWsCloseCode
- type NwWsOpcode
- type NwWsResponseStatus
- type NwWsVersion
- type Nw_advertise_descriptor_t
- type Nw_browse_descriptor_t
- type Nw_browse_result_change_t
- type Nw_browse_result_enumerate_interface_t
- type Nw_browse_result_t
- type Nw_browser_browse_results_changed_handler_t
- type Nw_browser_state_changed_handler_t
- type Nw_browser_t
- type Nw_connection_boolean_event_handler_t
- type Nw_connection_group_new_connection_handler_t
- type Nw_connection_group_receive_handler_t
- type Nw_connection_group_send_completion_t
- type Nw_connection_group_state_changed_handler_t
- type Nw_connection_group_t
- type Nw_connection_path_event_handler_t
- type Nw_connection_receive_completion_t
- type Nw_connection_send_completion_t
- type Nw_connection_state_changed_handler_t
- type Nw_connection_t
- func Nw_connection_create(endpoint Nw_endpoint_t, parameters Nw_parameters_t) Nw_connection_t
- func Nw_connection_group_extract_connection(group Nw_connection_group_t, endpoint Nw_endpoint_t, ...) Nw_connection_t
- func Nw_connection_group_extract_connection_for_message(group Nw_connection_group_t, context Nw_content_context_t) Nw_connection_t
- type Nw_content_context_t
- type Nw_data_transfer_report_collect_block_t
- type Nw_data_transfer_report_t
- type Nw_endpoint_t
- func Nw_browse_result_copy_endpoint(result Nw_browse_result_t) Nw_endpoint_t
- func Nw_connection_copy_endpoint(connection Nw_connection_t) Nw_endpoint_t
- func Nw_connection_group_copy_local_endpoint_for_message(group Nw_connection_group_t, context Nw_content_context_t) Nw_endpoint_t
- func Nw_connection_group_copy_remote_endpoint_for_message(group Nw_connection_group_t, context Nw_content_context_t) Nw_endpoint_t
- func Nw_endpoint_create_address(address uintptr) Nw_endpoint_t
- func Nw_endpoint_create_bonjour_service(name string, type_ string, domain string) Nw_endpoint_t
- func Nw_endpoint_create_host(hostname string, port string) Nw_endpoint_t
- func Nw_endpoint_create_url(url string) Nw_endpoint_t
- func Nw_establishment_report_copy_proxy_endpoint(report Nw_establishment_report_t) Nw_endpoint_t
- func Nw_framer_copy_local_endpoint(framer Nw_framer_t) Nw_endpoint_t
- func Nw_framer_copy_remote_endpoint(framer Nw_framer_t) Nw_endpoint_t
- func Nw_parameters_copy_local_endpoint(parameters Nw_parameters_t) Nw_endpoint_t
- func Nw_path_copy_effective_local_endpoint(path Nw_path_t) Nw_endpoint_t
- func Nw_path_copy_effective_remote_endpoint(path Nw_path_t) Nw_endpoint_t
- func Nw_resolution_report_copy_preferred_endpoint(resolution_report Nw_resolution_report_t) Nw_endpoint_t
- func Nw_resolution_report_copy_successful_endpoint(resolution_report Nw_resolution_report_t) Nw_endpoint_t
- type Nw_error_t
- type Nw_establishment_report_access_block_t
- type Nw_establishment_report_t
- type Nw_ethernet_address_t
- type Nw_ethernet_channel_receive_handler_t
- type Nw_ethernet_channel_send_completion_t
- type Nw_ethernet_channel_state_changed_handler_t
- type Nw_ethernet_channel_t
- type Nw_framer_block_t
- type Nw_framer_cleanup_handler_t
- type Nw_framer_input_handler_t
- type Nw_framer_message_dispose_value_t
- type Nw_framer_message_t
- type Nw_framer_output_handler_t
- type Nw_framer_parse_completion_t
- type Nw_framer_start_handler_t
- type Nw_framer_stop_handler_t
- type Nw_framer_t
- type Nw_framer_wakeup_handler_t
- type Nw_group_descriptor_enumerate_endpoints_block_t
- type Nw_group_descriptor_t
- type Nw_interface_t
- type Nw_listener_advertised_endpoint_changed_handler_t
- type Nw_listener_new_connection_group_handler_t
- type Nw_listener_new_connection_handler_t
- type Nw_listener_state_changed_handler_t
- type Nw_listener_t
- func Nw_listener_create(parameters Nw_parameters_t) Nw_listener_t
- func Nw_listener_create_with_connection(connection Nw_connection_t, parameters Nw_parameters_t) Nw_listener_t
- func Nw_listener_create_with_launchd_key(parameters Nw_parameters_t, launchd_key string) Nw_listener_t
- func Nw_listener_create_with_port(port string, parameters Nw_parameters_t) Nw_listener_t
- type Nw_object_t
- type Nw_parameters_attribution_t
- type Nw_parameters_configure_protocol_block_t
- type Nw_parameters_iterate_interface_types_block_t
- type Nw_parameters_iterate_interfaces_block_t
- type Nw_parameters_t
- func Nw_browser_copy_parameters(browser Nw_browser_t) Nw_parameters_t
- func Nw_connection_copy_parameters(connection Nw_connection_t) Nw_parameters_t
- func Nw_connection_group_copy_parameters(group Nw_connection_group_t) Nw_parameters_t
- func Nw_framer_copy_parameters(framer Nw_framer_t) Nw_parameters_t
- func Nw_parameters_copy(parameters Nw_parameters_t) Nw_parameters_t
- func Nw_parameters_create() Nw_parameters_t
- func Nw_parameters_create_application_service() Nw_parameters_t
- func Nw_parameters_create_custom_ip(custom_ip_protocol_number uint8, ...) Nw_parameters_t
- func Nw_parameters_create_quic(configure_quic Nw_parameters_configure_protocol_block_t) Nw_parameters_t
- func Nw_parameters_create_secure_tcp(configure_tls Nw_parameters_configure_protocol_block_t, ...) Nw_parameters_t
- func Nw_parameters_create_secure_udp(configure_dtls Nw_parameters_configure_protocol_block_t, ...) Nw_parameters_t
- type Nw_path_enumerate_gateways_block_t
- type Nw_path_enumerate_interfaces_block_t
- type Nw_path_monitor_cancel_handler_t
- type Nw_path_monitor_t
- type Nw_path_monitor_update_handler_t
- type Nw_path_t
- type Nw_privacy_context_t
- type Nw_protocol_definition_t
- func Nw_framer_create_definition(identifier string, flags uint32, start_handler Nw_framer_start_handler_t) Nw_protocol_definition_t
- func Nw_protocol_copy_ip_definition() Nw_protocol_definition_t
- func Nw_protocol_copy_quic_definition() Nw_protocol_definition_t
- func Nw_protocol_copy_tcp_definition() Nw_protocol_definition_t
- func Nw_protocol_copy_tls_definition() Nw_protocol_definition_t
- func Nw_protocol_copy_udp_definition() Nw_protocol_definition_t
- func Nw_protocol_copy_ws_definition() Nw_protocol_definition_t
- func Nw_protocol_metadata_copy_definition(metadata Nw_protocol_metadata_t) Nw_protocol_definition_t
- func Nw_protocol_options_copy_definition(options Nw_protocol_options_t) Nw_protocol_definition_t
- type Nw_protocol_metadata_t
- func Nw_connection_copy_protocol_metadata(connection Nw_connection_t, definition Nw_protocol_definition_t) Nw_protocol_metadata_t
- func Nw_connection_group_copy_protocol_metadata(group Nw_connection_group_t, definition Nw_protocol_definition_t) Nw_protocol_metadata_t
- func Nw_connection_group_copy_protocol_metadata_for_message(group Nw_connection_group_t, context Nw_content_context_t, ...) Nw_protocol_metadata_t
- func Nw_content_context_copy_protocol_metadata(context Nw_content_context_t, protocol_ Nw_protocol_definition_t) Nw_protocol_metadata_t
- func Nw_ip_create_metadata() Nw_protocol_metadata_t
- func Nw_udp_create_metadata() Nw_protocol_metadata_t
- func Nw_ws_create_metadata(opcode NwWsOpcode) Nw_protocol_metadata_t
- type Nw_protocol_options_t
- func Nw_framer_copy_options(framer Nw_framer_t) Nw_protocol_options_t
- func Nw_framer_create_options(framer_definition Nw_protocol_definition_t) Nw_protocol_options_t
- func Nw_protocol_stack_copy_internet_protocol(stack Nw_protocol_stack_t) Nw_protocol_options_t
- func Nw_protocol_stack_copy_transport_protocol(stack Nw_protocol_stack_t) Nw_protocol_options_t
- func Nw_quic_create_options() Nw_protocol_options_t
- func Nw_tcp_create_options() Nw_protocol_options_t
- func Nw_tls_create_options() Nw_protocol_options_t
- func Nw_udp_create_options() Nw_protocol_options_t
- func Nw_ws_create_options(version NwWsVersion) Nw_protocol_options_t
- type Nw_protocol_stack_iterate_protocols_block_t
- type Nw_protocol_stack_t
- type Nw_proxy_config_t
- func Nw_proxy_config_create_http_connect(proxy_endpoint Nw_endpoint_t, proxy_tls_options Nw_protocol_options_t) Nw_proxy_config_t
- func Nw_proxy_config_create_oblivious_http(relay Nw_relay_hop_t, relay_resource_path string, gateway_key_config *uint8, ...) Nw_proxy_config_t
- func Nw_proxy_config_create_relay(first_hop Nw_relay_hop_t, second_hop Nw_relay_hop_t) Nw_proxy_config_t
- func Nw_proxy_config_create_socksv5(proxy_endpoint Nw_endpoint_t) Nw_proxy_config_t
- type Nw_proxy_domain_enumerator_t
- type Nw_relay_hop_t
- type Nw_report_protocol_enumerator_t
- type Nw_report_resolution_enumerator_t
- type Nw_report_resolution_report_enumerator_t
- type Nw_resolution_report_t
- type Nw_resolver_config_t
- type Nw_txt_record_access_bytes_t
- type Nw_txt_record_access_key_t
- type Nw_txt_record_applier_t
- type Nw_txt_record_t
- func Nw_advertise_descriptor_copy_txt_record_object(advertise_descriptor Nw_advertise_descriptor_t) Nw_txt_record_t
- func Nw_browse_result_copy_txt_record_object(result Nw_browse_result_t) Nw_txt_record_t
- func Nw_endpoint_copy_txt_record(endpoint Nw_endpoint_t) Nw_txt_record_t
- func Nw_txt_record_copy(txt_record Nw_txt_record_t) Nw_txt_record_t
- func Nw_txt_record_create_dictionary() Nw_txt_record_t
- func Nw_txt_record_create_with_bytes(txt_bytes *uint8, txt_len uintptr) Nw_txt_record_t
- type Nw_ws_additional_header_enumerator_t
- type Nw_ws_client_request_handler_t
- type Nw_ws_pong_handler_t
- type Nw_ws_request_t
- type Nw_ws_response_t
- type Nw_ws_subprotocol_enumerator_t
- type OS_nw_advertise_descriptor
- type OS_nw_advertise_descriptorObject
- type OS_nw_browse_descriptor
- type OS_nw_browse_descriptorObject
- type OS_nw_browse_result
- type OS_nw_browse_resultObject
- type OS_nw_browser
- type OS_nw_browserObject
- type OS_nw_connection
- type OS_nw_connectionObject
- type OS_nw_connection_group
- type OS_nw_connection_groupObject
- type OS_nw_content_context
- type OS_nw_content_contextObject
- type OS_nw_data_transfer_report
- type OS_nw_data_transfer_reportObject
- type OS_nw_endpoint
- type OS_nw_endpointObject
- type OS_nw_error
- type OS_nw_errorObject
- type OS_nw_establishment_report
- type OS_nw_establishment_reportObject
- type OS_nw_ethernet_channel
- type OS_nw_ethernet_channelObject
- type OS_nw_framer
- type OS_nw_framerObject
- type OS_nw_group_descriptor
- type OS_nw_group_descriptorObject
- type OS_nw_interface
- type OS_nw_interfaceObject
- type OS_nw_listener
- type OS_nw_listenerObject
- type OS_nw_object
- type OS_nw_objectObject
- type OS_nw_parameters
- type OS_nw_parametersObject
- type OS_nw_path
- type OS_nw_pathObject
- type OS_nw_path_monitor
- type OS_nw_path_monitorObject
- type OS_nw_privacy_context
- type OS_nw_privacy_contextObject
- type OS_nw_protocol_definition
- type OS_nw_protocol_definitionObject
- type OS_nw_protocol_metadata
- type OS_nw_protocol_metadataObject
- type OS_nw_protocol_options
- type OS_nw_protocol_optionsObject
- type OS_nw_protocol_stack
- type OS_nw_protocol_stackObject
- type OS_nw_proxy_config
- type OS_nw_proxy_configObject
- type OS_nw_relay_hop
- type OS_nw_relay_hopObject
- type OS_nw_resolution_report
- type OS_nw_resolution_reportObject
- type OS_nw_resolver_config
- type OS_nw_resolver_configObject
- type OS_nw_txt_record
- type OS_nw_txt_recordObject
- type OS_nw_ws_request
- type OS_nw_ws_requestObject
- type OS_nw_ws_response
- type OS_nw_ws_responseObject
Constants ¶
This section is empty.
Variables ¶
var ( // KNWErrorDomainDNS is a DNS error encountered in resolving, browsing, or advertising. // // See: https://developer.apple.com/documentation/Network/kNWErrorDomainDNS KNWErrorDomainDNS string // KNWErrorDomainPOSIX is a POSIX error, which is used for most network protocol and routing errors. // // See: https://developer.apple.com/documentation/Network/kNWErrorDomainPOSIX KNWErrorDomainPOSIX string // KNWErrorDomainTLS is a TLS error reported by a TLS connection or listener. // // See: https://developer.apple.com/documentation/Network/kNWErrorDomainTLS KNWErrorDomainTLS string // See: https://developer.apple.com/documentation/Network/kNWErrorDomainWiFiAware KNWErrorDomainWiFiAware string )
Functions ¶
func Nw_advertise_descriptor_get_application_service_name ¶
func Nw_advertise_descriptor_get_application_service_name(advertise_descriptor Nw_advertise_descriptor_t) *byte
Nw_advertise_descriptor_get_application_service_name.
func Nw_advertise_descriptor_get_no_auto_rename ¶
func Nw_advertise_descriptor_get_no_auto_rename(advertise_descriptor Nw_advertise_descriptor_t) bool
Nw_advertise_descriptor_get_no_auto_rename 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 Nw_advertise_descriptor_set_no_auto_rename ¶
func Nw_advertise_descriptor_set_no_auto_rename(advertise_descriptor Nw_advertise_descriptor_t, no_auto_rename bool)
Nw_advertise_descriptor_set_no_auto_rename 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 Nw_advertise_descriptor_set_txt_record ¶
func Nw_advertise_descriptor_set_txt_record(advertise_descriptor Nw_advertise_descriptor_t, txt_record unsafe.Pointer, txt_length uintptr)
Nw_advertise_descriptor_set_txt_record 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 Nw_advertise_descriptor_set_txt_record_object ¶
func Nw_advertise_descriptor_set_txt_record_object(advertise_descriptor Nw_advertise_descriptor_t, txt_record Nw_txt_record_t)
Nw_advertise_descriptor_set_txt_record_object sets the TXT record to advertise with the service.
func Nw_browse_descriptor_get_application_service_name ¶
func Nw_browse_descriptor_get_application_service_name(descriptor Nw_browse_descriptor_t) *byte
Nw_browse_descriptor_get_application_service_name.
func Nw_browse_descriptor_get_bonjour_service_domain ¶
func Nw_browse_descriptor_get_bonjour_service_domain(descriptor Nw_browse_descriptor_t) *byte
Nw_browse_descriptor_get_bonjour_service_domain accesses the Bonjour service domain set on a browse descriptor.
func Nw_browse_descriptor_get_bonjour_service_type ¶
func Nw_browse_descriptor_get_bonjour_service_type(descriptor Nw_browse_descriptor_t) *byte
Nw_browse_descriptor_get_bonjour_service_type 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 Nw_browse_descriptor_get_include_txt_record ¶
func Nw_browse_descriptor_get_include_txt_record(descriptor Nw_browse_descriptor_t) bool
Nw_browse_descriptor_get_include_txt_record 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 Nw_browse_descriptor_set_include_txt_record ¶
func Nw_browse_descriptor_set_include_txt_record(descriptor Nw_browse_descriptor_t, include_txt_record bool)
Nw_browse_descriptor_set_include_txt_record 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 Nw_browse_result_enumerate_interfaces ¶
func Nw_browse_result_enumerate_interfaces(result Nw_browse_result_t, enumerator Nw_browse_result_enumerate_interface_t)
Nw_browse_result_enumerate_interfaces enumerates the list of interfaces on which the service was discovered.
See: https://developer.apple.com/documentation/Network/nw_browse_result_enumerate_interfaces(_:_:)
func Nw_browse_result_get_interfaces_count ¶
func Nw_browse_result_get_interfaces_count(result Nw_browse_result_t) uintptr
Nw_browse_result_get_interfaces_count accesses the number of interfaces associated with a discovered service.
See: https://developer.apple.com/documentation/Network/nw_browse_result_get_interfaces_count(_:)
func Nw_browser_cancel ¶
func Nw_browser_cancel(browser Nw_browser_t)
Nw_browser_cancel stops browsing for services.
See: https://developer.apple.com/documentation/Network/nw_browser_cancel(_:)
func Nw_browser_set_browse_results_changed_handler ¶
func Nw_browser_set_browse_results_changed_handler(browser Nw_browser_t, handler Nw_browser_browse_results_changed_handler_t)
Nw_browser_set_browse_results_changed_handler sets the handler to receive updates about discovered services.
func Nw_browser_set_queue ¶
func Nw_browser_set_queue(browser Nw_browser_t, queue dispatch.Queue)
Nw_browser_set_queue sets the queue on which all browser events will be delivered.
See: https://developer.apple.com/documentation/Network/nw_browser_set_queue(_:_:)
func Nw_browser_set_state_changed_handler ¶
func Nw_browser_set_state_changed_handler(browser Nw_browser_t, state_changed_handler Nw_browser_state_changed_handler_t)
Nw_browser_set_state_changed_handler sets a handler to receive browser state updates.
See: https://developer.apple.com/documentation/Network/nw_browser_set_state_changed_handler(_:_:)
func Nw_browser_start ¶
func Nw_browser_start(browser Nw_browser_t)
Nw_browser_start starts browsing for services.
See: https://developer.apple.com/documentation/Network/nw_browser_start(_:)
func Nw_connection_access_establishment_report ¶
func Nw_connection_access_establishment_report(connection Nw_connection_t, queue dispatch.Queue, access_block Nw_establishment_report_access_block_t)
Nw_connection_access_establishment_report 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 Nw_connection_batch ¶
func Nw_connection_batch(connection Nw_connection_t, batch_block unsafe.Pointer)
Nw_connection_batch 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 Nw_connection_cancel ¶
func Nw_connection_cancel(connection Nw_connection_t)
Nw_connection_cancel cancels the connection and gracefully disconnects any established network protocols.
See: https://developer.apple.com/documentation/Network/nw_connection_cancel(_:)
func Nw_connection_cancel_current_endpoint ¶
func Nw_connection_cancel_current_endpoint(connection Nw_connection_t)
Nw_connection_cancel_current_endpoint 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 Nw_connection_copy_description ¶
func Nw_connection_copy_description(connection Nw_connection_t) *byte
Nw_connection_copy_description copies the description of the connection as a string.
See: https://developer.apple.com/documentation/Network/nw_connection_copy_description(_:)
func Nw_connection_force_cancel ¶
func Nw_connection_force_cancel(connection Nw_connection_t)
Nw_connection_force_cancel cancels the connection and immediately disconnects any established network protocols.
See: https://developer.apple.com/documentation/Network/nw_connection_force_cancel(_:)
func Nw_connection_get_maximum_datagram_size ¶
func Nw_connection_get_maximum_datagram_size(connection Nw_connection_t) uint32
Nw_connection_get_maximum_datagram_size 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 Nw_connection_group_cancel ¶
func Nw_connection_group_cancel(group Nw_connection_group_t)
Nw_connection_group_cancel cancels the connection group object and leaves the network group.
See: https://developer.apple.com/documentation/Network/nw_connection_group_cancel(_:)
func Nw_connection_group_reinsert_extracted_connection ¶
func Nw_connection_group_reinsert_extracted_connection(group Nw_connection_group_t, connection Nw_connection_t) bool
Nw_connection_group_reinsert_extracted_connection.
func Nw_connection_group_reply ¶
func Nw_connection_group_reply(group Nw_connection_group_t, inbound_message Nw_content_context_t, outbound_message Nw_content_context_t, content dispatch.Data)
Nw_connection_group_reply 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 Nw_connection_group_send_message ¶
func Nw_connection_group_send_message(group Nw_connection_group_t, content dispatch.Data, endpoint Nw_endpoint_t, context Nw_content_context_t, completion Nw_connection_group_send_completion_t)
Nw_connection_group_send_message 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 Nw_connection_group_set_new_connection_handler ¶
func Nw_connection_group_set_new_connection_handler(group Nw_connection_group_t, new_connection_handler Nw_connection_group_new_connection_handler_t)
Nw_connection_group_set_new_connection_handler.
func Nw_connection_group_set_queue ¶
func Nw_connection_group_set_queue(group Nw_connection_group_t, queue dispatch.Queue)
Nw_connection_group_set_queue sets the queue on which you handle connection group events.
See: https://developer.apple.com/documentation/Network/nw_connection_group_set_queue(_:_:)
func Nw_connection_group_set_receive_handler ¶
func Nw_connection_group_set_receive_handler(group Nw_connection_group_t, maximum_message_size uint32, reject_oversized_messages bool, receive_handler Nw_connection_group_receive_handler_t)
Nw_connection_group_set_receive_handler 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 Nw_connection_group_set_state_changed_handler ¶
func Nw_connection_group_set_state_changed_handler(group Nw_connection_group_t, state_changed_handler Nw_connection_group_state_changed_handler_t)
Nw_connection_group_set_state_changed_handler sets a handler that receives connection group state updates.
func Nw_connection_group_start ¶
func Nw_connection_group_start(group Nw_connection_group_t)
Nw_connection_group_start joins the group and registers to receive messages.
See: https://developer.apple.com/documentation/Network/nw_connection_group_start(_:)
func Nw_connection_receive ¶
func Nw_connection_receive(connection Nw_connection_t, minimum_incomplete_length uint32, maximum_length uint32, completion Nw_connection_receive_completion_t)
Nw_connection_receive 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 Nw_connection_receive_message ¶
func Nw_connection_receive_message(connection Nw_connection_t, completion Nw_connection_receive_completion_t)
Nw_connection_receive_message 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 Nw_connection_restart ¶
func Nw_connection_restart(connection Nw_connection_t)
Nw_connection_restart restarts a connection that is in the waiting state.
See: https://developer.apple.com/documentation/Network/nw_connection_restart(_:)
func Nw_connection_send ¶
func Nw_connection_send(connection Nw_connection_t, content dispatch.Data, context Nw_content_context_t, is_complete bool, completion Nw_connection_send_completion_t)
Nw_connection_send sends data on a connection.
See: https://developer.apple.com/documentation/Network/nw_connection_send(_:_:_:_:_:)
func Nw_connection_set_better_path_available_handler ¶
func Nw_connection_set_better_path_available_handler(connection Nw_connection_t, handler Nw_connection_boolean_event_handler_t)
Nw_connection_set_better_path_available_handler sets a handler that receives updates when an alternative network path is preferred over the current path.
func Nw_connection_set_path_changed_handler ¶
func Nw_connection_set_path_changed_handler(connection Nw_connection_t, handler Nw_connection_path_event_handler_t)
Nw_connection_set_path_changed_handler sets a handler that receives network path updates.
See: https://developer.apple.com/documentation/Network/nw_connection_set_path_changed_handler(_:_:)
func Nw_connection_set_queue ¶
func Nw_connection_set_queue(connection Nw_connection_t, queue dispatch.Queue)
Nw_connection_set_queue sets the queue on which all connection events are delivered.
See: https://developer.apple.com/documentation/Network/nw_connection_set_queue(_:_:)
func Nw_connection_set_state_changed_handler ¶
func Nw_connection_set_state_changed_handler(connection Nw_connection_t, handler Nw_connection_state_changed_handler_t)
Nw_connection_set_state_changed_handler sets a handler to receive connection state updates.
See: https://developer.apple.com/documentation/Network/nw_connection_set_state_changed_handler(_:_:)
func Nw_connection_set_viability_changed_handler ¶
func Nw_connection_set_viability_changed_handler(connection Nw_connection_t, handler Nw_connection_boolean_event_handler_t)
Nw_connection_set_viability_changed_handler 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 Nw_connection_start ¶
func Nw_connection_start(connection Nw_connection_t)
Nw_connection_start starts establishing a connection.
See: https://developer.apple.com/documentation/Network/nw_connection_start(_:)
func Nw_content_context_foreach_protocol_metadata ¶
func Nw_content_context_foreach_protocol_metadata(context Nw_content_context_t)
Nw_content_context_foreach_protocol_metadata iterates through all protocol metadata associated with the message context.
See: https://developer.apple.com/documentation/Network/nw_content_context_foreach_protocol_metadata(_:_:)
func Nw_content_context_get_expiration_milliseconds ¶
func Nw_content_context_get_expiration_milliseconds(context Nw_content_context_t) uint64
Nw_content_context_get_expiration_milliseconds accesses the expiration set for this message context.
See: https://developer.apple.com/documentation/Network/nw_content_context_get_expiration_milliseconds(_:)
func Nw_content_context_get_identifier ¶
func Nw_content_context_get_identifier(context Nw_content_context_t) *byte
Nw_content_context_get_identifier accesses the identifier used to create this message context.
See: https://developer.apple.com/documentation/Network/nw_content_context_get_identifier(_:)
func Nw_content_context_get_is_final ¶
func Nw_content_context_get_is_final(context Nw_content_context_t) bool
Nw_content_context_get_is_final checks whether this context represents the final message being received.
See: https://developer.apple.com/documentation/Network/nw_content_context_get_is_final(_:)
func Nw_content_context_get_relative_priority ¶
func Nw_content_context_get_relative_priority(context Nw_content_context_t) float64
Nw_content_context_get_relative_priority 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 Nw_content_context_set_antecedent ¶
func Nw_content_context_set_antecedent(context Nw_content_context_t, antecedent_context Nw_content_context_t)
Nw_content_context_set_antecedent 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 Nw_content_context_set_expiration_milliseconds ¶
func Nw_content_context_set_expiration_milliseconds(context Nw_content_context_t, expiration_milliseconds uint64)
Nw_content_context_set_expiration_milliseconds sets the number of milliseconds after which sending the data associated with this context must begin, otherwise the data is discarded.
func Nw_content_context_set_is_final ¶
func Nw_content_context_set_is_final(context Nw_content_context_t, is_final bool)
Nw_content_context_set_is_final 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 Nw_content_context_set_metadata_for_protocol ¶
func Nw_content_context_set_metadata_for_protocol(context Nw_content_context_t, protocol_metadata Nw_protocol_metadata_t)
Nw_content_context_set_metadata_for_protocol 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 Nw_content_context_set_relative_priority ¶
func Nw_content_context_set_relative_priority(context Nw_content_context_t, relative_priority float64)
Nw_content_context_set_relative_priority 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 Nw_data_transfer_report_collect ¶
func Nw_data_transfer_report_collect(report Nw_data_transfer_report_t, queue dispatch.Queue, collect_block Nw_data_transfer_report_collect_block_t)
Nw_data_transfer_report_collect stops an outstanding data transfer report and calculates the results.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_collect(_:_:_:)
func Nw_data_transfer_report_get_duration_milliseconds ¶
func Nw_data_transfer_report_get_duration_milliseconds(report Nw_data_transfer_report_t) uint64
Nw_data_transfer_report_get_duration_milliseconds checks the duration of the data transfer report, from when it was started to when it was collected.
func Nw_data_transfer_report_get_path_count ¶
func Nw_data_transfer_report_get_path_count(report Nw_data_transfer_report_t) uint32
Nw_data_transfer_report_get_path_count checks the number of valid paths in the report.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_path_count(_:)
func Nw_data_transfer_report_get_received_application_byte_count ¶
func Nw_data_transfer_report_get_received_application_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_received_application_byte_count accesses the number of bytes the connection delivered.
func Nw_data_transfer_report_get_received_ip_packet_count ¶
func Nw_data_transfer_report_get_received_ip_packet_count(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_received_ip_packet_count accesses the number of IP packets the connection received.
func Nw_data_transfer_report_get_received_transport_byte_count ¶
func Nw_data_transfer_report_get_received_transport_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_received_transport_byte_count accesses the number of bytes the transport protocol delivered.
func Nw_data_transfer_report_get_received_transport_duplicate_byte_count ¶
func Nw_data_transfer_report_get_received_transport_duplicate_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_received_transport_duplicate_byte_count accesses the number of duplicated bytes the transport protocol detected.
func Nw_data_transfer_report_get_received_transport_out_of_order_byte_count ¶
func Nw_data_transfer_report_get_received_transport_out_of_order_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_received_transport_out_of_order_byte_count accesses the number of bytes the transport protocol received out of order.
func Nw_data_transfer_report_get_sent_application_byte_count ¶
func Nw_data_transfer_report_get_sent_application_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_sent_application_byte_count accesses the number of bytes sent on the connection.
func Nw_data_transfer_report_get_sent_ip_packet_count ¶
func Nw_data_transfer_report_get_sent_ip_packet_count(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_sent_ip_packet_count accesses the number of IP packets the connection sent.
func Nw_data_transfer_report_get_sent_transport_byte_count ¶
func Nw_data_transfer_report_get_sent_transport_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_sent_transport_byte_count accesses the number of bytes sent into the transport protocol.
func Nw_data_transfer_report_get_sent_transport_retransmitted_byte_count ¶
func Nw_data_transfer_report_get_sent_transport_retransmitted_byte_count(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_sent_transport_retransmitted_byte_count accesses the number of bytes the transport protocol retransmitted.
func Nw_data_transfer_report_get_transport_minimum_rtt_milliseconds ¶
func Nw_data_transfer_report_get_transport_minimum_rtt_milliseconds(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_transport_minimum_rtt_milliseconds accesses the minimum round-trip time the transport protocol measured, in milliseconds.
func Nw_data_transfer_report_get_transport_rtt_variance ¶
func Nw_data_transfer_report_get_transport_rtt_variance(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_transport_rtt_variance accesses the variance of the round-trip time the transport protocol measured.
func Nw_data_transfer_report_get_transport_smoothed_rtt_milliseconds ¶
func Nw_data_transfer_report_get_transport_smoothed_rtt_milliseconds(report Nw_data_transfer_report_t, path_index uint32) uint64
Nw_data_transfer_report_get_transport_smoothed_rtt_milliseconds accesses the smoothed round-trip time the transport protocol measured, in milliseconds.
func Nw_endpoint_copy_address_string ¶
func Nw_endpoint_copy_address_string(endpoint Nw_endpoint_t) *byte
Nw_endpoint_copy_address_string copies the address of an endpoint as a string.
See: https://developer.apple.com/documentation/Network/nw_endpoint_copy_address_string(_:)
func Nw_endpoint_copy_port_string ¶
func Nw_endpoint_copy_port_string(endpoint Nw_endpoint_t) *byte
Nw_endpoint_copy_port_string copies the port of an endpoint as a string.
See: https://developer.apple.com/documentation/Network/nw_endpoint_copy_port_string(_:)
func Nw_endpoint_get_address ¶
func Nw_endpoint_get_address(endpoint Nw_endpoint_t) objectivec.IObject
Nw_endpoint_get_address accesses the address structure stored in an address endpoint.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_address(_:)
func Nw_endpoint_get_bonjour_service_domain ¶
func Nw_endpoint_get_bonjour_service_domain(endpoint Nw_endpoint_t) *byte
Nw_endpoint_get_bonjour_service_domain accesses the Bonjour service domain stored in an endpoint.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_bonjour_service_domain(_:)
func Nw_endpoint_get_bonjour_service_name ¶
func Nw_endpoint_get_bonjour_service_name(endpoint Nw_endpoint_t) *byte
Nw_endpoint_get_bonjour_service_name accesses the Bonjour service name stored in an endpoint.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_bonjour_service_name(_:)
func Nw_endpoint_get_bonjour_service_type ¶
func Nw_endpoint_get_bonjour_service_type(endpoint Nw_endpoint_t) *byte
Nw_endpoint_get_bonjour_service_type accesses the Bonjour service type stored in an endpoint.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_bonjour_service_type(_:)
func Nw_endpoint_get_hostname ¶
func Nw_endpoint_get_hostname(endpoint Nw_endpoint_t) *byte
Nw_endpoint_get_hostname accesses the hostname stored in an endpoint.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_hostname(_:)
func Nw_endpoint_get_port ¶
func Nw_endpoint_get_port(endpoint Nw_endpoint_t) uint16
Nw_endpoint_get_port accesses the port stored in an endpoint, in host-byte order.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_port(_:)
func Nw_endpoint_get_signature ¶
func Nw_endpoint_get_signature(endpoint Nw_endpoint_t, out_signature_length *uintptr) *uint8
Nw_endpoint_get_signature.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_signature(_:_:)
func Nw_endpoint_get_url ¶
func Nw_endpoint_get_url(endpoint Nw_endpoint_t) *byte
Nw_endpoint_get_url accesses the URL string stored in an endpoint.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_url(_:)
func Nw_error_copy_cf_error ¶
func Nw_error_copy_cf_error(err Nw_error_t) corefoundation.CFErrorRef
Nw_error_copy_cf_error returns a copy of a network error.
See: https://developer.apple.com/documentation/Network/nw_error_copy_cf_error(_:)
func Nw_error_get_error_code ¶
func Nw_error_get_error_code(err Nw_error_t) int
Nw_error_get_error_code accesses the specific code of the network error.
See: https://developer.apple.com/documentation/Network/nw_error_get_error_code(_:)
func Nw_establishment_report_enumerate_protocols ¶
func Nw_establishment_report_enumerate_protocols(report Nw_establishment_report_t, enumerate_block Nw_report_protocol_enumerator_t)
Nw_establishment_report_enumerate_protocols 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 Nw_establishment_report_enumerate_resolution_reports ¶
func Nw_establishment_report_enumerate_resolution_reports(report Nw_establishment_report_t, enumerate_block Nw_report_resolution_report_enumerator_t)
Nw_establishment_report_enumerate_resolution_reports.
func Nw_establishment_report_enumerate_resolutions ¶
func Nw_establishment_report_enumerate_resolutions(report Nw_establishment_report_t, enumerate_block Nw_report_resolution_enumerator_t)
Nw_establishment_report_enumerate_resolutions iterates a list of resolution steps performed during connection establishment, in order from first resolved to last resolved.
func Nw_establishment_report_get_attempt_started_after_milliseconds ¶
func Nw_establishment_report_get_attempt_started_after_milliseconds(report Nw_establishment_report_t) uint64
Nw_establishment_report_get_attempt_started_after_milliseconds accesses the time between the call to start and the beginning of the successful connection attempt, in milliseconds.
func Nw_establishment_report_get_duration_milliseconds ¶
func Nw_establishment_report_get_duration_milliseconds(report Nw_establishment_report_t) uint64
Nw_establishment_report_get_duration_milliseconds checks the total duration of the successful connection establishment attempt, from the preparing state to the ready state.
func Nw_establishment_report_get_previous_attempt_count ¶
func Nw_establishment_report_get_previous_attempt_count(report Nw_establishment_report_t) uint32
Nw_establishment_report_get_previous_attempt_count checks the number of attempts made before the successful attempt, when the connection moved from the preparing state back to the waiting state.
func Nw_establishment_report_get_proxy_configured ¶
func Nw_establishment_report_get_proxy_configured(report Nw_establishment_report_t) bool
Nw_establishment_report_get_proxy_configured checks whether a proxy was configured on the connection.
See: https://developer.apple.com/documentation/Network/nw_establishment_report_get_proxy_configured(_:)
func Nw_establishment_report_get_used_proxy ¶
func Nw_establishment_report_get_used_proxy(report Nw_establishment_report_t) bool
Nw_establishment_report_get_used_proxy checks whether the connection used a proxy.
See: https://developer.apple.com/documentation/Network/nw_establishment_report_get_used_proxy(_:)
func Nw_ethernet_channel_cancel ¶
func Nw_ethernet_channel_cancel(ethernet_channel Nw_ethernet_channel_t)
Nw_ethernet_channel_cancel unregisters the channel from the interface.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_cancel(_:)
func Nw_ethernet_channel_get_maximum_payload_size ¶
func Nw_ethernet_channel_get_maximum_payload_size(ethernet_channel Nw_ethernet_channel_t) uint32
Nw_ethernet_channel_get_maximum_payload_size.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_get_maximum_payload_size(_:)
func Nw_ethernet_channel_send ¶
func Nw_ethernet_channel_send(ethernet_channel Nw_ethernet_channel_t, content dispatch.Data, vlan_tag uint16, remote_address Nw_ethernet_address_t, completion Nw_ethernet_channel_send_completion_t)
Nw_ethernet_channel_send 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 Nw_ethernet_channel_set_queue ¶
func Nw_ethernet_channel_set_queue(ethernet_channel Nw_ethernet_channel_t, queue dispatch.Queue)
Nw_ethernet_channel_set_queue sets the queue on which all channel events are delivered.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_set_queue(_:_:)
func Nw_ethernet_channel_set_receive_handler ¶
func Nw_ethernet_channel_set_receive_handler(ethernet_channel Nw_ethernet_channel_t, handler Nw_ethernet_channel_receive_handler_t)
Nw_ethernet_channel_set_receive_handler sets a handler to receive inbound Ethernet frames.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_set_receive_handler(_:_:)
func Nw_ethernet_channel_set_state_changed_handler ¶
func Nw_ethernet_channel_set_state_changed_handler(ethernet_channel Nw_ethernet_channel_t, handler Nw_ethernet_channel_state_changed_handler_t)
Nw_ethernet_channel_set_state_changed_handler sets a handler to receive channel state updates.
func Nw_ethernet_channel_start ¶
func Nw_ethernet_channel_start(ethernet_channel Nw_ethernet_channel_t)
Nw_ethernet_channel_start starts the process of registering the channel.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_start(_:)
func Nw_framer_async ¶
func Nw_framer_async(framer Nw_framer_t, async_block Nw_framer_block_t)
Nw_framer_async requests that a block be executed on the connection’s internal scheduling context.
See: https://developer.apple.com/documentation/Network/nw_framer_async(_:_:)
func Nw_framer_deliver_input ¶
func Nw_framer_deliver_input(framer Nw_framer_t, input_buffer *uint8, input_length uintptr, message Nw_framer_message_t, is_complete bool)
Nw_framer_deliver_input 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 Nw_framer_deliver_input_no_copy ¶
func Nw_framer_deliver_input_no_copy(framer Nw_framer_t, input_length uintptr, message Nw_framer_message_t, is_complete bool) bool
Nw_framer_deliver_input_no_copy 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 Nw_framer_mark_failed_with_error ¶
func Nw_framer_mark_failed_with_error(framer Nw_framer_t, error_code int)
Nw_framer_mark_failed_with_error 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 Nw_framer_mark_ready ¶
func Nw_framer_mark_ready(framer Nw_framer_t)
Nw_framer_mark_ready indicates to a connection that your protocol’s handshake is complete.
See: https://developer.apple.com/documentation/Network/nw_framer_mark_ready(_:)
func Nw_framer_message_access_value ¶
func Nw_framer_message_access_value(message Nw_framer_message_t, key string, access_value bool) bool
Nw_framer_message_access_value accesses a custom value stored in a framer message.
See: https://developer.apple.com/documentation/Network/nw_framer_message_access_value(_:_:_:)
func Nw_framer_message_copy_object_value ¶
func Nw_framer_message_copy_object_value(message Nw_framer_message_t, key string) objectivec.Object
Nw_framer_message_copy_object_value accesses an NSObject value stored in a framer message.
See: https://developer.apple.com/documentation/Network/nw_framer_message_copy_object_value(_:_:)
func Nw_framer_message_set_object_value ¶
func Nw_framer_message_set_object_value(message Nw_framer_message_t, key string, value objectivec.Object)
Nw_framer_message_set_object_value 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 Nw_framer_message_set_value ¶
func Nw_framer_message_set_value(message Nw_framer_message_t, key string, value unsafe.Pointer, dispose_value Nw_framer_message_dispose_value_t)
Nw_framer_message_set_value 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 Nw_framer_options_copy_object_value ¶
func Nw_framer_options_copy_object_value(options Nw_protocol_options_t, key string) objectivec.Object
Nw_framer_options_copy_object_value.
See: https://developer.apple.com/documentation/Network/nw_framer_options_copy_object_value(_:_:)
func Nw_framer_options_set_object_value ¶
func Nw_framer_options_set_object_value(options Nw_protocol_options_t, key string, value objectivec.Object)
Nw_framer_options_set_object_value.
See: https://developer.apple.com/documentation/Network/nw_framer_options_set_object_value(_:_:_:)
func Nw_framer_parse_input ¶
func Nw_framer_parse_input(framer Nw_framer_t, minimum_incomplete_length uintptr, maximum_length uintptr, temp_buffer *uint8, parse Nw_framer_parse_completion_t) bool
Nw_framer_parse_input examines the content of input data while inside your input handler block.
See: https://developer.apple.com/documentation/Network/nw_framer_parse_input(_:_:_:_:_:)
func Nw_framer_parse_output ¶
func Nw_framer_parse_output(framer Nw_framer_t, minimum_incomplete_length uintptr, maximum_length uintptr, temp_buffer *uint8, parse Nw_framer_parse_completion_t) bool
Nw_framer_parse_output examines the content of output data while inside your output handler.
See: https://developer.apple.com/documentation/Network/nw_framer_parse_output(_:_:_:_:_:)
func Nw_framer_pass_through_input ¶
func Nw_framer_pass_through_input(framer Nw_framer_t)
Nw_framer_pass_through_input indicates that your protocol no longer needs to handle input data.
See: https://developer.apple.com/documentation/Network/nw_framer_pass_through_input(_:)
func Nw_framer_pass_through_output ¶
func Nw_framer_pass_through_output(framer Nw_framer_t)
Nw_framer_pass_through_output indicates that your protocol no longer needs to handle output data.
See: https://developer.apple.com/documentation/Network/nw_framer_pass_through_output(_:)
func Nw_framer_prepend_application_protocol ¶
func Nw_framer_prepend_application_protocol(framer Nw_framer_t, protocol_options Nw_protocol_options_t) bool
Nw_framer_prepend_application_protocol 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 Nw_framer_schedule_wakeup ¶
func Nw_framer_schedule_wakeup(framer Nw_framer_t, milliseconds uint64)
Nw_framer_schedule_wakeup 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 Nw_framer_set_cleanup_handler ¶
func Nw_framer_set_cleanup_handler(framer Nw_framer_t, cleanup_handler Nw_framer_cleanup_handler_t)
Nw_framer_set_cleanup_handler 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 Nw_framer_set_input_handler ¶
func Nw_framer_set_input_handler(framer Nw_framer_t, input_handler Nw_framer_input_handler_t)
Nw_framer_set_input_handler sets a block to handle new inbound data.
See: https://developer.apple.com/documentation/Network/nw_framer_set_input_handler(_:_:)
func Nw_framer_set_output_handler ¶
func Nw_framer_set_output_handler(framer Nw_framer_t, output_handler Nw_framer_output_handler_t)
Nw_framer_set_output_handler sets a block to handle new outbound messages.
See: https://developer.apple.com/documentation/Network/nw_framer_set_output_handler(_:_:)
func Nw_framer_set_stop_handler ¶
func Nw_framer_set_stop_handler(framer Nw_framer_t, stop_handler Nw_framer_stop_handler_t)
Nw_framer_set_stop_handler sets a block to handle when the connection is being closed.
See: https://developer.apple.com/documentation/Network/nw_framer_set_stop_handler(_:_:)
func Nw_framer_set_wakeup_handler ¶
func Nw_framer_set_wakeup_handler(framer Nw_framer_t, wakeup_handler Nw_framer_wakeup_handler_t)
Nw_framer_set_wakeup_handler sets a handler to receive scheduled wakeup events.
See: https://developer.apple.com/documentation/Network/nw_framer_set_wakeup_handler(_:_:)
func Nw_framer_write_output ¶
func Nw_framer_write_output(framer Nw_framer_t, output_buffer *uint8, output_length uintptr)
Nw_framer_write_output 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 Nw_framer_write_output_data ¶
func Nw_framer_write_output_data(framer Nw_framer_t, output_data dispatch.Data)
Nw_framer_write_output_data sends arbitrary output data from your protocol to the next protocol.
See: https://developer.apple.com/documentation/Network/nw_framer_write_output_data(_:_:)
func Nw_framer_write_output_no_copy ¶
func Nw_framer_write_output_no_copy(framer Nw_framer_t, output_length uintptr) bool
Nw_framer_write_output_no_copy 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 Nw_group_descriptor_add_endpoint ¶
func Nw_group_descriptor_add_endpoint(descriptor Nw_group_descriptor_t, endpoint Nw_endpoint_t) bool
Nw_group_descriptor_add_endpoint 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 Nw_group_descriptor_enumerate_endpoints ¶
func Nw_group_descriptor_enumerate_endpoints(descriptor Nw_group_descriptor_t, enumerate_block Nw_group_descriptor_enumerate_endpoints_block_t)
Nw_group_descriptor_enumerate_endpoints 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 Nw_interface_get_index ¶
func Nw_interface_get_index(interface_ Nw_interface_t) uint32
Nw_interface_get_index accesses the system interface index associated with the interface.
See: https://developer.apple.com/documentation/Network/nw_interface_get_index(_:)
func Nw_interface_get_name ¶
func Nw_interface_get_name(interface_ Nw_interface_t) *byte
Nw_interface_get_name accesses the name of the interface.
See: https://developer.apple.com/documentation/Network/nw_interface_get_name(_:)
func Nw_ip_metadata_get_receive_time ¶
func Nw_ip_metadata_get_receive_time(metadata Nw_protocol_metadata_t) uint64
Nw_ip_metadata_get_receive_time 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 Nw_ip_metadata_set_ecn_flag ¶
func Nw_ip_metadata_set_ecn_flag(metadata Nw_protocol_metadata_t, ecn_flag NwIpEcnFlag)
Nw_ip_metadata_set_ecn_flag 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 Nw_ip_metadata_set_service_class ¶
func Nw_ip_metadata_set_service_class(metadata Nw_protocol_metadata_t, service_class NwServiceClass)
Nw_ip_metadata_set_service_class 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 Nw_ip_options_set_calculate_receive_time ¶
func Nw_ip_options_set_calculate_receive_time(options Nw_protocol_options_t, calculate_receive_time bool)
Nw_ip_options_set_calculate_receive_time 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 Nw_ip_options_set_disable_fragmentation ¶
func Nw_ip_options_set_disable_fragmentation(options Nw_protocol_options_t, disable_fragmentation bool)
Nw_ip_options_set_disable_fragmentation configures a connection to disable fragmentation on outbound packets.
See: https://developer.apple.com/documentation/Network/nw_ip_options_set_disable_fragmentation(_:_:)
func Nw_ip_options_set_disable_multicast_loopback ¶
func Nw_ip_options_set_disable_multicast_loopback(options Nw_protocol_options_t, disable_multicast_loopback bool)
Nw_ip_options_set_disable_multicast_loopback.
See: https://developer.apple.com/documentation/Network/nw_ip_options_set_disable_multicast_loopback(_:_:)
func Nw_ip_options_set_hop_limit ¶
func Nw_ip_options_set_hop_limit(options Nw_protocol_options_t, hop_limit uint8)
Nw_ip_options_set_hop_limit 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 Nw_ip_options_set_local_address_preference ¶
func Nw_ip_options_set_local_address_preference(options Nw_protocol_options_t, preference NwIpLocalAddressPreference)
Nw_ip_options_set_local_address_preference 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 Nw_ip_options_set_use_minimum_mtu ¶
func Nw_ip_options_set_use_minimum_mtu(options Nw_protocol_options_t, use_minimum_mtu bool)
Nw_ip_options_set_use_minimum_mtu 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 Nw_ip_options_set_version ¶
func Nw_ip_options_set_version(options Nw_protocol_options_t, version NwIpVersion)
Nw_ip_options_set_version 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 Nw_listener_cancel ¶
func Nw_listener_cancel(listener Nw_listener_t)
Nw_listener_cancel stops listening for inbound connections.
See: https://developer.apple.com/documentation/Network/nw_listener_cancel(_:)
func Nw_listener_get_new_connection_limit ¶
func Nw_listener_get_new_connection_limit(listener Nw_listener_t) uint32
Nw_listener_get_new_connection_limit 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 Nw_listener_get_port ¶
func Nw_listener_get_port(listener Nw_listener_t) uint16
Nw_listener_get_port the port on which the listener can accept connections.
See: https://developer.apple.com/documentation/Network/nw_listener_get_port(_:)
func Nw_listener_set_advertise_descriptor ¶
func Nw_listener_set_advertise_descriptor(listener Nw_listener_t, advertise_descriptor Nw_advertise_descriptor_t)
Nw_listener_set_advertise_descriptor 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 Nw_listener_set_advertised_endpoint_changed_handler ¶
func Nw_listener_set_advertised_endpoint_changed_handler(listener Nw_listener_t, handler Nw_listener_advertised_endpoint_changed_handler_t)
Nw_listener_set_advertised_endpoint_changed_handler sets a handler that receives updates for the service endpoint being advertised.
func Nw_listener_set_new_connection_group_handler ¶
func Nw_listener_set_new_connection_group_handler(listener Nw_listener_t, handler Nw_listener_new_connection_group_handler_t)
Nw_listener_set_new_connection_group_handler.
See: https://developer.apple.com/documentation/Network/nw_listener_set_new_connection_group_handler(_:_:)
func Nw_listener_set_new_connection_handler ¶
func Nw_listener_set_new_connection_handler(listener Nw_listener_t, handler Nw_listener_new_connection_handler_t)
Nw_listener_set_new_connection_handler sets a handler that receives inbound connections.
See: https://developer.apple.com/documentation/Network/nw_listener_set_new_connection_handler(_:_:)
func Nw_listener_set_new_connection_limit ¶
func Nw_listener_set_new_connection_limit(listener Nw_listener_t, new_connection_limit uint32)
Nw_listener_set_new_connection_limit 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 Nw_listener_set_queue ¶
func Nw_listener_set_queue(listener Nw_listener_t, queue dispatch.Queue)
Nw_listener_set_queue sets the queue on which all listener events are delivered.
See: https://developer.apple.com/documentation/Network/nw_listener_set_queue(_:_:)
func Nw_listener_set_state_changed_handler ¶
func Nw_listener_set_state_changed_handler(listener Nw_listener_t, handler Nw_listener_state_changed_handler_t)
Nw_listener_set_state_changed_handler sets a handler to receive listener state updates.
See: https://developer.apple.com/documentation/Network/nw_listener_set_state_changed_handler(_:_:)
func Nw_listener_start ¶
func Nw_listener_start(listener Nw_listener_t)
Nw_listener_start registers for listening for inbound connections.
See: https://developer.apple.com/documentation/Network/nw_listener_start(_:)
func Nw_multicast_group_descriptor_get_disable_unicast_traffic ¶
func Nw_multicast_group_descriptor_get_disable_unicast_traffic(multicast_descriptor Nw_group_descriptor_t) bool
Nw_multicast_group_descriptor_get_disable_unicast_traffic checks a Boolean that indicates whether a connection group should reject unicast traffic.
func Nw_multicast_group_descriptor_set_disable_unicast_traffic ¶
func Nw_multicast_group_descriptor_set_disable_unicast_traffic(multicast_descriptor Nw_group_descriptor_t, disable_unicast_traffic bool)
Nw_multicast_group_descriptor_set_disable_unicast_traffic sets a Boolean that indicates whether a connection group should reject unicast traffic.
func Nw_multicast_group_descriptor_set_specific_source ¶
func Nw_multicast_group_descriptor_set_specific_source(multicast_descriptor Nw_group_descriptor_t, source Nw_endpoint_t)
Nw_multicast_group_descriptor_set_specific_source sets an optional address endpoint used to filter received multicast packets.
func Nw_parameters_clear_prohibited_interface_types ¶
func Nw_parameters_clear_prohibited_interface_types(parameters Nw_parameters_t)
Nw_parameters_clear_prohibited_interface_types removes all prohibited interface types.
See: https://developer.apple.com/documentation/Network/nw_parameters_clear_prohibited_interface_types(_:)
func Nw_parameters_clear_prohibited_interfaces ¶
func Nw_parameters_clear_prohibited_interfaces(parameters Nw_parameters_t)
Nw_parameters_clear_prohibited_interfaces removes all prohibited interface types.
See: https://developer.apple.com/documentation/Network/nw_parameters_clear_prohibited_interfaces(_:)
func Nw_parameters_get_allow_ultra_constrained ¶
func Nw_parameters_get_allow_ultra_constrained(parameters Nw_parameters_t) bool
Nw_parameters_get_allow_ultra_constrained.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_allow_ultra_constrained(_:)
func Nw_parameters_get_fast_open_enabled ¶
func Nw_parameters_get_fast_open_enabled(parameters Nw_parameters_t) bool
Nw_parameters_get_fast_open_enabled checks if sending application data with protocol handshakes is enabled.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_fast_open_enabled(_:)
func Nw_parameters_get_include_peer_to_peer ¶
func Nw_parameters_get_include_peer_to_peer(parameters Nw_parameters_t) bool
Nw_parameters_get_include_peer_to_peer 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 Nw_parameters_get_local_only ¶
func Nw_parameters_get_local_only(parameters Nw_parameters_t) bool
Nw_parameters_get_local_only 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 Nw_parameters_get_prefer_no_proxy ¶
func Nw_parameters_get_prefer_no_proxy(parameters Nw_parameters_t) bool
Nw_parameters_get_prefer_no_proxy checks if proxies are ignored by default.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_prefer_no_proxy(_:)
func Nw_parameters_get_prohibit_constrained ¶
func Nw_parameters_get_prohibit_constrained(parameters Nw_parameters_t) bool
Nw_parameters_get_prohibit_constrained 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 Nw_parameters_get_prohibit_expensive ¶
func Nw_parameters_get_prohibit_expensive(parameters Nw_parameters_t) bool
Nw_parameters_get_prohibit_expensive 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 Nw_parameters_get_reuse_local_address ¶
func Nw_parameters_get_reuse_local_address(parameters Nw_parameters_t) bool
Nw_parameters_get_reuse_local_address checks whether a connection allows reusing local addresses and ports.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_reuse_local_address(_:)
func Nw_parameters_iterate_prohibited_interface_types ¶
func Nw_parameters_iterate_prohibited_interface_types(parameters Nw_parameters_t, iterate_block Nw_parameters_iterate_interface_types_block_t)
Nw_parameters_iterate_prohibited_interface_types examines the list of prohibited interface types.
func Nw_parameters_iterate_prohibited_interfaces ¶
func Nw_parameters_iterate_prohibited_interfaces(parameters Nw_parameters_t, iterate_block Nw_parameters_iterate_interfaces_block_t)
Nw_parameters_iterate_prohibited_interfaces examines the list of prohibited interfaces.
See: https://developer.apple.com/documentation/Network/nw_parameters_iterate_prohibited_interfaces(_:_:)
func Nw_parameters_prohibit_interface ¶
func Nw_parameters_prohibit_interface(parameters Nw_parameters_t, interface_ Nw_interface_t)
Nw_parameters_prohibit_interface prevents connections and listeners from using a specific interface.
See: https://developer.apple.com/documentation/Network/nw_parameters_prohibit_interface(_:_:)
func Nw_parameters_prohibit_interface_type ¶
func Nw_parameters_prohibit_interface_type(parameters Nw_parameters_t, interface_type NwInterfaceType)
Nw_parameters_prohibit_interface_type prevents connections, listeners, and browsers from using a specific interface type.
See: https://developer.apple.com/documentation/Network/nw_parameters_prohibit_interface_type(_:_:)
func Nw_parameters_require_interface ¶
func Nw_parameters_require_interface(parameters Nw_parameters_t, interface_ Nw_interface_t)
Nw_parameters_require_interface sets a specific interface to require on connections, listeners, and browsers.
See: https://developer.apple.com/documentation/Network/nw_parameters_require_interface(_:_:)
func Nw_parameters_requires_dnssec_validation ¶
func Nw_parameters_requires_dnssec_validation(parameters Nw_parameters_t) bool
Nw_parameters_requires_dnssec_validation checks whether a connection requires DNSSEC validation when resolving endpoints.
See: https://developer.apple.com/documentation/Network/nw_parameters_requires_dnssec_validation(_:)
func Nw_parameters_set_allow_ultra_constrained ¶
func Nw_parameters_set_allow_ultra_constrained(parameters Nw_parameters_t, allow_ultra_constrained bool)
Nw_parameters_set_allow_ultra_constrained.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_allow_ultra_constrained(_:_:)
func Nw_parameters_set_attribution ¶
func Nw_parameters_set_attribution(parameters Nw_parameters_t, attribution Nw_parameters_attribution_t)
Nw_parameters_set_attribution 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 Nw_parameters_set_expired_dns_behavior ¶
func Nw_parameters_set_expired_dns_behavior(parameters Nw_parameters_t, expired_dns_behavior NwParametersExpiredDnsBehavior)
Nw_parameters_set_expired_dns_behavior 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 Nw_parameters_set_fast_open_enabled ¶
func Nw_parameters_set_fast_open_enabled(parameters Nw_parameters_t, fast_open_enabled bool)
Nw_parameters_set_fast_open_enabled enables sending application data with protocol handshakes.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_fast_open_enabled(_:_:)
func Nw_parameters_set_include_peer_to_peer ¶
func Nw_parameters_set_include_peer_to_peer(parameters Nw_parameters_t, include_peer_to_peer bool)
Nw_parameters_set_include_peer_to_peer 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 Nw_parameters_set_local_endpoint ¶
func Nw_parameters_set_local_endpoint(parameters Nw_parameters_t, local_endpoint Nw_endpoint_t)
Nw_parameters_set_local_endpoint 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 Nw_parameters_set_local_only ¶
func Nw_parameters_set_local_only(parameters Nw_parameters_t, local_only bool)
Nw_parameters_set_local_only restricts listeners to only accepting connections from the local link.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_local_only(_:_:)
func Nw_parameters_set_multipath_service ¶
func Nw_parameters_set_multipath_service(parameters Nw_parameters_t, multipath_service NwMultipathService)
Nw_parameters_set_multipath_service enables multipath protocols to allow connections to use multiple interfaces.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_multipath_service(_:_:)
func Nw_parameters_set_prefer_no_proxy ¶
func Nw_parameters_set_prefer_no_proxy(parameters Nw_parameters_t, prefer_no_proxy bool)
Nw_parameters_set_prefer_no_proxy 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 Nw_parameters_set_privacy_context ¶
func Nw_parameters_set_privacy_context(parameters Nw_parameters_t, privacy_context Nw_privacy_context_t)
Nw_parameters_set_privacy_context 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 Nw_parameters_set_prohibit_constrained ¶
func Nw_parameters_set_prohibit_constrained(parameters Nw_parameters_t, prohibit_constrained bool)
Nw_parameters_set_prohibit_constrained 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 Nw_parameters_set_prohibit_expensive ¶
func Nw_parameters_set_prohibit_expensive(parameters Nw_parameters_t, prohibit_expensive bool)
Nw_parameters_set_prohibit_expensive 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 Nw_parameters_set_required_interface_type ¶
func Nw_parameters_set_required_interface_type(parameters Nw_parameters_t, interface_type NwInterfaceType)
Nw_parameters_set_required_interface_type sets an interface type to require on connections and listeners.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_required_interface_type(_:_:)
func Nw_parameters_set_requires_dnssec_validation ¶
func Nw_parameters_set_requires_dnssec_validation(parameters Nw_parameters_t, requires_dnssec_validation bool)
Nw_parameters_set_requires_dnssec_validation determines whether a connection requires DNSSEC validation when resolving endpoints.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_requires_dnssec_validation(_:_:)
func Nw_parameters_set_reuse_local_address ¶
func Nw_parameters_set_reuse_local_address(parameters Nw_parameters_t, reuse_local_address bool)
Nw_parameters_set_reuse_local_address allows reusing local addresses and ports across connections.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_reuse_local_address(_:_:)
func Nw_parameters_set_service_class ¶
func Nw_parameters_set_service_class(parameters Nw_parameters_t, service_class NwServiceClass)
Nw_parameters_set_service_class sets a level of service quality to use for connections.
See: https://developer.apple.com/documentation/Network/nw_parameters_set_service_class(_:_:)
func Nw_path_enumerate_gateways ¶
func Nw_path_enumerate_gateways(path Nw_path_t, enumerate_block Nw_path_enumerate_gateways_block_t)
Nw_path_enumerate_gateways 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 Nw_path_enumerate_interfaces ¶
func Nw_path_enumerate_interfaces(path Nw_path_t, enumerate_block Nw_path_enumerate_interfaces_block_t)
Nw_path_enumerate_interfaces 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 Nw_path_has_dns ¶
Nw_path_has_dns checks whether the path has a DNS server configured.
See: https://developer.apple.com/documentation/Network/nw_path_has_dns(_:)
func Nw_path_has_ipv4 ¶
Nw_path_has_ipv4 checks whether the path can route IPv4 traffic.
See: https://developer.apple.com/documentation/Network/nw_path_has_ipv4(_:)
func Nw_path_has_ipv6 ¶
Nw_path_has_ipv6 checks whether the path can route IPv6 traffic.
See: https://developer.apple.com/documentation/Network/nw_path_has_ipv6(_:)
func Nw_path_is_constrained ¶
Nw_path_is_constrained checks whether the path uses an interface in Low Data Mode.
See: https://developer.apple.com/documentation/Network/nw_path_is_constrained(_:)
func Nw_path_is_equal ¶
Nw_path_is_equal compares if two paths are identical.
See: https://developer.apple.com/documentation/Network/nw_path_is_equal(_:_:)
func Nw_path_is_expensive ¶
Nw_path_is_expensive 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 Nw_path_is_ultra_constrained ¶
Nw_path_is_ultra_constrained.
See: https://developer.apple.com/documentation/Network/nw_path_is_ultra_constrained(_:)
func Nw_path_monitor_cancel ¶
func Nw_path_monitor_cancel(monitor Nw_path_monitor_t)
Nw_path_monitor_cancel stops receiving network path updates.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_cancel(_:)
func Nw_path_monitor_prohibit_interface_type ¶
func Nw_path_monitor_prohibit_interface_type(monitor Nw_path_monitor_t, interface_type NwInterfaceType)
Nw_path_monitor_prohibit_interface_type prohibit a path monitor from using a specific interface type.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_prohibit_interface_type(_:_:)
func Nw_path_monitor_set_cancel_handler ¶
func Nw_path_monitor_set_cancel_handler(monitor Nw_path_monitor_t, cancel_handler Nw_path_monitor_cancel_handler_t)
Nw_path_monitor_set_cancel_handler 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 Nw_path_monitor_set_queue ¶
func Nw_path_monitor_set_queue(monitor Nw_path_monitor_t, queue dispatch.Queue)
Nw_path_monitor_set_queue sets a queue on which to deliver path events.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_set_queue(_:_:)
func Nw_path_monitor_set_update_handler ¶
func Nw_path_monitor_set_update_handler(monitor Nw_path_monitor_t, update_handler Nw_path_monitor_update_handler_t)
Nw_path_monitor_set_update_handler sets a handler to receive network path updates.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_set_update_handler(_:_:)
func Nw_path_monitor_start ¶
func Nw_path_monitor_start(monitor Nw_path_monitor_t)
Nw_path_monitor_start starts monitoring path changes.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_start(_:)
func Nw_path_uses_interface_type ¶
func Nw_path_uses_interface_type(path Nw_path_t, interface_type NwInterfaceType) bool
Nw_path_uses_interface_type 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 Nw_privacy_context_add_proxy ¶
func Nw_privacy_context_add_proxy(privacy_context Nw_privacy_context_t, proxy_config Nw_proxy_config_t)
Nw_privacy_context_add_proxy applies a proxy configuration to all connections associated with this context.
See: https://developer.apple.com/documentation/Network/nw_privacy_context_add_proxy(_:_:)
func Nw_privacy_context_clear_proxies ¶
func Nw_privacy_context_clear_proxies(privacy_context Nw_privacy_context_t)
Nw_privacy_context_clear_proxies clears out any proxies added using nw_privacy_context_add_proxy(_:_:)
See: https://developer.apple.com/documentation/Network/nw_privacy_context_clear_proxies(_:)
func Nw_privacy_context_disable_logging ¶
func Nw_privacy_context_disable_logging(privacy_context Nw_privacy_context_t)
Nw_privacy_context_disable_logging disables system logging of connection activity.
See: https://developer.apple.com/documentation/Network/nw_privacy_context_disable_logging(_:)
func Nw_privacy_context_flush_cache ¶
func Nw_privacy_context_flush_cache(privacy_context Nw_privacy_context_t)
Nw_privacy_context_flush_cache 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 Nw_privacy_context_require_encrypted_name_resolution ¶
func Nw_privacy_context_require_encrypted_name_resolution(privacy_context Nw_privacy_context_t, require_encrypted_name_resolution bool, fallback_resolver_config Nw_resolver_config_t)
Nw_privacy_context_require_encrypted_name_resolution requires that any DNS name resolution for connections associated with this context use encrypted transports, such as TLS or HTTPS.
func Nw_protocol_definition_is_equal ¶
func Nw_protocol_definition_is_equal(definition1 Nw_protocol_definition_t, definition2 Nw_protocol_definition_t) bool
Nw_protocol_definition_is_equal 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 Nw_protocol_metadata_is_framer_message ¶
func Nw_protocol_metadata_is_framer_message(metadata Nw_protocol_metadata_t) bool
Nw_protocol_metadata_is_framer_message 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 Nw_protocol_metadata_is_ip ¶
func Nw_protocol_metadata_is_ip(metadata Nw_protocol_metadata_t) bool
Nw_protocol_metadata_is_ip checks whether a metadata object represents an IP packet.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_ip(_:)
func Nw_protocol_metadata_is_quic ¶
func Nw_protocol_metadata_is_quic(metadata Nw_protocol_metadata_t) bool
Nw_protocol_metadata_is_quic checks whether a metadata object contains QUIC connection state.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_quic(_:)
func Nw_protocol_metadata_is_tcp ¶
func Nw_protocol_metadata_is_tcp(metadata Nw_protocol_metadata_t) bool
Nw_protocol_metadata_is_tcp checks whether a metadata object contains TCP connection state.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_tcp(_:)
func Nw_protocol_metadata_is_tls ¶
func Nw_protocol_metadata_is_tls(metadata Nw_protocol_metadata_t) bool
Nw_protocol_metadata_is_tls checks whether a metadata object contains TLS connection state.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_tls(_:)
func Nw_protocol_metadata_is_udp ¶
func Nw_protocol_metadata_is_udp(metadata Nw_protocol_metadata_t) bool
Nw_protocol_metadata_is_udp checks whether a metadata object represents a UDP datagram.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_udp(_:)
func Nw_protocol_metadata_is_ws ¶
func Nw_protocol_metadata_is_ws(metadata Nw_protocol_metadata_t) bool
Nw_protocol_metadata_is_ws checks whether a metadata object represents a WebSocket message.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_is_ws(_:)
func Nw_protocol_options_is_quic ¶
func Nw_protocol_options_is_quic(options Nw_protocol_options_t) bool
Nw_protocol_options_is_quic checks whether an options object uses the QUIC protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_options_is_quic(_:)
func Nw_protocol_stack_clear_application_protocols ¶
func Nw_protocol_stack_clear_application_protocols(stack Nw_protocol_stack_t)
Nw_protocol_stack_clear_application_protocols removes all application protocols from the protocol stack.
See: https://developer.apple.com/documentation/Network/nw_protocol_stack_clear_application_protocols(_:)
func Nw_protocol_stack_iterate_application_protocols ¶
func Nw_protocol_stack_iterate_application_protocols(stack Nw_protocol_stack_t, iterate_block Nw_protocol_stack_iterate_protocols_block_t)
Nw_protocol_stack_iterate_application_protocols iterates through the array of application protocol options that will be used by connections and listeners.
func Nw_protocol_stack_prepend_application_protocol ¶
func Nw_protocol_stack_prepend_application_protocol(stack Nw_protocol_stack_t, protocol_ Nw_protocol_options_t)
Nw_protocol_stack_prepend_application_protocol adds a protocol onto the top of the protocol stack.
func Nw_protocol_stack_set_transport_protocol ¶
func Nw_protocol_stack_set_transport_protocol(stack Nw_protocol_stack_t, protocol_ Nw_protocol_options_t)
Nw_protocol_stack_set_transport_protocol 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 Nw_proxy_config_add_excluded_domain ¶
func Nw_proxy_config_add_excluded_domain(config Nw_proxy_config_t, excluded_domain string)
Nw_proxy_config_add_excluded_domain.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_add_excluded_domain(_:_:)
func Nw_proxy_config_add_match_domain ¶
func Nw_proxy_config_add_match_domain(config Nw_proxy_config_t, match_domain string)
Nw_proxy_config_add_match_domain.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_add_match_domain(_:_:)
func Nw_proxy_config_clear_excluded_domains ¶
func Nw_proxy_config_clear_excluded_domains(config Nw_proxy_config_t)
Nw_proxy_config_clear_excluded_domains.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_clear_excluded_domains(_:)
func Nw_proxy_config_clear_match_domains ¶
func Nw_proxy_config_clear_match_domains(config Nw_proxy_config_t)
Nw_proxy_config_clear_match_domains.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_clear_match_domains(_:)
func Nw_proxy_config_enumerate_excluded_domains ¶
func Nw_proxy_config_enumerate_excluded_domains(config Nw_proxy_config_t, enumerator Nw_proxy_domain_enumerator_t)
Nw_proxy_config_enumerate_excluded_domains.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_enumerate_excluded_domains(_:_:)
func Nw_proxy_config_enumerate_match_domains ¶
func Nw_proxy_config_enumerate_match_domains(config Nw_proxy_config_t, enumerator Nw_proxy_domain_enumerator_t)
Nw_proxy_config_enumerate_match_domains.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_enumerate_match_domains(_:_:)
func Nw_proxy_config_get_failover_allowed ¶
func Nw_proxy_config_get_failover_allowed(proxy_config Nw_proxy_config_t) bool
Nw_proxy_config_get_failover_allowed 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 Nw_proxy_config_set_failover_allowed ¶
func Nw_proxy_config_set_failover_allowed(proxy_config Nw_proxy_config_t, failover_allowed bool)
Nw_proxy_config_set_failover_allowed 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 Nw_proxy_config_set_username_and_password ¶
func Nw_proxy_config_set_username_and_password(proxy_config Nw_proxy_config_t, username string, password string)
Nw_proxy_config_set_username_and_password 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 Nw_quic_add_tls_application_protocol ¶
func Nw_quic_add_tls_application_protocol(options Nw_protocol_options_t, application_protocol string)
Nw_quic_add_tls_application_protocol adds a supported Application-Layer Protocol Negotiation value.
See: https://developer.apple.com/documentation/Network/nw_quic_add_tls_application_protocol(_:_:)
func Nw_quic_copy_sec_protocol_metadata ¶
func Nw_quic_copy_sec_protocol_metadata(metadata Nw_protocol_metadata_t) security.Sec_protocol_metadata_t
Nw_quic_copy_sec_protocol_metadata accesses the result of the QUIC handshake.
See: https://developer.apple.com/documentation/Network/nw_quic_copy_sec_protocol_metadata(_:)
func Nw_quic_copy_sec_protocol_options ¶
func Nw_quic_copy_sec_protocol_options(options Nw_protocol_options_t) security.Sec_protocol_options_t
Nw_quic_copy_sec_protocol_options accesses the handshake security options QUIC will use.
See: https://developer.apple.com/documentation/Network/nw_quic_copy_sec_protocol_options(_:)
func Nw_quic_get_application_error ¶
func Nw_quic_get_application_error(metadata Nw_protocol_metadata_t) uint64
Nw_quic_get_application_error accesses the QUIC application error code received from the peer.
See: https://developer.apple.com/documentation/Network/nw_quic_get_application_error(_:)
func Nw_quic_get_application_error_reason ¶
func Nw_quic_get_application_error_reason(metadata Nw_protocol_metadata_t) *byte
Nw_quic_get_application_error_reason accesses the QUIC application error reason received from the peer.
See: https://developer.apple.com/documentation/Network/nw_quic_get_application_error_reason(_:)
func Nw_quic_get_idle_timeout ¶
func Nw_quic_get_idle_timeout(options Nw_protocol_options_t) uint32
Nw_quic_get_idle_timeout accesses the idle timeout for the QUIC connection, in milliseconds.
See: https://developer.apple.com/documentation/Network/nw_quic_get_idle_timeout(_:)
func Nw_quic_get_initial_max_data ¶
func Nw_quic_get_initial_max_data(options Nw_protocol_options_t) uint64
Nw_quic_get_initial_max_data accesses a QUIC connection’s initial maximum data transport parameter.
See: https://developer.apple.com/documentation/Network/nw_quic_get_initial_max_data(_:)
func Nw_quic_get_initial_max_stream_data_bidirectional_local ¶
func Nw_quic_get_initial_max_stream_data_bidirectional_local(options Nw_protocol_options_t) uint64
Nw_quic_get_initial_max_stream_data_bidirectional_local accesses a QUIC connection’s initial maximum stream data limit for locally-initiated bidirectional streams.
func Nw_quic_get_initial_max_stream_data_bidirectional_remote ¶
func Nw_quic_get_initial_max_stream_data_bidirectional_remote(options Nw_protocol_options_t) uint64
Nw_quic_get_initial_max_stream_data_bidirectional_remote accesses a QUIC connection’s initial maximum stream data limit for remote-initiated bidirectional streams.
func Nw_quic_get_initial_max_stream_data_unidirectional ¶
func Nw_quic_get_initial_max_stream_data_unidirectional(options Nw_protocol_options_t) uint64
Nw_quic_get_initial_max_stream_data_unidirectional accesses a QUIC connection’s initial maximum stream data limit for unidirectional streams.
func Nw_quic_get_initial_max_streams_bidirectional ¶
func Nw_quic_get_initial_max_streams_bidirectional(options Nw_protocol_options_t) uint64
Nw_quic_get_initial_max_streams_bidirectional 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 Nw_quic_get_initial_max_streams_unidirectional ¶
func Nw_quic_get_initial_max_streams_unidirectional(options Nw_protocol_options_t) uint64
Nw_quic_get_initial_max_streams_unidirectional 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 Nw_quic_get_keepalive_interval ¶
func Nw_quic_get_keepalive_interval(metadata Nw_protocol_metadata_t) uint16
Nw_quic_get_keepalive_interval accesses the keepalive interval for the QUIC connection, in seconds.
See: https://developer.apple.com/documentation/Network/nw_quic_get_keepalive_interval(_:)
func Nw_quic_get_local_max_streams_bidirectional ¶
func Nw_quic_get_local_max_streams_bidirectional(metadata Nw_protocol_metadata_t) uint64
Nw_quic_get_local_max_streams_bidirectional 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 Nw_quic_get_local_max_streams_unidirectional ¶
func Nw_quic_get_local_max_streams_unidirectional(metadata Nw_protocol_metadata_t) uint64
Nw_quic_get_local_max_streams_unidirectional 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 Nw_quic_get_max_datagram_frame_size ¶
func Nw_quic_get_max_datagram_frame_size(options Nw_protocol_options_t) uint16
Nw_quic_get_max_datagram_frame_size accesses a QUIC connection’s maximum DATAGRAM frame size.
See: https://developer.apple.com/documentation/Network/nw_quic_get_max_datagram_frame_size(_:)
func Nw_quic_get_max_udp_payload_size ¶
func Nw_quic_get_max_udp_payload_size(options Nw_protocol_options_t) uint16
Nw_quic_get_max_udp_payload_size 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 Nw_quic_get_remote_idle_timeout ¶
func Nw_quic_get_remote_idle_timeout(metadata Nw_protocol_metadata_t) uint64
Nw_quic_get_remote_idle_timeout 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 Nw_quic_get_remote_max_streams_bidirectional ¶
func Nw_quic_get_remote_max_streams_bidirectional(metadata Nw_protocol_metadata_t) uint64
Nw_quic_get_remote_max_streams_bidirectional 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 Nw_quic_get_remote_max_streams_unidirectional ¶
func Nw_quic_get_remote_max_streams_unidirectional(metadata Nw_protocol_metadata_t) uint64
Nw_quic_get_remote_max_streams_unidirectional 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 Nw_quic_get_stream_application_error ¶
func Nw_quic_get_stream_application_error(metadata Nw_protocol_metadata_t) uint64
Nw_quic_get_stream_application_error 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 Nw_quic_get_stream_id ¶
func Nw_quic_get_stream_id(metadata Nw_protocol_metadata_t) uint64
Nw_quic_get_stream_id accesses the QUIC stream identifier.
See: https://developer.apple.com/documentation/Network/nw_quic_get_stream_id(_:)
func Nw_quic_get_stream_is_datagram ¶
func Nw_quic_get_stream_is_datagram(options Nw_protocol_options_t) bool
Nw_quic_get_stream_is_datagram 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 Nw_quic_get_stream_is_unidirectional ¶
func Nw_quic_get_stream_is_unidirectional(options Nw_protocol_options_t) bool
Nw_quic_get_stream_is_unidirectional checks if a QUIC stream is unidirectional, instead of bidirectional.
See: https://developer.apple.com/documentation/Network/nw_quic_get_stream_is_unidirectional(_:)
func Nw_quic_get_stream_type ¶
func Nw_quic_get_stream_type(stream_metadata Nw_protocol_metadata_t) uint8
Nw_quic_get_stream_type accesses the stream type of the QUIC stream.
See: https://developer.apple.com/documentation/Network/nw_quic_get_stream_type(_:)
func Nw_quic_get_stream_usable_datagram_frame_size ¶
func Nw_quic_get_stream_usable_datagram_frame_size(metadata Nw_protocol_metadata_t) uint16
Nw_quic_get_stream_usable_datagram_frame_size 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 Nw_quic_set_application_error ¶
func Nw_quic_set_application_error(metadata Nw_protocol_metadata_t, application_error uint64, reason string)
Nw_quic_set_application_error sets the QUIC application error code to send for the connection.
See: https://developer.apple.com/documentation/Network/nw_quic_set_application_error(_:_:_:)
func Nw_quic_set_idle_timeout ¶
func Nw_quic_set_idle_timeout(options Nw_protocol_options_t, idle_timeout uint32)
Nw_quic_set_idle_timeout sets the idle timeout for the QUIC connection, in milliseconds.
See: https://developer.apple.com/documentation/Network/nw_quic_set_idle_timeout(_:_:)
func Nw_quic_set_initial_max_data ¶
func Nw_quic_set_initial_max_data(options Nw_protocol_options_t, initial_max_data uint64)
Nw_quic_set_initial_max_data sets a QUIC connection’s initial maximum data transport parameter.
See: https://developer.apple.com/documentation/Network/nw_quic_set_initial_max_data(_:_:)
func Nw_quic_set_initial_max_stream_data_bidirectional_local ¶
func Nw_quic_set_initial_max_stream_data_bidirectional_local(options Nw_protocol_options_t, initial_max_stream_data_bidirectional_local uint64)
Nw_quic_set_initial_max_stream_data_bidirectional_local sets a QUIC connection’s initial maximum stream data limit for locally-initiated bidirectional streams.
func Nw_quic_set_initial_max_stream_data_bidirectional_remote ¶
func Nw_quic_set_initial_max_stream_data_bidirectional_remote(options Nw_protocol_options_t, initial_max_stream_data_bidirectional_remote uint64)
Nw_quic_set_initial_max_stream_data_bidirectional_remote sets a QUIC connection’s initial maximum stream data limit for remote-initiated bidirectional streams.
func Nw_quic_set_initial_max_stream_data_unidirectional ¶
func Nw_quic_set_initial_max_stream_data_unidirectional(options Nw_protocol_options_t, initial_max_stream_data_unidirectional uint64)
Nw_quic_set_initial_max_stream_data_unidirectional sets a QUIC connection’s initial maximum stream data limit for unidirectional streams.
func Nw_quic_set_initial_max_streams_bidirectional ¶
func Nw_quic_set_initial_max_streams_bidirectional(options Nw_protocol_options_t, initial_max_streams_bidirectional uint64)
Nw_quic_set_initial_max_streams_bidirectional sets a QUIC connection’s initial maximum number of bidirectional streams.
func Nw_quic_set_initial_max_streams_unidirectional ¶
func Nw_quic_set_initial_max_streams_unidirectional(options Nw_protocol_options_t, initial_max_streams_unidirectional uint64)
Nw_quic_set_initial_max_streams_unidirectional sets a QUIC connection’s initial maximum number of unidirectional streams.
func Nw_quic_set_keepalive_interval ¶
func Nw_quic_set_keepalive_interval(metadata Nw_protocol_metadata_t, keepalive_interval uint16)
Nw_quic_set_keepalive_interval sets the keepalive interval for the QUIC connection, in seconds.
See: https://developer.apple.com/documentation/Network/nw_quic_set_keepalive_interval(_:_:)
func Nw_quic_set_local_max_streams_bidirectional ¶
func Nw_quic_set_local_max_streams_bidirectional(metadata Nw_protocol_metadata_t, max_streams_bidirectional uint64)
Nw_quic_set_local_max_streams_bidirectional 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 Nw_quic_set_local_max_streams_unidirectional ¶
func Nw_quic_set_local_max_streams_unidirectional(metadata Nw_protocol_metadata_t, max_streams_unidirectional uint64)
Nw_quic_set_local_max_streams_unidirectional 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 Nw_quic_set_max_datagram_frame_size ¶
func Nw_quic_set_max_datagram_frame_size(options Nw_protocol_options_t, max_datagram_frame_size uint16)
Nw_quic_set_max_datagram_frame_size sets a QUIC connection’s maximum DATAGRAM frame size.
See: https://developer.apple.com/documentation/Network/nw_quic_set_max_datagram_frame_size(_:_:)
func Nw_quic_set_max_udp_payload_size ¶
func Nw_quic_set_max_udp_payload_size(options Nw_protocol_options_t, max_udp_payload_size uint16)
Nw_quic_set_max_udp_payload_size 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 Nw_quic_set_stream_application_error ¶
func Nw_quic_set_stream_application_error(metadata Nw_protocol_metadata_t, application_error uint64)
Nw_quic_set_stream_application_error 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 Nw_quic_set_stream_is_datagram ¶
func Nw_quic_set_stream_is_datagram(options Nw_protocol_options_t, is_datagram bool)
Nw_quic_set_stream_is_datagram 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 Nw_quic_set_stream_is_unidirectional ¶
func Nw_quic_set_stream_is_unidirectional(options Nw_protocol_options_t, is_unidirectional bool)
Nw_quic_set_stream_is_unidirectional configures a QUIC stream as unidirectional, instead of bidirectional.
See: https://developer.apple.com/documentation/Network/nw_quic_set_stream_is_unidirectional(_:_:)
func Nw_relay_hop_add_additional_http_header_field ¶
func Nw_relay_hop_add_additional_http_header_field(relay_hop Nw_relay_hop_t, field_name string, field_value string)
Nw_relay_hop_add_additional_http_header_field adds an HTTP header name and value pair to send as part of [CONNECT] requests to the relay.
func Nw_release ¶
Nw_release releases a reference count on a Network.framework object.
See: https://developer.apple.com/documentation/Network/nw_release
func Nw_resolution_report_get_endpoint_count ¶
func Nw_resolution_report_get_endpoint_count(resolution_report Nw_resolution_report_t) uint32
Nw_resolution_report_get_endpoint_count accesses the number of endpoints resolved in this step.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_get_endpoint_count(_:)
func Nw_resolution_report_get_milliseconds ¶
func Nw_resolution_report_get_milliseconds(resolution_report Nw_resolution_report_t) uint64
Nw_resolution_report_get_milliseconds 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 Nw_resolver_config_add_server_address ¶
func Nw_resolver_config_add_server_address(config Nw_resolver_config_t, server_address Nw_endpoint_t)
Nw_resolver_config_add_server_address 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 Nw_retain ¶
Nw_retain adds a reference count to a Network.framework object.
See: https://developer.apple.com/documentation/Network/nw_retain
func Nw_tcp_get_available_receive_buffer ¶
func Nw_tcp_get_available_receive_buffer(metadata Nw_protocol_metadata_t) uint32
Nw_tcp_get_available_receive_buffer 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 Nw_tcp_get_available_send_buffer ¶
func Nw_tcp_get_available_send_buffer(metadata Nw_protocol_metadata_t) uint32
Nw_tcp_get_available_send_buffer 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 Nw_tcp_options_set_connection_timeout ¶
func Nw_tcp_options_set_connection_timeout(options Nw_protocol_options_t, connection_timeout uint32)
Nw_tcp_options_set_connection_timeout 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 Nw_tcp_options_set_disable_ack_stretching ¶
func Nw_tcp_options_set_disable_ack_stretching(options Nw_protocol_options_t, disable_ack_stretching bool)
Nw_tcp_options_set_disable_ack_stretching disables TCP acknowledgment stretching.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_disable_ack_stretching(_:_:)
func Nw_tcp_options_set_disable_ecn ¶
func Nw_tcp_options_set_disable_ecn(options Nw_protocol_options_t, disable_ecn bool)
Nw_tcp_options_set_disable_ecn disables negotiation of Explicit Congestion Notification markings.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_disable_ecn(_:_:)
func Nw_tcp_options_set_enable_fast_open ¶
func Nw_tcp_options_set_enable_fast_open(options Nw_protocol_options_t, enable_fast_open bool)
Nw_tcp_options_set_enable_fast_open enables TCP Fast Open on a connection.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_enable_fast_open(_:_:)
func Nw_tcp_options_set_enable_keepalive ¶
func Nw_tcp_options_set_enable_keepalive(options Nw_protocol_options_t, enable_keepalive bool)
Nw_tcp_options_set_enable_keepalive enables TCP keepalives.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_enable_keepalive(_:_:)
func Nw_tcp_options_set_keepalive_count ¶
func Nw_tcp_options_set_keepalive_count(options Nw_protocol_options_t, keepalive_count uint32)
Nw_tcp_options_set_keepalive_count 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 Nw_tcp_options_set_keepalive_idle_time ¶
func Nw_tcp_options_set_keepalive_idle_time(options Nw_protocol_options_t, keepalive_idle_time uint32)
Nw_tcp_options_set_keepalive_idle_time 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 Nw_tcp_options_set_keepalive_interval ¶
func Nw_tcp_options_set_keepalive_interval(options Nw_protocol_options_t, keepalive_interval uint32)
Nw_tcp_options_set_keepalive_interval 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 Nw_tcp_options_set_maximum_segment_size ¶
func Nw_tcp_options_set_maximum_segment_size(options Nw_protocol_options_t, maximum_segment_size uint32)
Nw_tcp_options_set_maximum_segment_size sets TCP’s maximum segment size in bytes.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_maximum_segment_size(_:_:)
func Nw_tcp_options_set_multipath_force_version ¶
func Nw_tcp_options_set_multipath_force_version(options Nw_protocol_options_t, multipath_force_version NwMultipathVersion)
Nw_tcp_options_set_multipath_force_version.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_multipath_force_version(_:_:)
func Nw_tcp_options_set_no_delay ¶
func Nw_tcp_options_set_no_delay(options Nw_protocol_options_t, no_delay bool)
Nw_tcp_options_set_no_delay disables Nagle’s algorithm for TCP.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_no_delay(_:_:)
func Nw_tcp_options_set_no_options ¶
func Nw_tcp_options_set_no_options(options Nw_protocol_options_t, no_options bool)
Nw_tcp_options_set_no_options sets TCP into no-options mode.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_no_options(_:_:)
func Nw_tcp_options_set_no_push ¶
func Nw_tcp_options_set_no_push(options Nw_protocol_options_t, no_push bool)
Nw_tcp_options_set_no_push sets TCP into no-push mode.
See: https://developer.apple.com/documentation/Network/nw_tcp_options_set_no_push(_:_:)
func Nw_tcp_options_set_persist_timeout ¶
func Nw_tcp_options_set_persist_timeout(options Nw_protocol_options_t, persist_timeout uint32)
Nw_tcp_options_set_persist_timeout 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 Nw_tcp_options_set_retransmit_connection_drop_time ¶
func Nw_tcp_options_set_retransmit_connection_drop_time(options Nw_protocol_options_t, retransmit_connection_drop_time uint32)
Nw_tcp_options_set_retransmit_connection_drop_time sets the number of seconds that TCP waits between retransmission attempts.
func Nw_tcp_options_set_retransmit_fin_drop ¶
func Nw_tcp_options_set_retransmit_fin_drop(options Nw_protocol_options_t, retransmit_fin_drop bool)
Nw_tcp_options_set_retransmit_fin_drop 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 Nw_tls_copy_sec_protocol_metadata ¶
func Nw_tls_copy_sec_protocol_metadata(metadata Nw_protocol_metadata_t) security.Sec_protocol_metadata_t
Nw_tls_copy_sec_protocol_metadata accesses the result of the TLS handshake.
See: https://developer.apple.com/documentation/Network/nw_tls_copy_sec_protocol_metadata(_:)
func Nw_tls_copy_sec_protocol_options ¶
func Nw_tls_copy_sec_protocol_options(options Nw_protocol_options_t) security.Sec_protocol_options_t
Nw_tls_copy_sec_protocol_options accesses the handshake security options TLS will use.
See: https://developer.apple.com/documentation/Network/nw_tls_copy_sec_protocol_options(_:)
func Nw_txt_record_access_bytes ¶
func Nw_txt_record_access_bytes(txt_record Nw_txt_record_t, access_bytes Nw_txt_record_access_bytes_t) bool
Nw_txt_record_access_bytes accesses the raw bytes contained within a TXT record.
See: https://developer.apple.com/documentation/Network/nw_txt_record_access_bytes(_:_:)
func Nw_txt_record_access_key ¶
func Nw_txt_record_access_key(txt_record Nw_txt_record_t, key string, access_value Nw_txt_record_access_key_t) bool
Nw_txt_record_access_key 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 Nw_txt_record_apply ¶
func Nw_txt_record_apply(txt_record Nw_txt_record_t, applier Nw_txt_record_applier_t) bool
Nw_txt_record_apply iterates through all keys in a TXT record dictionary.
See: https://developer.apple.com/documentation/Network/nw_txt_record_apply(_:_:)
func Nw_txt_record_get_key_count ¶
func Nw_txt_record_get_key_count(txt_record Nw_txt_record_t) uintptr
Nw_txt_record_get_key_count 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 Nw_txt_record_is_dictionary ¶
func Nw_txt_record_is_dictionary(txt_record Nw_txt_record_t) bool
Nw_txt_record_is_dictionary checks whether a TXT record conforms to a dictionary format.
See: https://developer.apple.com/documentation/Network/nw_txt_record_is_dictionary(_:)
func Nw_txt_record_is_equal ¶
func Nw_txt_record_is_equal(left Nw_txt_record_t, right Nw_txt_record_t) bool
Nw_txt_record_is_equal checks whether two TXT records are equivalent.
See: https://developer.apple.com/documentation/Network/nw_txt_record_is_equal(_:_:)
func Nw_txt_record_remove_key ¶
func Nw_txt_record_remove_key(txt_record Nw_txt_record_t, key string) bool
Nw_txt_record_remove_key removes a data value in a TXT record dictionary.
See: https://developer.apple.com/documentation/Network/nw_txt_record_remove_key(_:_:)
func Nw_txt_record_set_key ¶
func Nw_txt_record_set_key(txt_record Nw_txt_record_t, key string, value *uint8, value_len uintptr) bool
Nw_txt_record_set_key sets a data value in a TXT record dictionary.
See: https://developer.apple.com/documentation/Network/nw_txt_record_set_key(_:_:_:_:)
func Nw_udp_options_set_prefer_no_checksum ¶
func Nw_udp_options_set_prefer_no_checksum(options Nw_protocol_options_t, prefer_no_checksum bool)
Nw_udp_options_set_prefer_no_checksum configures the connection to not send UDP checksums.
See: https://developer.apple.com/documentation/Network/nw_udp_options_set_prefer_no_checksum(_:_:)
func Nw_ws_metadata_set_close_code ¶
func Nw_ws_metadata_set_close_code(metadata Nw_protocol_metadata_t, close_code NwWsCloseCode)
Nw_ws_metadata_set_close_code sets a close code on a WebSocket message.
See: https://developer.apple.com/documentation/Network/nw_ws_metadata_set_close_code(_:_:)
func Nw_ws_metadata_set_pong_handler ¶
func Nw_ws_metadata_set_pong_handler(metadata Nw_protocol_metadata_t, client_queue dispatch.Queue, pong_handler Nw_ws_pong_handler_t)
Nw_ws_metadata_set_pong_handler 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 Nw_ws_options_add_additional_header ¶
func Nw_ws_options_add_additional_header(options Nw_protocol_options_t, name string, value string)
Nw_ws_options_add_additional_header 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 Nw_ws_options_add_subprotocol ¶
func Nw_ws_options_add_subprotocol(options Nw_protocol_options_t, subprotocol string)
Nw_ws_options_add_subprotocol 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 Nw_ws_options_set_auto_reply_ping ¶
func Nw_ws_options_set_auto_reply_ping(options Nw_protocol_options_t, auto_reply_ping bool)
Nw_ws_options_set_auto_reply_ping 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 Nw_ws_options_set_client_request_handler ¶
func Nw_ws_options_set_client_request_handler(options Nw_protocol_options_t, client_queue dispatch.Queue, handler Nw_ws_client_request_handler_t)
Nw_ws_options_set_client_request_handler 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 Nw_ws_options_set_maximum_message_size ¶
func Nw_ws_options_set_maximum_message_size(options Nw_protocol_options_t, maximum_message_size uintptr)
Nw_ws_options_set_maximum_message_size 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 Nw_ws_options_set_skip_handshake ¶
func Nw_ws_options_set_skip_handshake(options Nw_protocol_options_t, skip_handshake bool)
Nw_ws_options_set_skip_handshake 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 Nw_ws_request_enumerate_additional_headers ¶
func Nw_ws_request_enumerate_additional_headers(request Nw_ws_request_t, enumerator Nw_ws_additional_header_enumerator_t) bool
Nw_ws_request_enumerate_additional_headers enumerates additional HTTP headers in a WebSocket message.
See: https://developer.apple.com/documentation/Network/nw_ws_request_enumerate_additional_headers(_:_:)
func Nw_ws_request_enumerate_subprotocols ¶
func Nw_ws_request_enumerate_subprotocols(request Nw_ws_request_t, enumerator Nw_ws_subprotocol_enumerator_t) bool
Nw_ws_request_enumerate_subprotocols enumerates the supported subprotocols in a WebSocket message.
See: https://developer.apple.com/documentation/Network/nw_ws_request_enumerate_subprotocols(_:_:)
func Nw_ws_response_add_additional_header ¶
func Nw_ws_response_add_additional_header(response Nw_ws_response_t, name string, value string)
Nw_ws_response_add_additional_header adds an additional HTTP header to a WebSocket server response.
See: https://developer.apple.com/documentation/Network/nw_ws_response_add_additional_header(_:_:_:)
func Nw_ws_response_enumerate_additional_headers ¶
func Nw_ws_response_enumerate_additional_headers(response Nw_ws_response_t, enumerator Nw_ws_additional_header_enumerator_t) bool
Nw_ws_response_enumerate_additional_headers enumerates the additional HTTP headers in a WebSocket server response.
See: https://developer.apple.com/documentation/Network/nw_ws_response_enumerate_additional_headers(_:_:)
func Nw_ws_response_get_selected_subprotocol ¶
func Nw_ws_response_get_selected_subprotocol(response Nw_ws_response_t) *byte
Nw_ws_response_get_selected_subprotocol accesses the selected subprotocol in a WebSocket server response.
See: https://developer.apple.com/documentation/Network/nw_ws_response_get_selected_subprotocol(_:)
Types ¶
type NwBrowseResultChange ¶
type NwBrowseResultChange int
const ( // Nw_browse_result_change_identical: The compared services are identical. Nw_browse_result_change_identical NwBrowseResultChange = 1 // Nw_browse_result_change_interface_added: The service was discovered over a new interface. Nw_browse_result_change_interface_added NwBrowseResultChange = 8 // Nw_browse_result_change_interface_removed: The service was no longer discovered over a certain interface. Nw_browse_result_change_interface_removed NwBrowseResultChange = 16 // Nw_browse_result_change_invalid: The comparison was invallid. Nw_browse_result_change_invalid NwBrowseResultChange = 0 // Nw_browse_result_change_result_added: A new service was discovered. Nw_browse_result_change_result_added NwBrowseResultChange = 2 // Nw_browse_result_change_result_removed: A previously discovered service was removed. Nw_browse_result_change_result_removed NwBrowseResultChange = 4 // Nw_browse_result_change_txt_record_changed: The service’s associated TXT record changed. Nw_browse_result_change_txt_record_changed NwBrowseResultChange = 32 )
func (NwBrowseResultChange) String ¶
func (e NwBrowseResultChange) String() string
type NwBrowserState ¶
type NwBrowserState uint
const ( // Nw_browser_state_cancelled: The browser has been canceled. Nw_browser_state_cancelled NwBrowserState = 3 // Nw_browser_state_failed: The browser has encountered a fatal error. Nw_browser_state_failed NwBrowserState = 2 // Nw_browser_state_invalid: The browser is not valid. Nw_browser_state_invalid NwBrowserState = 0 // Nw_browser_state_ready: The browser is registered for discovering services. Nw_browser_state_ready NwBrowserState = 1 Nw_browser_state_waiting NwBrowserState = 4 )
func (NwBrowserState) String ¶
func (e NwBrowserState) String() string
type NwConnectionGroupState ¶
type NwConnectionGroupState uint
const ( // Nw_connection_group_state_cancelled: The connection group has been canceled. Nw_connection_group_state_cancelled NwConnectionGroupState = 4 // Nw_connection_group_state_failed: The connection group encountered a fatal error. Nw_connection_group_state_failed NwConnectionGroupState = 3 // Nw_connection_group_state_invalid: The connection group is not valid. Nw_connection_group_state_invalid NwConnectionGroupState = 0 // Nw_connection_group_state_ready: The connection group is joined, and ready to send and receive data. Nw_connection_group_state_ready NwConnectionGroupState = 2 // Nw_connection_group_state_waiting: The connection group is waiting for a network path change. Nw_connection_group_state_waiting NwConnectionGroupState = 1 )
func (NwConnectionGroupState) String ¶
func (e NwConnectionGroupState) String() string
type NwConnectionState ¶
type NwConnectionState uint
const ( // Nw_connection_state_cancelled: The connection has been canceled. Nw_connection_state_cancelled NwConnectionState = 5 // Nw_connection_state_failed: The connection has disconnected or encountered an error. Nw_connection_state_failed NwConnectionState = 4 // Nw_connection_state_invalid: The connection is not valid. Nw_connection_state_invalid NwConnectionState = 0 // Nw_connection_state_preparing: The connection in the process of being established. Nw_connection_state_preparing NwConnectionState = 2 // Nw_connection_state_ready: The connection is established, and ready to send and receive data. Nw_connection_state_ready NwConnectionState = 3 // Nw_connection_state_waiting: The connection is waiting for a network path change. Nw_connection_state_waiting NwConnectionState = 1 )
func (NwConnectionState) String ¶
func (e NwConnectionState) String() string
type NwDataTransferReportState ¶
type NwDataTransferReportState uint
const ( // Nw_data_transfer_report_state_collected: The data transfer report has completed, and data can be examined. Nw_data_transfer_report_state_collected NwDataTransferReportState = 2 // Nw_data_transfer_report_state_collecting: The data transfer report has been started but is still collecting data. Nw_data_transfer_report_state_collecting NwDataTransferReportState = 1 )
func Nw_data_transfer_report_get_state ¶
func Nw_data_transfer_report_get_state(report Nw_data_transfer_report_t) NwDataTransferReportState
Nw_data_transfer_report_get_state checks whether a data transfer report is collected.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_state(_:)
func (NwDataTransferReportState) String ¶
func (e NwDataTransferReportState) String() string
type NwEndpointType ¶
type NwEndpointType uint
const ( // Nw_endpoint_type_address: An endpoint represented as an IP address and port. Nw_endpoint_type_address NwEndpointType = 1 // Nw_endpoint_type_bonjour_service: An endpoint represented as a Bonjour service. Nw_endpoint_type_bonjour_service NwEndpointType = 3 // Nw_endpoint_type_host: An endpoint represented as a hostname and port. Nw_endpoint_type_host NwEndpointType = 2 // Nw_endpoint_type_invalid: An undefined endpoint type. Nw_endpoint_type_invalid NwEndpointType = 0 // Nw_endpoint_type_url: An endpoint represented as a URL, with host and port values inferred from the URL. Nw_endpoint_type_url NwEndpointType = 4 )
func Nw_endpoint_get_type ¶
func Nw_endpoint_get_type(endpoint Nw_endpoint_t) NwEndpointType
Nw_endpoint_get_type accesses the type of a endpoint.
See: https://developer.apple.com/documentation/Network/nw_endpoint_get_type(_:)
func (NwEndpointType) String ¶
func (e NwEndpointType) String() string
type NwErrorDomain ¶
type NwErrorDomain int
const ( // Nw_error_domain_dns: A DNS error encountered in resolving, browsing, or advertising. Nw_error_domain_dns NwErrorDomain = 2 // Nw_error_domain_invalid: The error is invalid. Nw_error_domain_invalid NwErrorDomain = 0 // Nw_error_domain_posix: A POSIX error, which is used for most network protocol and routing errors. Nw_error_domain_posix NwErrorDomain = 1 // Nw_error_domain_tls: A TLS error reported by a TLS connection or listener. Nw_error_domain_tls NwErrorDomain = 3 Nw_error_domain_wifi_aware NwErrorDomain = 4 )
func Nw_error_get_error_domain ¶
func Nw_error_get_error_domain(err Nw_error_t) NwErrorDomain
Nw_error_get_error_domain accesses the domain of the network error.
See: https://developer.apple.com/documentation/Network/nw_error_get_error_domain(_:)
func (NwErrorDomain) String ¶
func (e NwErrorDomain) String() string
type NwEthernetChannelState ¶
type NwEthernetChannelState uint
const ( // Nw_ethernet_channel_state_cancelled: The channel has been canceled. Nw_ethernet_channel_state_cancelled NwEthernetChannelState = 5 // Nw_ethernet_channel_state_failed: The channel has encountered a fatal error. Nw_ethernet_channel_state_failed NwEthernetChannelState = 4 // Nw_ethernet_channel_state_invalid: The channel is not valid. Nw_ethernet_channel_state_invalid NwEthernetChannelState = 0 // Nw_ethernet_channel_state_preparing: The channel is registering with the interface. Nw_ethernet_channel_state_preparing NwEthernetChannelState = 2 // Nw_ethernet_channel_state_ready: The channel is able to send and receive Ethernet frames. Nw_ethernet_channel_state_ready NwEthernetChannelState = 3 // Nw_ethernet_channel_state_waiting: The channel is waiting for its interface to become available. Nw_ethernet_channel_state_waiting NwEthernetChannelState = 1 )
func (NwEthernetChannelState) String ¶
func (e NwEthernetChannelState) String() string
type NwFramerStartResult ¶
type NwFramerStartResult int
const ( // Nw_framer_start_result_ready: The protocol is immediately ready to send and receive data. Nw_framer_start_result_ready NwFramerStartResult = 1 // Nw_framer_start_result_will_mark_ready: The protocol will perform a handshake, preventing the overall connection from becoming ready until nw_framer_mark_ready(_:) is called. Nw_framer_start_result_will_mark_ready NwFramerStartResult = 2 )
func (NwFramerStartResult) String ¶
func (e NwFramerStartResult) String() string
type NwInterfaceRadioType ¶
type NwInterfaceRadioType uint
const ( Nw_interface_radio_type_cell_cdma NwInterfaceRadioType = 135 Nw_interface_radio_type_cell_endc_mmw NwInterfaceRadioType = 130 Nw_interface_radio_type_cell_endc_sub6 NwInterfaceRadioType = 129 Nw_interface_radio_type_cell_evdo NwInterfaceRadioType = 136 Nw_interface_radio_type_cell_gsm NwInterfaceRadioType = 134 Nw_interface_radio_type_cell_lte NwInterfaceRadioType = 128 Nw_interface_radio_type_cell_nr_sa_mmw NwInterfaceRadioType = 132 Nw_interface_radio_type_cell_nr_sa_sub6 NwInterfaceRadioType = 131 Nw_interface_radio_type_cell_wcdma NwInterfaceRadioType = 133 Nw_interface_radio_type_unknown NwInterfaceRadioType = 0 Nw_interface_radio_type_wifi_a NwInterfaceRadioType = 2 Nw_interface_radio_type_wifi_ac NwInterfaceRadioType = 5 Nw_interface_radio_type_wifi_ax NwInterfaceRadioType = 6 Nw_interface_radio_type_wifi_b NwInterfaceRadioType = 1 Nw_interface_radio_type_wifi_g NwInterfaceRadioType = 3 Nw_interface_radio_type_wifi_n NwInterfaceRadioType = 4 )
func Nw_data_transfer_report_get_path_radio_type ¶
func Nw_data_transfer_report_get_path_radio_type(report Nw_data_transfer_report_t, path_index uint32) NwInterfaceRadioType
Nw_data_transfer_report_get_path_radio_type.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_get_path_radio_type(_:_:)
func (NwInterfaceRadioType) String ¶
func (e NwInterfaceRadioType) String() string
type NwInterfaceType ¶
type NwInterfaceType uint
const ( // Nw_interface_type_cellular: The network interface type used for communication over cellular networks. Nw_interface_type_cellular NwInterfaceType = 2 // Nw_interface_type_loopback: The network interface type used for communication over local loopback networks. Nw_interface_type_loopback NwInterfaceType = 4 // Nw_interface_type_other: The network interface type used for communication over virtual networks or networks of unknown types. Nw_interface_type_other NwInterfaceType = 0 // Nw_interface_type_wifi: The network interface type used for communication over Wi-Fi networks. Nw_interface_type_wifi NwInterfaceType = 1 // Nw_interface_type_wired: The network interface type used for communication over wired Ethernet networks. Nw_interface_type_wired NwInterfaceType = 3 )
func Nw_interface_get_type ¶
func Nw_interface_get_type(interface_ Nw_interface_t) NwInterfaceType
Nw_interface_get_type accesses the type of the interface, such as Wi-Fi or Loopback.
See: https://developer.apple.com/documentation/Network/nw_interface_get_type(_:)
func Nw_parameters_get_required_interface_type ¶
func Nw_parameters_get_required_interface_type(parameters Nw_parameters_t) NwInterfaceType
Nw_parameters_get_required_interface_type 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 ¶
func (e NwInterfaceType) String() string
type NwIpEcnFlag ¶
type NwIpEcnFlag uint
const ( // Nw_ip_ecn_flag_ce: Congestion Experienced. Nw_ip_ecn_flag_ce NwIpEcnFlag = 3 // Nw_ip_ecn_flag_ect_0: ECN Capable Transport (flag 0). Nw_ip_ecn_flag_ect_0 NwIpEcnFlag = 2 // Nw_ip_ecn_flag_ect_1: ECN Capable Transport (flag 1). Nw_ip_ecn_flag_ect_1 NwIpEcnFlag = 1 // Nw_ip_ecn_flag_non_ect: Non-ECN Capable Transport. Nw_ip_ecn_flag_non_ect NwIpEcnFlag = 0 )
func Nw_ip_metadata_get_ecn_flag ¶
func Nw_ip_metadata_get_ecn_flag(metadata Nw_protocol_metadata_t) NwIpEcnFlag
Nw_ip_metadata_get_ecn_flag 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 ¶
func (e NwIpEcnFlag) String() string
type NwIpLocalAddressPreference ¶
type NwIpLocalAddressPreference uint
const ( // Nw_ip_local_address_preference_default: Allow the system to decide which kind of local address to prefer for a connection or listener. Nw_ip_local_address_preference_default NwIpLocalAddressPreference = 0 // Nw_ip_local_address_preference_stable: Prefer using stable local addresses. Nw_ip_local_address_preference_stable NwIpLocalAddressPreference = 2 // Nw_ip_local_address_preference_temporary: Prefer using temporary local addresses. Nw_ip_local_address_preference_temporary NwIpLocalAddressPreference = 1 )
func (NwIpLocalAddressPreference) String ¶
func (e NwIpLocalAddressPreference) String() string
type NwIpVersion ¶
type NwIpVersion uint
const ( // Nw_ip_version_4: Require IP version 4. Nw_ip_version_4 NwIpVersion = 4 // Nw_ip_version_6: Require IP version 6. Nw_ip_version_6 NwIpVersion = 6 // Nw_ip_version_any: Allow any IP version. Nw_ip_version_any NwIpVersion = 0 )
func (NwIpVersion) String ¶
func (e NwIpVersion) String() string
type NwLinkQuality ¶
type NwLinkQuality uint
const ( Nw_link_quality_good NwLinkQuality = 30 Nw_link_quality_minimal NwLinkQuality = 10 Nw_link_quality_moderate NwLinkQuality = 20 Nw_link_quality_unknown NwLinkQuality = 0 )
func Nw_path_get_link_quality ¶
func Nw_path_get_link_quality(path Nw_path_t) NwLinkQuality
Nw_path_get_link_quality.
See: https://developer.apple.com/documentation/Network/nw_path_get_link_quality(_:)
func (NwLinkQuality) String ¶
func (e NwLinkQuality) String() string
type NwListenerState ¶
type NwListenerState uint
const ( // Nw_listener_state_cancelled: The listener has been canceled. Nw_listener_state_cancelled NwListenerState = 4 // Nw_listener_state_failed: The listener has encountered a fatal error. Nw_listener_state_failed NwListenerState = 3 // Nw_listener_state_invalid: The listener is not valid. Nw_listener_state_invalid NwListenerState = 0 // Nw_listener_state_ready: The listener is running and able to receive incoming connections. Nw_listener_state_ready NwListenerState = 2 // Nw_listener_state_waiting: The listener is waiting for a network to become available. Nw_listener_state_waiting NwListenerState = 1 )
func (NwListenerState) String ¶
func (e NwListenerState) String() string
type NwMultipathService ¶
type NwMultipathService uint
const ( // Nw_multipath_service_aggregate: Enable multipath to maximize bandwidth across multiple interfaces. Nw_multipath_service_aggregate NwMultipathService = 3 // Nw_multipath_service_disabled: Disable multipath. Nw_multipath_service_disabled NwMultipathService = 0 // Nw_multipath_service_handover: Enable multipath, but only use other interfaces when the primary interface is lost. Nw_multipath_service_handover NwMultipathService = 1 // Nw_multipath_service_interactive: Enable multipath to use other interfaces when the primary interface encounters loss or delay. Nw_multipath_service_interactive NwMultipathService = 2 )
func Nw_parameters_get_multipath_service ¶
func Nw_parameters_get_multipath_service(parameters Nw_parameters_t) NwMultipathService
Nw_parameters_get_multipath_service checks if multipath is enabled on a connection.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_multipath_service(_:)
func (NwMultipathService) String ¶
func (e NwMultipathService) String() string
type NwMultipathVersion ¶
type NwMultipathVersion int
const ( Nw_multipath_version_0 NwMultipathVersion = 0 Nw_multipath_version_1 NwMultipathVersion = 1 Nw_multipath_version_unspecified NwMultipathVersion = -1 )
func (NwMultipathVersion) String ¶
func (e NwMultipathVersion) String() string
type NwParametersExpiredDnsBehavior ¶
type NwParametersExpiredDnsBehavior uint
const ( // Nw_parameters_expired_dns_behavior_allow: Explicitly allow the use of expired DNS answers. Nw_parameters_expired_dns_behavior_allow NwParametersExpiredDnsBehavior = 1 // Nw_parameters_expired_dns_behavior_default: Let the system determine whether or not to allow expired DNS answers. Nw_parameters_expired_dns_behavior_default NwParametersExpiredDnsBehavior = 0 Nw_parameters_expired_dns_behavior_persistent NwParametersExpiredDnsBehavior = 3 // Nw_parameters_expired_dns_behavior_prohibit: Explicitly prohibit the use of expired DNS answers. Nw_parameters_expired_dns_behavior_prohibit NwParametersExpiredDnsBehavior = 2 )
func Nw_parameters_get_expired_dns_behavior ¶
func Nw_parameters_get_expired_dns_behavior(parameters Nw_parameters_t) NwParametersExpiredDnsBehavior
Nw_parameters_get_expired_dns_behavior 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 ¶
func (e NwParametersExpiredDnsBehavior) String() string
type NwPathStatus ¶
type NwPathStatus int
const ( // Nw_path_status_invalid: The path is not valid. Nw_path_status_invalid NwPathStatus = 0 // Nw_path_status_satisfiable: The path is not currently available, but establishing a new connection may activate the path. Nw_path_status_satisfiable NwPathStatus = 3 // Nw_path_status_satisfied: The path is available to establish connections and send data. Nw_path_status_satisfied NwPathStatus = 1 // Nw_path_status_unsatisfied: The path is not available for use. Nw_path_status_unsatisfied NwPathStatus = 2 )
func Nw_path_get_status ¶
func Nw_path_get_status(path Nw_path_t) NwPathStatus
Nw_path_get_status checks whether a path can be used by connections.
See: https://developer.apple.com/documentation/Network/nw_path_get_status(_:)
func (NwPathStatus) String ¶
func (e NwPathStatus) String() string
type NwPathUnsatisfiedReason ¶
type NwPathUnsatisfiedReason uint
const ( Nw_path_unsatisfied_reason_cellular_denied NwPathUnsatisfiedReason = 1 Nw_path_unsatisfied_reason_local_network_denied NwPathUnsatisfiedReason = 3 Nw_path_unsatisfied_reason_not_available NwPathUnsatisfiedReason = 0 Nw_path_unsatisfied_reason_vpn_inactive NwPathUnsatisfiedReason = 4 Nw_path_unsatisfied_reason_wifi_denied NwPathUnsatisfiedReason = 2 )
func Nw_path_get_unsatisfied_reason ¶
func Nw_path_get_unsatisfied_reason(path Nw_path_t) NwPathUnsatisfiedReason
Nw_path_get_unsatisfied_reason.
See: https://developer.apple.com/documentation/Network/nw_path_get_unsatisfied_reason(_:)
func (NwPathUnsatisfiedReason) String ¶
func (e NwPathUnsatisfiedReason) String() string
type NwQuicStreamType ¶
type NwQuicStreamType uint
const ( Nw_quic_stream_type_bidirectional NwQuicStreamType = 1 Nw_quic_stream_type_datagram NwQuicStreamType = 3 Nw_quic_stream_type_unidirectional NwQuicStreamType = 2 Nw_quic_stream_type_unknown NwQuicStreamType = 0 )
func (NwQuicStreamType) String ¶
func (e NwQuicStreamType) String() string
type NwReportResolutionProtocol ¶
type NwReportResolutionProtocol uint
const ( // Nw_report_resolution_protocol_https: The connection used HTTPS for DNS resolution. Nw_report_resolution_protocol_https NwReportResolutionProtocol = 4 // Nw_report_resolution_protocol_tcp: The connection used cleartext TCP for DNS resolution. Nw_report_resolution_protocol_tcp NwReportResolutionProtocol = 2 // Nw_report_resolution_protocol_tls: The connection used TLS for DNS resolution. Nw_report_resolution_protocol_tls NwReportResolutionProtocol = 3 // Nw_report_resolution_protocol_udp: The connection used cleartext UDP for DNS resolution. Nw_report_resolution_protocol_udp NwReportResolutionProtocol = 1 // Nw_report_resolution_protocol_unknown: The DNS response protocol is unknown or not applicable. Nw_report_resolution_protocol_unknown NwReportResolutionProtocol = 0 )
func Nw_resolution_report_get_protocol ¶
func Nw_resolution_report_get_protocol(resolution_report Nw_resolution_report_t) NwReportResolutionProtocol
Nw_resolution_report_get_protocol 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 ¶
func (e NwReportResolutionProtocol) String() string
type NwReportResolutionSource ¶
type NwReportResolutionSource uint
const ( // Nw_report_resolution_source_cache: The DNS response was retrieved from a local cache. Nw_report_resolution_source_cache NwReportResolutionSource = 2 // Nw_report_resolution_source_expired_cache: The DNS response had expired and was retrieved from a local cache. Nw_report_resolution_source_expired_cache NwReportResolutionSource = 3 // Nw_report_resolution_source_query: The DNS response was received from the network. Nw_report_resolution_source_query NwReportResolutionSource = 1 )
func Nw_resolution_report_get_source ¶
func Nw_resolution_report_get_source(resolution_report Nw_resolution_report_t) NwReportResolutionSource
Nw_resolution_report_get_source accesses the source of the DNS response.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_get_source(_:)
func (NwReportResolutionSource) String ¶
func (e NwReportResolutionSource) String() string
type NwServiceClass ¶
type NwServiceClass uint
const ( // Nw_service_class_background: Bulk traffic, or traffic that can be deprioritized behind foreground traffic. Nw_service_class_background NwServiceClass = 1 // Nw_service_class_best_effort: Default priority traffic. Nw_service_class_best_effort NwServiceClass = 0 // Nw_service_class_interactive_video: Interactive video traffic. Nw_service_class_interactive_video NwServiceClass = 2 // Nw_service_class_interactive_voice: Interactive voice traffic. Nw_service_class_interactive_voice NwServiceClass = 3 // Nw_service_class_responsive_data: Responsive user-data traffic. Nw_service_class_responsive_data NwServiceClass = 4 // Nw_service_class_signaling: Signaling control traffic. Nw_service_class_signaling NwServiceClass = 5 )
func Nw_ip_metadata_get_service_class ¶
func Nw_ip_metadata_get_service_class(metadata Nw_protocol_metadata_t) NwServiceClass
Nw_ip_metadata_get_service_class 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 Nw_parameters_get_service_class ¶
func Nw_parameters_get_service_class(parameters Nw_parameters_t) NwServiceClass
Nw_parameters_get_service_class checks the level of service quality used for connections.
See: https://developer.apple.com/documentation/Network/nw_parameters_get_service_class(_:)
func (NwServiceClass) String ¶
func (e NwServiceClass) String() string
type NwTxtRecordFindKey ¶
type NwTxtRecordFindKey uint
const ( // Nw_txt_record_find_key_empty_value: The key is present and has an empty associated value. Nw_txt_record_find_key_empty_value NwTxtRecordFindKey = 3 // Nw_txt_record_find_key_invalid: The key is not valid. Nw_txt_record_find_key_invalid NwTxtRecordFindKey = 0 // Nw_txt_record_find_key_no_value: The key is present but has no associated value. Nw_txt_record_find_key_no_value NwTxtRecordFindKey = 2 // Nw_txt_record_find_key_non_empty_value: The key has an associated value. Nw_txt_record_find_key_non_empty_value NwTxtRecordFindKey = 4 // Nw_txt_record_find_key_not_present: The key is not present in the dictionary. Nw_txt_record_find_key_not_present NwTxtRecordFindKey = 1 )
func Nw_txt_record_find_key ¶
func Nw_txt_record_find_key(txt_record Nw_txt_record_t, key string) NwTxtRecordFindKey
Nw_txt_record_find_key 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 ¶
func (e NwTxtRecordFindKey) String() string
type NwWsCloseCode ¶
type NwWsCloseCode uint
const ( // Nw_ws_close_code_abnormal_closure: This value is reserved for local errors and indicates that no Close message was received. Nw_ws_close_code_abnormal_closure NwWsCloseCode = 1006 // Nw_ws_close_code_going_away: An endpoint is no longer available, such as when a server is down. Nw_ws_close_code_going_away NwWsCloseCode = 1001 // Nw_ws_close_code_internal_server_error: The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request. Nw_ws_close_code_internal_server_error NwWsCloseCode = 1011 // Nw_ws_close_code_invalid_frame_payload_data: An endpoint is terminating the connection because it received data within a message that was inconsistent with the message type. Nw_ws_close_code_invalid_frame_payload_data NwWsCloseCode = 1007 // Nw_ws_close_code_mandatory_extension: The WebSocket client expected the server to negotiate one or more extensions that were not negotiated. Nw_ws_close_code_mandatory_extension NwWsCloseCode = 1010 // Nw_ws_close_code_message_too_big: An endpoint is terminating the connection because it received a message that is too big for it to process. Nw_ws_close_code_message_too_big NwWsCloseCode = 1009 // Nw_ws_close_code_no_status_received: This value is reserved for local errors and indicates that no Close code was received. Nw_ws_close_code_no_status_received NwWsCloseCode = 1005 // Nw_ws_close_code_normal_closure: A normal closure occurred with no errors. Nw_ws_close_code_normal_closure NwWsCloseCode = 1000 // Nw_ws_close_code_policy_violation: An endpoint is terminating the connection because it received a message that violates its policy. Nw_ws_close_code_policy_violation NwWsCloseCode = 1008 // Nw_ws_close_code_protocol_error: An endpoint is terminating the connection due to a protocol error. Nw_ws_close_code_protocol_error NwWsCloseCode = 1002 // Nw_ws_close_code_tls_handshake: This value is reserved for local errors and indicates that the TLS handshake failed. Nw_ws_close_code_tls_handshake NwWsCloseCode = 1015 // Nw_ws_close_code_unsupported_data: An endpoint is terminating the connection because it received a type of data it cannot accept. Nw_ws_close_code_unsupported_data NwWsCloseCode = 1003 )
func Nw_ws_metadata_get_close_code ¶
func Nw_ws_metadata_get_close_code(metadata Nw_protocol_metadata_t) NwWsCloseCode
Nw_ws_metadata_get_close_code accesses the close code on a WebSocket message.
See: https://developer.apple.com/documentation/Network/nw_ws_metadata_get_close_code(_:)
func (NwWsCloseCode) String ¶
func (e NwWsCloseCode) String() string
type NwWsOpcode ¶
type NwWsOpcode int
const ( // Nw_ws_opcode_binary: A binary data message. Nw_ws_opcode_binary NwWsOpcode = 2 // Nw_ws_opcode_close: A message indicating a close of the connection. Nw_ws_opcode_close NwWsOpcode = 8 // Nw_ws_opcode_cont: A continuation message. Nw_ws_opcode_cont NwWsOpcode = 0 // Nw_ws_opcode_invalid: The message is not valid. Nw_ws_opcode_invalid NwWsOpcode = -1 // Nw_ws_opcode_ping: A Ping message, which requests a Pong from the peer. Nw_ws_opcode_ping NwWsOpcode = 9 // Nw_ws_opcode_pong: A Pong message in response to a Ping from the peer. Nw_ws_opcode_pong NwWsOpcode = 10 // Nw_ws_opcode_text: A text data message. Nw_ws_opcode_text NwWsOpcode = 1 )
func Nw_ws_metadata_get_opcode ¶
func Nw_ws_metadata_get_opcode(metadata Nw_protocol_metadata_t) NwWsOpcode
Nw_ws_metadata_get_opcode checks the type code on a WebSocket message.
See: https://developer.apple.com/documentation/Network/nw_ws_metadata_get_opcode(_:)
func (NwWsOpcode) String ¶
func (e NwWsOpcode) String() string
type NwWsResponseStatus ¶
type NwWsResponseStatus int
const ( // Nw_ws_response_status_accept: The client request is being accepted. Nw_ws_response_status_accept NwWsResponseStatus = 1 // Nw_ws_response_status_invalid: An invalid response status. Nw_ws_response_status_invalid NwWsResponseStatus = 0 // Nw_ws_response_status_reject: The client request is being rejected. Nw_ws_response_status_reject NwWsResponseStatus = 2 )
func Nw_ws_response_get_status ¶
func Nw_ws_response_get_status(response Nw_ws_response_t) NwWsResponseStatus
Nw_ws_response_get_status accesses the status of a WebSocket server response.
See: https://developer.apple.com/documentation/Network/nw_ws_response_get_status(_:)
func (NwWsResponseStatus) String ¶
func (e NwWsResponseStatus) String() string
type NwWsVersion ¶
type NwWsVersion uint
const ( // Nw_ws_version_13: Version 13 of the WebSocket protocol. Nw_ws_version_13 NwWsVersion = 1 // Nw_ws_version_invalid: An invalid version. Nw_ws_version_invalid NwWsVersion = 0 )
func (NwWsVersion) String ¶
func (e NwWsVersion) String() string
type Nw_advertise_descriptor_t ¶
type Nw_advertise_descriptor_t = objectivec.Object
Nw_advertise_descriptor_t 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 Nw_advertise_descriptor_create_application_service ¶
func Nw_advertise_descriptor_create_application_service(application_service_name string) Nw_advertise_descriptor_t
Nw_advertise_descriptor_create_application_service.
func Nw_advertise_descriptor_create_bonjour_service ¶
func Nw_advertise_descriptor_create_bonjour_service(name string, type_ string, domain string) Nw_advertise_descriptor_t
Nw_advertise_descriptor_create_bonjour_service initializes a Bonjour service to advertise.
type Nw_browse_descriptor_t ¶
type Nw_browse_descriptor_t = objectivec.Object
Nw_browse_descriptor_t is a service description used to discover Bonjour services.
See: https://developer.apple.com/documentation/Network/nw_browse_descriptor_t
func Nw_browse_descriptor_create_application_service ¶
func Nw_browse_descriptor_create_application_service(application_service_name string) Nw_browse_descriptor_t
Nw_browse_descriptor_create_application_service.
func Nw_browse_descriptor_create_bonjour_service ¶
func Nw_browse_descriptor_create_bonjour_service(type_ string, domain string) Nw_browse_descriptor_t
Nw_browse_descriptor_create_bonjour_service initializes a service descriptor used to discover a Bonjour service.
See: https://developer.apple.com/documentation/Network/nw_browse_descriptor_create_bonjour_service(_:_:)
func Nw_browser_copy_browse_descriptor ¶
func Nw_browser_copy_browse_descriptor(browser Nw_browser_t) Nw_browse_descriptor_t
Nw_browser_copy_browse_descriptor accesses the service descriptor with which the browser was created.
See: https://developer.apple.com/documentation/Network/nw_browser_copy_browse_descriptor(_:)
type Nw_browse_result_change_t ¶
type Nw_browse_result_change_t = uint64
Nw_browse_result_change_t is flags describing ways in which discovered services can change between specific results.
See: https://developer.apple.com/documentation/Network/nw_browse_result_change_t
func Nw_browse_result_get_changes ¶
func Nw_browse_result_get_changes(old_result Nw_browse_result_t, new_result Nw_browse_result_t) Nw_browse_result_change_t
Nw_browse_result_get_changes compares two discovered services and calculates changes between them.
See: https://developer.apple.com/documentation/Network/nw_browse_result_get_changes(_:_:)
type Nw_browse_result_enumerate_interface_t ¶
type Nw_browse_result_enumerate_interface_t = func(objectivec.Object) bool
Nw_browse_result_enumerate_interface_t 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 Nw_browse_result_t ¶
type Nw_browse_result_t = objectivec.Object
Nw_browse_result_t is a discovered service and metadata about the service.
See: https://developer.apple.com/documentation/Network/nw_browse_result_t
type Nw_browser_browse_results_changed_handler_t ¶
type Nw_browser_browse_results_changed_handler_t = func(objectivec.Object, objectivec.Object, bool)
Nw_browser_browse_results_changed_handler_t is a handler that delivers updates about discovered services.
See: https://developer.apple.com/documentation/Network/nw_browser_browse_results_changed_handler_t
type Nw_browser_state_changed_handler_t ¶
type Nw_browser_state_changed_handler_t = func(NwBrowserState, Nw_error_t)
Nw_browser_state_changed_handler_t 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 Nw_browser_t ¶
type Nw_browser_t = objectivec.Object
Nw_browser_t is an object you use to browse for available network services.
See: https://developer.apple.com/documentation/Network/nw_browser_t
func Nw_browser_create ¶
func Nw_browser_create(descriptor Nw_browse_descriptor_t, parameters Nw_parameters_t) Nw_browser_t
Nw_browser_create initializes a browser with a type of service to discover.
See: https://developer.apple.com/documentation/Network/nw_browser_create(_:_:)
type Nw_connection_boolean_event_handler_t ¶
type Nw_connection_boolean_event_handler_t = func(bool)
Nw_connection_boolean_event_handler_t 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 Nw_connection_group_new_connection_handler_t ¶
type Nw_connection_group_new_connection_handler_t = func(objectivec.Object)
See: https://developer.apple.com/documentation/Network/nw_connection_group_new_connection_handler_t
type Nw_connection_group_receive_handler_t ¶
type Nw_connection_group_receive_handler_t = func(objectivec.Object, objectivec.Object, bool)
Nw_connection_group_receive_handler_t 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 Nw_connection_group_send_completion_t ¶
type Nw_connection_group_send_completion_t = func(Nw_error_t)
Nw_connection_group_send_completion_t 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 Nw_connection_group_state_changed_handler_t ¶
type Nw_connection_group_state_changed_handler_t = func(NwConnectionGroupState, Nw_error_t)
Nw_connection_group_state_changed_handler_t is a handler that receives connection group state updates.
See: https://developer.apple.com/documentation/Network/nw_connection_group_state_changed_handler_t
type Nw_connection_group_t ¶
type Nw_connection_group_t = objectivec.Object
Nw_connection_group_t 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 Nw_connection_group_create ¶
func Nw_connection_group_create(group_descriptor Nw_group_descriptor_t, parameters Nw_parameters_t) Nw_connection_group_t
Nw_connection_group_create initializes a new connection group with a group identifier.
See: https://developer.apple.com/documentation/Network/nw_connection_group_create(_:_:)
type Nw_connection_path_event_handler_t ¶
type Nw_connection_path_event_handler_t = func(objectivec.Object)
Nw_connection_path_event_handler_t is a handler that delivers network path updates.
See: https://developer.apple.com/documentation/Network/nw_connection_path_event_handler_t
type Nw_connection_receive_completion_t ¶
type Nw_connection_receive_completion_t = func(objectivec.Object, objectivec.Object, bool, Nw_error_t)
Nw_connection_receive_completion_t 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 Nw_connection_send_completion_t ¶
type Nw_connection_send_completion_t = func(Nw_error_t)
Nw_connection_send_completion_t 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 Nw_connection_state_changed_handler_t ¶
type Nw_connection_state_changed_handler_t = func(NwConnectionState, Nw_error_t)
Nw_connection_state_changed_handler_t 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 Nw_connection_t ¶
type Nw_connection_t = objectivec.Object
Nw_connection_t is a bidirectional data connection between a local endpoint and a remote endpoint.
See: https://developer.apple.com/documentation/Network/nw_connection_t
func Nw_connection_create ¶
func Nw_connection_create(endpoint Nw_endpoint_t, parameters Nw_parameters_t) Nw_connection_t
Nw_connection_create initializes a new connection to a remote endpoint.
See: https://developer.apple.com/documentation/Network/nw_connection_create(_:_:)
func Nw_connection_group_extract_connection ¶
func Nw_connection_group_extract_connection(group Nw_connection_group_t, endpoint Nw_endpoint_t, protocol_options Nw_protocol_options_t) Nw_connection_t
Nw_connection_group_extract_connection.
See: https://developer.apple.com/documentation/Network/nw_connection_group_extract_connection(_:_:_:)
func Nw_connection_group_extract_connection_for_message ¶
func Nw_connection_group_extract_connection_for_message(group Nw_connection_group_t, context Nw_content_context_t) Nw_connection_t
Nw_connection_group_extract_connection_for_message converts a message you receive from an endpoint into a connection object that you use for long-term communication with that endpoint.
type Nw_content_context_t ¶
type Nw_content_context_t = objectivec.Object
Nw_content_context_t 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 Nw_content_context_copy_antecedent ¶
func Nw_content_context_copy_antecedent(context Nw_content_context_t) Nw_content_context_t
Nw_content_context_copy_antecedent 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 Nw_content_context_create ¶
func Nw_content_context_create(context_identifier string) Nw_content_context_t
Nw_content_context_create initializes a custom message context.
See: https://developer.apple.com/documentation/Network/nw_content_context_create(_:)
type Nw_data_transfer_report_collect_block_t ¶
type Nw_data_transfer_report_collect_block_t = func(objectivec.Object)
Nw_data_transfer_report_collect_block_t 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 Nw_data_transfer_report_t ¶
type Nw_data_transfer_report_t = objectivec.Object
Nw_data_transfer_report_t 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 Nw_connection_create_new_data_transfer_report ¶
func Nw_connection_create_new_data_transfer_report(connection Nw_connection_t) Nw_data_transfer_report_t
Nw_connection_create_new_data_transfer_report 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(_:)
type Nw_endpoint_t ¶
type Nw_endpoint_t = objectivec.Object
Nw_endpoint_t is a local or remote endpoint in a network connection.
See: https://developer.apple.com/documentation/Network/nw_endpoint_t
func Nw_browse_result_copy_endpoint ¶
func Nw_browse_result_copy_endpoint(result Nw_browse_result_t) Nw_endpoint_t
Nw_browse_result_copy_endpoint the discovered service endpoint.
See: https://developer.apple.com/documentation/Network/nw_browse_result_copy_endpoint(_:)
func Nw_connection_copy_endpoint ¶
func Nw_connection_copy_endpoint(connection Nw_connection_t) Nw_endpoint_t
Nw_connection_copy_endpoint accesses the endpoint with which the connection was created.
See: https://developer.apple.com/documentation/Network/nw_connection_copy_endpoint(_:)
func Nw_connection_group_copy_local_endpoint_for_message ¶
func Nw_connection_group_copy_local_endpoint_for_message(group Nw_connection_group_t, context Nw_content_context_t) Nw_endpoint_t
Nw_connection_group_copy_local_endpoint_for_message accesses the local address and port you use to receive the message.
func Nw_connection_group_copy_remote_endpoint_for_message ¶
func Nw_connection_group_copy_remote_endpoint_for_message(group Nw_connection_group_t, context Nw_content_context_t) Nw_endpoint_t
Nw_connection_group_copy_remote_endpoint_for_message accesses the endpoint that originates the message you receive.
func Nw_endpoint_create_address ¶
func Nw_endpoint_create_address(address uintptr) Nw_endpoint_t
Nw_endpoint_create_address creates a network endpoint with an address structure.
See: https://developer.apple.com/documentation/Network/nw_endpoint_create_address(_:)
func Nw_endpoint_create_bonjour_service ¶
func Nw_endpoint_create_bonjour_service(name string, type_ string, domain string) Nw_endpoint_t
Nw_endpoint_create_bonjour_service 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 Nw_endpoint_create_host ¶
func Nw_endpoint_create_host(hostname string, port string) Nw_endpoint_t
Nw_endpoint_create_host 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 Nw_endpoint_create_url ¶
func Nw_endpoint_create_url(url string) Nw_endpoint_t
Nw_endpoint_create_url creates a network endpoint with a URL string.
See: https://developer.apple.com/documentation/Network/nw_endpoint_create_url(_:)
func Nw_establishment_report_copy_proxy_endpoint ¶
func Nw_establishment_report_copy_proxy_endpoint(report Nw_establishment_report_t) Nw_endpoint_t
Nw_establishment_report_copy_proxy_endpoint accesses the endpoint of the proxy the connection used.
See: https://developer.apple.com/documentation/Network/nw_establishment_report_copy_proxy_endpoint(_:)
func Nw_framer_copy_local_endpoint ¶
func Nw_framer_copy_local_endpoint(framer Nw_framer_t) Nw_endpoint_t
Nw_framer_copy_local_endpoint 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 Nw_framer_copy_remote_endpoint ¶
func Nw_framer_copy_remote_endpoint(framer Nw_framer_t) Nw_endpoint_t
Nw_framer_copy_remote_endpoint 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 Nw_parameters_copy_local_endpoint ¶
func Nw_parameters_copy_local_endpoint(parameters Nw_parameters_t) Nw_endpoint_t
Nw_parameters_copy_local_endpoint 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 Nw_path_copy_effective_local_endpoint ¶
func Nw_path_copy_effective_local_endpoint(path Nw_path_t) Nw_endpoint_t
Nw_path_copy_effective_local_endpoint 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 Nw_path_copy_effective_remote_endpoint ¶
func Nw_path_copy_effective_remote_endpoint(path Nw_path_t) Nw_endpoint_t
Nw_path_copy_effective_remote_endpoint 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 Nw_resolution_report_copy_preferred_endpoint ¶
func Nw_resolution_report_copy_preferred_endpoint(resolution_report Nw_resolution_report_t) Nw_endpoint_t
Nw_resolution_report_copy_preferred_endpoint 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 Nw_resolution_report_copy_successful_endpoint ¶
func Nw_resolution_report_copy_successful_endpoint(resolution_report Nw_resolution_report_t) Nw_endpoint_t
Nw_resolution_report_copy_successful_endpoint accesses the resolved endpoint that led to the established connection.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_copy_successful_endpoint(_:)
type Nw_error_t ¶
type Nw_error_t struct {
objectivec.Object
}
func (Nw_error_t) Code ¶
func (o Nw_error_t) Code() int
Code returns the numeric error code from Network.framework.
func (Nw_error_t) CopyCFError ¶
func (o Nw_error_t) CopyCFError() corefoundation.CFErrorRef
CopyCFError returns a retained Core Foundation copy of the network error.
func (Nw_error_t) Domain ¶
func (o Nw_error_t) Domain() NwErrorDomain
Domain returns the structured Network.framework error domain.
func (Nw_error_t) DomainString ¶
func (o Nw_error_t) DomainString() string
DomainString returns the string form of the Network.framework error domain.
func (Nw_error_t) Error ¶
func (o Nw_error_t) Error() string
Error returns the Objective-C description for the network error.
func (Nw_error_t) IsZero ¶
func (o Nw_error_t) IsZero() bool
IsZero reports whether the network error is nil.
type Nw_establishment_report_access_block_t ¶
type Nw_establishment_report_access_block_t = func(objectivec.Object)
Nw_establishment_report_access_block_t 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 Nw_establishment_report_t ¶
type Nw_establishment_report_t = objectivec.Object
Nw_establishment_report_t is a report that provides metrics about how a connection was established.
See: https://developer.apple.com/documentation/Network/nw_establishment_report_t
type Nw_ethernet_address_t ¶
Nw_ethernet_address_t is a 48-bit Ethernet address.
See: https://developer.apple.com/documentation/Network/nw_ethernet_address_t
type Nw_ethernet_channel_receive_handler_t ¶
type Nw_ethernet_channel_receive_handler_t = func(objectivec.Object, uint32, *uint8, *uint8)
Nw_ethernet_channel_receive_handler_t is a handler that delivers inbound Ethernet frames.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_receive_handler_t
type Nw_ethernet_channel_send_completion_t ¶
type Nw_ethernet_channel_send_completion_t = func(Nw_error_t)
Nw_ethernet_channel_send_completion_t 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 Nw_ethernet_channel_state_changed_handler_t ¶
type Nw_ethernet_channel_state_changed_handler_t = func(NwEthernetChannelState, Nw_error_t)
Nw_ethernet_channel_state_changed_handler_t 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 Nw_ethernet_channel_t ¶
type Nw_ethernet_channel_t = objectivec.Object
Nw_ethernet_channel_t is an object you use to send and receive custom Ethernet frames.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_t
func Nw_ethernet_channel_create ¶
func Nw_ethernet_channel_create(ether_type uint16, interface_ Nw_interface_t) Nw_ethernet_channel_t
Nw_ethernet_channel_create 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 Nw_ethernet_channel_create_with_parameters ¶
func Nw_ethernet_channel_create_with_parameters(ether_type uint16, interface_ Nw_interface_t, parameters Nw_parameters_t) Nw_ethernet_channel_t
Nw_ethernet_channel_create_with_parameters.
See: https://developer.apple.com/documentation/Network/nw_ethernet_channel_create_with_parameters(_:_:_:)
type Nw_framer_block_t ¶
type Nw_framer_block_t = func()
Nw_framer_block_t 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 Nw_framer_cleanup_handler_t ¶
type Nw_framer_cleanup_handler_t = func(objectivec.Object)
Nw_framer_cleanup_handler_t 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 Nw_framer_input_handler_t ¶
type Nw_framer_input_handler_t = func(objectivec.Object) uint64
Nw_framer_input_handler_t 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 Nw_framer_message_dispose_value_t ¶
Nw_framer_message_dispose_value_t 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 Nw_framer_message_t ¶
type Nw_framer_message_t = Nw_protocol_metadata_t
Nw_framer_message_t 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 Nw_framer_message_create ¶
func Nw_framer_message_create(framer Nw_framer_t) Nw_framer_message_t
Nw_framer_message_create initializes an empty message from within a framer implementation.
See: https://developer.apple.com/documentation/Network/nw_framer_message_create(_:)
func Nw_framer_protocol_create_message ¶
func Nw_framer_protocol_create_message(definition Nw_protocol_definition_t) Nw_framer_message_t
Nw_framer_protocol_create_message initializes an empty message for a custom framer definition.
See: https://developer.apple.com/documentation/Network/nw_framer_protocol_create_message(_:)
type Nw_framer_output_handler_t ¶
type Nw_framer_output_handler_t = func(objectivec.Object, objectivec.Object, uint32, bool)
Nw_framer_output_handler_t 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 Nw_framer_parse_completion_t ¶
Nw_framer_parse_completion_t 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 Nw_framer_start_handler_t ¶
type Nw_framer_start_handler_t = func(objectivec.Object) NwFramerStartResult
Nw_framer_start_handler_t 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 Nw_framer_stop_handler_t ¶
type Nw_framer_stop_handler_t = func(objectivec.Object) bool
Nw_framer_stop_handler_t 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 Nw_framer_t ¶
type Nw_framer_t = objectivec.Object
Nw_framer_t is an object that represents a single instance of your custom protocol running in a connection.
See: https://developer.apple.com/documentation/Network/nw_framer_t
type Nw_framer_wakeup_handler_t ¶
type Nw_framer_wakeup_handler_t = func(objectivec.Object)
Nw_framer_wakeup_handler_t is a handler that delivers a scheduled wakeup event.
See: https://developer.apple.com/documentation/Network/nw_framer_wakeup_handler_t
type Nw_group_descriptor_enumerate_endpoints_block_t ¶
type Nw_group_descriptor_enumerate_endpoints_block_t = func(objectivec.Object) bool
Nw_group_descriptor_enumerate_endpoints_block_t 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 Nw_group_descriptor_t ¶
type Nw_group_descriptor_t = objectivec.Object
Nw_group_descriptor_t 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 Nw_connection_group_copy_descriptor ¶
func Nw_connection_group_copy_descriptor(group Nw_connection_group_t) Nw_group_descriptor_t
Nw_connection_group_copy_descriptor 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 Nw_group_descriptor_create_multicast ¶
func Nw_group_descriptor_create_multicast(multicast_group Nw_endpoint_t) Nw_group_descriptor_t
Nw_group_descriptor_create_multicast 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 Nw_group_descriptor_create_multiplex ¶
func Nw_group_descriptor_create_multiplex(remote_endpoint Nw_endpoint_t) Nw_group_descriptor_t
Nw_group_descriptor_create_multiplex.
See: https://developer.apple.com/documentation/Network/nw_group_descriptor_create_multiplex(_:)
type Nw_interface_t ¶
type Nw_interface_t = objectivec.Object
Nw_interface_t is an interface that a network connection uses to send and receive data.
See: https://developer.apple.com/documentation/Network/nw_interface_t
func Nw_data_transfer_report_copy_path_interface ¶
func Nw_data_transfer_report_copy_path_interface(report Nw_data_transfer_report_t, path_index uint32) Nw_interface_t
Nw_data_transfer_report_copy_path_interface accesses the network interface the path used.
See: https://developer.apple.com/documentation/Network/nw_data_transfer_report_copy_path_interface(_:_:)
func Nw_parameters_copy_required_interface ¶
func Nw_parameters_copy_required_interface(parameters Nw_parameters_t) Nw_interface_t
Nw_parameters_copy_required_interface accesses the interface required on connections, listeners, and browsers.
See: https://developer.apple.com/documentation/Network/nw_parameters_copy_required_interface(_:)
type Nw_listener_advertised_endpoint_changed_handler_t ¶
type Nw_listener_advertised_endpoint_changed_handler_t = func(objectivec.Object, bool)
Nw_listener_advertised_endpoint_changed_handler_t 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 Nw_listener_new_connection_group_handler_t ¶
type Nw_listener_new_connection_group_handler_t = func(objectivec.Object)
See: https://developer.apple.com/documentation/Network/nw_listener_new_connection_group_handler_t
type Nw_listener_new_connection_handler_t ¶
type Nw_listener_new_connection_handler_t = func(objectivec.Object)
Nw_listener_new_connection_handler_t is a handler that delivers inbound connections.
See: https://developer.apple.com/documentation/Network/nw_listener_new_connection_handler_t
type Nw_listener_state_changed_handler_t ¶
type Nw_listener_state_changed_handler_t = func(NwListenerState, Nw_error_t)
Nw_listener_state_changed_handler_t 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 Nw_listener_t ¶
type Nw_listener_t = objectivec.Object
Nw_listener_t is an object you use to listen for incoming network connections.
See: https://developer.apple.com/documentation/Network/nw_listener_t
func Nw_listener_create ¶
func Nw_listener_create(parameters Nw_parameters_t) Nw_listener_t
Nw_listener_create initializes a network listener, which will select a random port.
See: https://developer.apple.com/documentation/Network/nw_listener_create(_:)
func Nw_listener_create_with_connection ¶
func Nw_listener_create_with_connection(connection Nw_connection_t, parameters Nw_parameters_t) Nw_listener_t
Nw_listener_create_with_connection 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 Nw_listener_create_with_launchd_key ¶
func Nw_listener_create_with_launchd_key(parameters Nw_parameters_t, launchd_key string) Nw_listener_t
Nw_listener_create_with_launchd_key.
See: https://developer.apple.com/documentation/Network/nw_listener_create_with_launchd_key(_:_:)
func Nw_listener_create_with_port ¶
func Nw_listener_create_with_port(port string, parameters Nw_parameters_t) Nw_listener_t
Nw_listener_create_with_port initializes a network listener with a specified local port.
See: https://developer.apple.com/documentation/Network/nw_listener_create_with_port(_:_:)
type Nw_object_t ¶
type Nw_object_t = objectivec.Object
Nw_object_t is the generic type for objects in the Network framework.
See: https://developer.apple.com/documentation/Network/nw_object_t
type Nw_parameters_attribution_t ¶
type Nw_parameters_attribution_t uint8
See: https://developer.apple.com/documentation/Network/nw_parameters_attribution_t
const ( // Nw_parameters_attribution_developer: A developer-initiated network request. Nw_parameters_attribution_developer Nw_parameters_attribution_t = 1 // Nw_parameters_attribution_user: The user explicitly directs the app to make a network request. Nw_parameters_attribution_user Nw_parameters_attribution_t = 2 )
func Nw_parameters_get_attribution ¶
func Nw_parameters_get_attribution(parameters Nw_parameters_t) Nw_parameters_attribution_t
Nw_parameters_get_attribution 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 (Nw_parameters_attribution_t) String ¶
func (e Nw_parameters_attribution_t) String() string
type Nw_parameters_configure_protocol_block_t ¶
type Nw_parameters_configure_protocol_block_t = func(objectivec.Object)
Nw_parameters_configure_protocol_block_t 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 Nw_parameters_iterate_interface_types_block_t ¶
type Nw_parameters_iterate_interface_types_block_t = func(NwInterfaceType) bool
Nw_parameters_iterate_interface_types_block_t 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 Nw_parameters_iterate_interfaces_block_t ¶
type Nw_parameters_iterate_interfaces_block_t = func(objectivec.Object) bool
Nw_parameters_iterate_interfaces_block_t 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 Nw_parameters_t ¶
type Nw_parameters_t = objectivec.Object
Nw_parameters_t 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 Nw_browser_copy_parameters ¶
func Nw_browser_copy_parameters(browser Nw_browser_t) Nw_parameters_t
Nw_browser_copy_parameters accesses the parameters with which the browser was created.
See: https://developer.apple.com/documentation/Network/nw_browser_copy_parameters(_:)
func Nw_connection_copy_parameters ¶
func Nw_connection_copy_parameters(connection Nw_connection_t) Nw_parameters_t
Nw_connection_copy_parameters accesses the parameters with which the connection was created.
See: https://developer.apple.com/documentation/Network/nw_connection_copy_parameters(_:)
func Nw_connection_group_copy_parameters ¶
func Nw_connection_group_copy_parameters(group Nw_connection_group_t) Nw_parameters_t
Nw_connection_group_copy_parameters accesses the parameters with which you initialize the connection group.
See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_parameters(_:)
func Nw_framer_copy_parameters ¶
func Nw_framer_copy_parameters(framer Nw_framer_t) Nw_parameters_t
Nw_framer_copy_parameters accesses the parameters of the connection in which your protocol is running.
See: https://developer.apple.com/documentation/Network/nw_framer_copy_parameters(_:)
func Nw_parameters_copy ¶
func Nw_parameters_copy(parameters Nw_parameters_t) Nw_parameters_t
Nw_parameters_copy peforms a deep copy of a parameters object.
See: https://developer.apple.com/documentation/Network/nw_parameters_copy(_:)
func Nw_parameters_create ¶
func Nw_parameters_create() Nw_parameters_t
Nw_parameters_create initializes parameters for connections, listeners, and browsers with no protocols specified.
See: https://developer.apple.com/documentation/Network/nw_parameters_create()
func Nw_parameters_create_application_service ¶
func Nw_parameters_create_application_service() Nw_parameters_t
Nw_parameters_create_application_service.
See: https://developer.apple.com/documentation/Network/nw_parameters_create_application_service()
func Nw_parameters_create_custom_ip ¶
func Nw_parameters_create_custom_ip(custom_ip_protocol_number uint8, configure_ip Nw_parameters_configure_protocol_block_t) Nw_parameters_t
Nw_parameters_create_custom_ip initializes parameters for connections and listeners using a custom IP protocol.
See: https://developer.apple.com/documentation/Network/nw_parameters_create_custom_ip(_:_:)
func Nw_parameters_create_quic ¶
func Nw_parameters_create_quic(configure_quic Nw_parameters_configure_protocol_block_t) Nw_parameters_t
Nw_parameters_create_quic initializes parameters for QUIC connections and listeners.
See: https://developer.apple.com/documentation/Network/nw_parameters_create_quic(_:)
func Nw_parameters_create_secure_tcp ¶
func Nw_parameters_create_secure_tcp(configure_tls Nw_parameters_configure_protocol_block_t, configure_tcp Nw_parameters_configure_protocol_block_t) Nw_parameters_t
Nw_parameters_create_secure_tcp initializes parameters for TLS or TCP connections and listeners.
See: https://developer.apple.com/documentation/Network/nw_parameters_create_secure_tcp(_:_:)
func Nw_parameters_create_secure_udp ¶
func Nw_parameters_create_secure_udp(configure_dtls Nw_parameters_configure_protocol_block_t, configure_udp Nw_parameters_configure_protocol_block_t) Nw_parameters_t
Nw_parameters_create_secure_udp initializes parameters for DTLS or UDP connections and listeners.
See: https://developer.apple.com/documentation/Network/nw_parameters_create_secure_udp(_:_:)
type Nw_path_enumerate_gateways_block_t ¶
type Nw_path_enumerate_gateways_block_t = func(objectivec.Object) bool
Nw_path_enumerate_gateways_block_t 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 Nw_path_enumerate_interfaces_block_t ¶
type Nw_path_enumerate_interfaces_block_t = func(objectivec.Object) bool
Nw_path_enumerate_interfaces_block_t 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 Nw_path_monitor_cancel_handler_t ¶
type Nw_path_monitor_cancel_handler_t = func()
Nw_path_monitor_cancel_handler_t 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 Nw_path_monitor_t ¶
type Nw_path_monitor_t = objectivec.Object
Nw_path_monitor_t 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 Nw_path_monitor_create ¶
func Nw_path_monitor_create() Nw_path_monitor_t
Nw_path_monitor_create initializes a path monitor to observe all available interface types.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_create()
func Nw_path_monitor_create_for_ethernet_channel ¶
func Nw_path_monitor_create_for_ethernet_channel() Nw_path_monitor_t
Nw_path_monitor_create_for_ethernet_channel.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_create_for_ethernet_channel()
func Nw_path_monitor_create_with_type ¶
func Nw_path_monitor_create_with_type(required_interface_type NwInterfaceType) Nw_path_monitor_t
Nw_path_monitor_create_with_type initializes a path monitor to observe a specific interface type.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_create_with_type(_:)
type Nw_path_monitor_update_handler_t ¶
type Nw_path_monitor_update_handler_t = func(objectivec.Object)
Nw_path_monitor_update_handler_t is a handler that delivers network path updates.
See: https://developer.apple.com/documentation/Network/nw_path_monitor_update_handler_t
type Nw_path_t ¶
type Nw_path_t = objectivec.Object
Nw_path_t 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 Nw_connection_copy_current_path ¶
func Nw_connection_copy_current_path(connection Nw_connection_t) Nw_path_t
Nw_connection_copy_current_path accesses the network path the connection is using.
See: https://developer.apple.com/documentation/Network/nw_connection_copy_current_path(_:)
func Nw_connection_group_copy_path_for_message ¶
func Nw_connection_group_copy_path_for_message(group Nw_connection_group_t, context Nw_content_context_t) Nw_path_t
Nw_connection_group_copy_path_for_message accesses the network path on which you receive the message.
See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_path_for_message(_:_:)
type Nw_privacy_context_t ¶
type Nw_privacy_context_t = objectivec.Object
Nw_privacy_context_t 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 Nw_privacy_context_create ¶
func Nw_privacy_context_create(description string) Nw_privacy_context_t
Nw_privacy_context_create initializes a privacy context with a description string.
See: https://developer.apple.com/documentation/Network/nw_privacy_context_create(_:)
type Nw_protocol_definition_t ¶
type Nw_protocol_definition_t = objectivec.Object
Nw_protocol_definition_t is the abstract superclass for identifying a network protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_definition_t
func Nw_framer_create_definition ¶
func Nw_framer_create_definition(identifier string, flags uint32, start_handler Nw_framer_start_handler_t) Nw_protocol_definition_t
Nw_framer_create_definition initializes a new protocol definition based on your protocol implementation.
See: https://developer.apple.com/documentation/Network/nw_framer_create_definition(_:_:_:)
func Nw_protocol_copy_ip_definition ¶
func Nw_protocol_copy_ip_definition() Nw_protocol_definition_t
Nw_protocol_copy_ip_definition accesses the system definition of the Internet Protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_ip_definition()
func Nw_protocol_copy_quic_definition ¶
func Nw_protocol_copy_quic_definition() Nw_protocol_definition_t
Nw_protocol_copy_quic_definition accesses the system definition of the QUIC transport protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_quic_definition()
func Nw_protocol_copy_tcp_definition ¶
func Nw_protocol_copy_tcp_definition() Nw_protocol_definition_t
Nw_protocol_copy_tcp_definition accesses the system definition of the Transport Control Protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_tcp_definition()
func Nw_protocol_copy_tls_definition ¶
func Nw_protocol_copy_tls_definition() Nw_protocol_definition_t
Nw_protocol_copy_tls_definition accesses the system definition of the Transport Layer Security protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_tls_definition()
func Nw_protocol_copy_udp_definition ¶
func Nw_protocol_copy_udp_definition() Nw_protocol_definition_t
Nw_protocol_copy_udp_definition accesses the system definition of the User Datagram Protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_udp_definition()
func Nw_protocol_copy_ws_definition ¶
func Nw_protocol_copy_ws_definition() Nw_protocol_definition_t
Nw_protocol_copy_ws_definition accesses the system definition of the WebSocket protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_copy_ws_definition()
func Nw_protocol_metadata_copy_definition ¶
func Nw_protocol_metadata_copy_definition(metadata Nw_protocol_metadata_t) Nw_protocol_definition_t
Nw_protocol_metadata_copy_definition accesses the protocol definition associated with the metadata object.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_copy_definition(_:)
func Nw_protocol_options_copy_definition ¶
func Nw_protocol_options_copy_definition(options Nw_protocol_options_t) Nw_protocol_definition_t
Nw_protocol_options_copy_definition accesses the protocol definition associated with the options object.
See: https://developer.apple.com/documentation/Network/nw_protocol_options_copy_definition(_:)
type Nw_protocol_metadata_t ¶
type Nw_protocol_metadata_t = objectivec.Object
Nw_protocol_metadata_t is the abstract superclass for specifying metadata about a network protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_metadata_t
func Nw_connection_copy_protocol_metadata ¶
func Nw_connection_copy_protocol_metadata(connection Nw_connection_t, definition Nw_protocol_definition_t) Nw_protocol_metadata_t
Nw_connection_copy_protocol_metadata retrieves the connection-wide metadata for a specific protocol.
See: https://developer.apple.com/documentation/Network/nw_connection_copy_protocol_metadata(_:_:)
func Nw_connection_group_copy_protocol_metadata ¶
func Nw_connection_group_copy_protocol_metadata(group Nw_connection_group_t, definition Nw_protocol_definition_t) Nw_protocol_metadata_t
Nw_connection_group_copy_protocol_metadata.
See: https://developer.apple.com/documentation/Network/nw_connection_group_copy_protocol_metadata(_:_:)
func Nw_connection_group_copy_protocol_metadata_for_message ¶
func Nw_connection_group_copy_protocol_metadata_for_message(group Nw_connection_group_t, context Nw_content_context_t, definition Nw_protocol_definition_t) Nw_protocol_metadata_t
Nw_connection_group_copy_protocol_metadata_for_message.
func Nw_content_context_copy_protocol_metadata ¶
func Nw_content_context_copy_protocol_metadata(context Nw_content_context_t, protocol_ Nw_protocol_definition_t) Nw_protocol_metadata_t
Nw_content_context_copy_protocol_metadata retreives the metadata associated with a specific protocol.
See: https://developer.apple.com/documentation/Network/nw_content_context_copy_protocol_metadata(_:_:)
func Nw_ip_create_metadata ¶
func Nw_ip_create_metadata() Nw_protocol_metadata_t
Nw_ip_create_metadata initializes an IP packet configuration with default settings.
See: https://developer.apple.com/documentation/Network/nw_ip_create_metadata()
func Nw_udp_create_metadata ¶
func Nw_udp_create_metadata() Nw_protocol_metadata_t
Nw_udp_create_metadata initializes a default UDP message.
See: https://developer.apple.com/documentation/Network/nw_udp_create_metadata()
func Nw_ws_create_metadata ¶
func Nw_ws_create_metadata(opcode NwWsOpcode) Nw_protocol_metadata_t
Nw_ws_create_metadata initializes a WebSocket message with a specific type code.
See: https://developer.apple.com/documentation/Network/nw_ws_create_metadata(_:)
type Nw_protocol_options_t ¶
type Nw_protocol_options_t = objectivec.Object
Nw_protocol_options_t is the abstract superclass for configuring the options of a network protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_options_t
func Nw_framer_copy_options ¶
func Nw_framer_copy_options(framer Nw_framer_t) Nw_protocol_options_t
Nw_framer_copy_options.
See: https://developer.apple.com/documentation/Network/nw_framer_copy_options(_:)
func Nw_framer_create_options ¶
func Nw_framer_create_options(framer_definition Nw_protocol_definition_t) Nw_protocol_options_t
Nw_framer_create_options initializes a set of protocol options with a custom framer definition.
See: https://developer.apple.com/documentation/Network/nw_framer_create_options(_:)
func Nw_protocol_stack_copy_internet_protocol ¶
func Nw_protocol_stack_copy_internet_protocol(stack Nw_protocol_stack_t) Nw_protocol_options_t
Nw_protocol_stack_copy_internet_protocol accesses the protocol stack’s Internet Protocol options.
See: https://developer.apple.com/documentation/Network/nw_protocol_stack_copy_internet_protocol(_:)
func Nw_protocol_stack_copy_transport_protocol ¶
func Nw_protocol_stack_copy_transport_protocol(stack Nw_protocol_stack_t) Nw_protocol_options_t
Nw_protocol_stack_copy_transport_protocol accesses the options for the protocol stack’s transport protocol.
See: https://developer.apple.com/documentation/Network/nw_protocol_stack_copy_transport_protocol(_:)
func Nw_quic_create_options ¶
func Nw_quic_create_options() Nw_protocol_options_t
Nw_quic_create_options initializes a default set of QUIC connection options.
See: https://developer.apple.com/documentation/Network/nw_quic_create_options()
func Nw_tcp_create_options ¶
func Nw_tcp_create_options() Nw_protocol_options_t
Nw_tcp_create_options initializes a default set of TCP connection options.
See: https://developer.apple.com/documentation/Network/nw_tcp_create_options()
func Nw_tls_create_options ¶
func Nw_tls_create_options() Nw_protocol_options_t
Nw_tls_create_options initializes a default set of TLS connection options.
See: https://developer.apple.com/documentation/Network/nw_tls_create_options()
func Nw_udp_create_options ¶
func Nw_udp_create_options() Nw_protocol_options_t
Nw_udp_create_options initializes a default set of UDP connection options.
See: https://developer.apple.com/documentation/Network/nw_udp_create_options()
func Nw_ws_create_options ¶
func Nw_ws_create_options(version NwWsVersion) Nw_protocol_options_t
Nw_ws_create_options initializes a default set of WebSocket connection options.
See: https://developer.apple.com/documentation/Network/nw_ws_create_options(_:)
type Nw_protocol_stack_iterate_protocols_block_t ¶
type Nw_protocol_stack_iterate_protocols_block_t = func(objectivec.Object)
Nw_protocol_stack_iterate_protocols_block_t 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 Nw_protocol_stack_t ¶
type Nw_protocol_stack_t = objectivec.Object
Nw_protocol_stack_t 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 Nw_parameters_copy_default_protocol_stack ¶
func Nw_parameters_copy_default_protocol_stack(parameters Nw_parameters_t) Nw_protocol_stack_t
Nw_parameters_copy_default_protocol_stack accesses the protocol stack used by connections and listeners.
See: https://developer.apple.com/documentation/Network/nw_parameters_copy_default_protocol_stack(_:)
type Nw_proxy_config_t ¶
type Nw_proxy_config_t = objectivec.Object
Nw_proxy_config_t is a proxy configuration for Relays, Oblivious HTTP, HTTP CONNECT, or SOCKSv5.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_t
func Nw_proxy_config_create_http_connect ¶
func Nw_proxy_config_create_http_connect(proxy_endpoint Nw_endpoint_t, proxy_tls_options Nw_protocol_options_t) Nw_proxy_config_t
Nw_proxy_config_create_http_connect 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 Nw_proxy_config_create_oblivious_http ¶
func Nw_proxy_config_create_oblivious_http(relay Nw_relay_hop_t, relay_resource_path string, gateway_key_config *uint8, gateway_key_config_length uintptr) Nw_proxy_config_t
Nw_proxy_config_create_oblivious_http 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 Nw_proxy_config_create_relay ¶
func Nw_proxy_config_create_relay(first_hop Nw_relay_hop_t, second_hop Nw_relay_hop_t) Nw_proxy_config_t
Nw_proxy_config_create_relay initializes a proxy configuration with one or two relay hops.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_create_relay(_:_:)
func Nw_proxy_config_create_socksv5 ¶
func Nw_proxy_config_create_socksv5(proxy_endpoint Nw_endpoint_t) Nw_proxy_config_t
Nw_proxy_config_create_socksv5 initializes a SOCKSv5 proxy configuration.
See: https://developer.apple.com/documentation/Network/nw_proxy_config_create_socksv5(_:)
type Nw_proxy_domain_enumerator_t ¶
type Nw_proxy_domain_enumerator_t = func(string)
See: https://developer.apple.com/documentation/Network/nw_proxy_domain_enumerator_t
type Nw_relay_hop_t ¶
type Nw_relay_hop_t = objectivec.Object
Nw_relay_hop_t is a single relay server you can chain together with other servers.
See: https://developer.apple.com/documentation/Network/nw_relay_hop_t
func Nw_relay_hop_create ¶
func Nw_relay_hop_create(http3_relay_endpoint Nw_endpoint_t, http2_relay_endpoint Nw_endpoint_t, relay_tls_options Nw_protocol_options_t) Nw_relay_hop_t
Nw_relay_hop_create 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(_:_:_:)
type Nw_report_protocol_enumerator_t ¶
type Nw_report_protocol_enumerator_t = func(objectivec.Object, uint64, uint64) bool
Nw_report_protocol_enumerator_t 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 Nw_report_resolution_enumerator_t ¶
type Nw_report_resolution_enumerator_t = func(NwReportResolutionSource, uint64, uint32, objectivec.Object, objectivec.Object) bool
Nw_report_resolution_enumerator_t 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 Nw_report_resolution_report_enumerator_t ¶
type Nw_report_resolution_report_enumerator_t = func(objectivec.Object) bool
Nw_report_resolution_report_enumerator_t 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 Nw_resolution_report_t ¶
type Nw_resolution_report_t = objectivec.Object
Nw_resolution_report_t is a description of a single DNS resolution step.
See: https://developer.apple.com/documentation/Network/nw_resolution_report_t
type Nw_resolver_config_t ¶
type Nw_resolver_config_t = objectivec.Object
Nw_resolver_config_t is a DNS server configuration that uses TLS or HTTPS.
See: https://developer.apple.com/documentation/Network/nw_resolver_config_t
func Nw_resolver_config_create_https ¶
func Nw_resolver_config_create_https(url_endpoint Nw_endpoint_t) Nw_resolver_config_t
Nw_resolver_config_create_https initializes a DNS-over-HTTPS resolver configuration.
See: https://developer.apple.com/documentation/Network/nw_resolver_config_create_https(_:)
func Nw_resolver_config_create_tls ¶
func Nw_resolver_config_create_tls(server_endpoint Nw_endpoint_t) Nw_resolver_config_t
Nw_resolver_config_create_tls initializes a DNS-over-TLS resolver configuration.
See: https://developer.apple.com/documentation/Network/nw_resolver_config_create_tls(_:)
type Nw_txt_record_access_bytes_t ¶
Nw_txt_record_access_bytes_t 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 Nw_txt_record_access_key_t ¶
type Nw_txt_record_access_key_t = func(string, NwTxtRecordFindKey, *uint8, uint32) bool
Nw_txt_record_access_key_t 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 Nw_txt_record_applier_t ¶
type Nw_txt_record_applier_t = func(string, NwTxtRecordFindKey, *uint8, uint32) bool
Nw_txt_record_applier_t 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 Nw_txt_record_t ¶
type Nw_txt_record_t = objectivec.Object
Nw_txt_record_t is a dictionary representing a TXT record in a DNS packet.
See: https://developer.apple.com/documentation/Network/nw_txt_record_t
func Nw_advertise_descriptor_copy_txt_record_object ¶
func Nw_advertise_descriptor_copy_txt_record_object(advertise_descriptor Nw_advertise_descriptor_t) Nw_txt_record_t
Nw_advertise_descriptor_copy_txt_record_object accesses the TXT record to advertise with the service.
See: https://developer.apple.com/documentation/Network/nw_advertise_descriptor_copy_txt_record_object(_:)
func Nw_browse_result_copy_txt_record_object ¶
func Nw_browse_result_copy_txt_record_object(result Nw_browse_result_t) Nw_txt_record_t
Nw_browse_result_copy_txt_record_object accesses the TXT record associated with a discovered service.
See: https://developer.apple.com/documentation/Network/nw_browse_result_copy_txt_record_object(_:)
func Nw_endpoint_copy_txt_record ¶
func Nw_endpoint_copy_txt_record(endpoint Nw_endpoint_t) Nw_txt_record_t
Nw_endpoint_copy_txt_record.
See: https://developer.apple.com/documentation/Network/nw_endpoint_copy_txt_record(_:)
func Nw_txt_record_copy ¶
func Nw_txt_record_copy(txt_record Nw_txt_record_t) Nw_txt_record_t
Nw_txt_record_copy performs a deep copy of a TXT record.
See: https://developer.apple.com/documentation/Network/nw_txt_record_copy(_:)
func Nw_txt_record_create_dictionary ¶
func Nw_txt_record_create_dictionary() Nw_txt_record_t
Nw_txt_record_create_dictionary initializes a TXT record as a dictionary of strings.
See: https://developer.apple.com/documentation/Network/nw_txt_record_create_dictionary()
func Nw_txt_record_create_with_bytes ¶
func Nw_txt_record_create_with_bytes(txt_bytes *uint8, txt_len uintptr) Nw_txt_record_t
Nw_txt_record_create_with_bytes initializes a TXT record with raw bytes.
See: https://developer.apple.com/documentation/Network/nw_txt_record_create_with_bytes(_:_:)
type Nw_ws_additional_header_enumerator_t ¶
Nw_ws_additional_header_enumerator_t 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 Nw_ws_client_request_handler_t ¶
type Nw_ws_client_request_handler_t = func(objectivec.Object) objectivec.Object
Nw_ws_client_request_handler_t is a handler that delivers inbound client handshake requests.
See: https://developer.apple.com/documentation/Network/nw_ws_client_request_handler_t
type Nw_ws_pong_handler_t ¶
type Nw_ws_pong_handler_t = func(Nw_error_t)
Nw_ws_pong_handler_t 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 Nw_ws_request_t ¶
type Nw_ws_request_t = objectivec.Object
Nw_ws_request_t is a WebSocket handshake request sent from a client to a server.
See: https://developer.apple.com/documentation/Network/nw_ws_request_t
type Nw_ws_response_t ¶
type Nw_ws_response_t = objectivec.Object
Nw_ws_response_t is a WebSocket handshake reponse sent from a server to a client.
See: https://developer.apple.com/documentation/Network/nw_ws_response_t
func Nw_ws_metadata_copy_server_response ¶
func Nw_ws_metadata_copy_server_response(metadata Nw_protocol_metadata_t) Nw_ws_response_t
Nw_ws_metadata_copy_server_response accesses the WebSocket server’s response sent during the handshake.
See: https://developer.apple.com/documentation/Network/nw_ws_metadata_copy_server_response(_:)
func Nw_ws_response_create ¶
func Nw_ws_response_create(status NwWsResponseStatus, selected_subprotocol string) Nw_ws_response_t
Nw_ws_response_create initializes a WebSocket server response with a status and selected subprotocol.
See: https://developer.apple.com/documentation/Network/nw_ws_response_create(_:_:)
type Nw_ws_subprotocol_enumerator_t ¶
Nw_ws_subprotocol_enumerator_t 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 OS_nw_advertise_descriptor ¶
type OS_nw_advertise_descriptor interface {
objectivec.IObject
}
OS_nw_advertise_descriptor protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_advertise_descriptor
type OS_nw_advertise_descriptorObject ¶
type OS_nw_advertise_descriptorObject struct {
objectivec.Object
}
OS_nw_advertise_descriptorObject wraps an existing Objective-C object that conforms to the OS_nw_advertise_descriptor protocol.
func OS_nw_advertise_descriptorObjectFromID ¶
func OS_nw_advertise_descriptorObjectFromID(id objc.ID) OS_nw_advertise_descriptorObject
OS_nw_advertise_descriptorObjectFromID constructs a OS_nw_advertise_descriptorObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_advertise_descriptorObject) BaseObject ¶
func (o OS_nw_advertise_descriptorObject) BaseObject() objectivec.Object
type OS_nw_browse_descriptor ¶
type OS_nw_browse_descriptor interface {
objectivec.IObject
}
OS_nw_browse_descriptor protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_browse_descriptor
type OS_nw_browse_descriptorObject ¶
type OS_nw_browse_descriptorObject struct {
objectivec.Object
}
OS_nw_browse_descriptorObject wraps an existing Objective-C object that conforms to the OS_nw_browse_descriptor protocol.
func OS_nw_browse_descriptorObjectFromID ¶
func OS_nw_browse_descriptorObjectFromID(id objc.ID) OS_nw_browse_descriptorObject
OS_nw_browse_descriptorObjectFromID constructs a OS_nw_browse_descriptorObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_browse_descriptorObject) BaseObject ¶
func (o OS_nw_browse_descriptorObject) BaseObject() objectivec.Object
type OS_nw_browse_result ¶
type OS_nw_browse_result interface {
objectivec.IObject
}
OS_nw_browse_result protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_browse_result
type OS_nw_browse_resultObject ¶
type OS_nw_browse_resultObject struct {
objectivec.Object
}
OS_nw_browse_resultObject wraps an existing Objective-C object that conforms to the OS_nw_browse_result protocol.
func OS_nw_browse_resultObjectFromID ¶
func OS_nw_browse_resultObjectFromID(id objc.ID) OS_nw_browse_resultObject
OS_nw_browse_resultObjectFromID constructs a OS_nw_browse_resultObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_browse_resultObject) BaseObject ¶
func (o OS_nw_browse_resultObject) BaseObject() objectivec.Object
type OS_nw_browser ¶
type OS_nw_browser interface {
objectivec.IObject
}
OS_nw_browser protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_browser
type OS_nw_browserObject ¶
type OS_nw_browserObject struct {
objectivec.Object
}
OS_nw_browserObject wraps an existing Objective-C object that conforms to the OS_nw_browser protocol.
func OS_nw_browserObjectFromID ¶
func OS_nw_browserObjectFromID(id objc.ID) OS_nw_browserObject
OS_nw_browserObjectFromID constructs a OS_nw_browserObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_browserObject) BaseObject ¶
func (o OS_nw_browserObject) BaseObject() objectivec.Object
type OS_nw_connection ¶
type OS_nw_connection interface {
objectivec.IObject
}
OS_nw_connection protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_connection
type OS_nw_connectionObject ¶
type OS_nw_connectionObject struct {
objectivec.Object
}
OS_nw_connectionObject wraps an existing Objective-C object that conforms to the OS_nw_connection protocol.
func OS_nw_connectionObjectFromID ¶
func OS_nw_connectionObjectFromID(id objc.ID) OS_nw_connectionObject
OS_nw_connectionObjectFromID constructs a OS_nw_connectionObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_connectionObject) BaseObject ¶
func (o OS_nw_connectionObject) BaseObject() objectivec.Object
type OS_nw_connection_group ¶
type OS_nw_connection_group interface {
objectivec.IObject
}
OS_nw_connection_group protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_connection_group
type OS_nw_connection_groupObject ¶
type OS_nw_connection_groupObject struct {
objectivec.Object
}
OS_nw_connection_groupObject wraps an existing Objective-C object that conforms to the OS_nw_connection_group protocol.
func OS_nw_connection_groupObjectFromID ¶
func OS_nw_connection_groupObjectFromID(id objc.ID) OS_nw_connection_groupObject
OS_nw_connection_groupObjectFromID constructs a OS_nw_connection_groupObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_connection_groupObject) BaseObject ¶
func (o OS_nw_connection_groupObject) BaseObject() objectivec.Object
type OS_nw_content_context ¶
type OS_nw_content_context interface {
objectivec.IObject
}
OS_nw_content_context protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_content_context
type OS_nw_content_contextObject ¶
type OS_nw_content_contextObject struct {
objectivec.Object
}
OS_nw_content_contextObject wraps an existing Objective-C object that conforms to the OS_nw_content_context protocol.
func OS_nw_content_contextObjectFromID ¶
func OS_nw_content_contextObjectFromID(id objc.ID) OS_nw_content_contextObject
OS_nw_content_contextObjectFromID constructs a OS_nw_content_contextObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_content_contextObject) BaseObject ¶
func (o OS_nw_content_contextObject) BaseObject() objectivec.Object
type OS_nw_data_transfer_report ¶
type OS_nw_data_transfer_report interface {
objectivec.IObject
}
OS_nw_data_transfer_report protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_data_transfer_report
type OS_nw_data_transfer_reportObject ¶
type OS_nw_data_transfer_reportObject struct {
objectivec.Object
}
OS_nw_data_transfer_reportObject wraps an existing Objective-C object that conforms to the OS_nw_data_transfer_report protocol.
func OS_nw_data_transfer_reportObjectFromID ¶
func OS_nw_data_transfer_reportObjectFromID(id objc.ID) OS_nw_data_transfer_reportObject
OS_nw_data_transfer_reportObjectFromID constructs a OS_nw_data_transfer_reportObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_data_transfer_reportObject) BaseObject ¶
func (o OS_nw_data_transfer_reportObject) BaseObject() objectivec.Object
type OS_nw_endpoint ¶
type OS_nw_endpoint interface {
objectivec.IObject
}
OS_nw_endpoint protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_endpoint
type OS_nw_endpointObject ¶
type OS_nw_endpointObject struct {
objectivec.Object
}
OS_nw_endpointObject wraps an existing Objective-C object that conforms to the OS_nw_endpoint protocol.
func OS_nw_endpointObjectFromID ¶
func OS_nw_endpointObjectFromID(id objc.ID) OS_nw_endpointObject
OS_nw_endpointObjectFromID constructs a OS_nw_endpointObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_endpointObject) BaseObject ¶
func (o OS_nw_endpointObject) BaseObject() objectivec.Object
type OS_nw_error ¶
type OS_nw_error interface {
objectivec.IObject
}
OS_nw_error protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_error
type OS_nw_errorObject ¶
type OS_nw_errorObject struct {
objectivec.Object
}
OS_nw_errorObject wraps an existing Objective-C object that conforms to the OS_nw_error protocol.
func OS_nw_errorObjectFromID ¶
func OS_nw_errorObjectFromID(id objc.ID) OS_nw_errorObject
OS_nw_errorObjectFromID constructs a OS_nw_errorObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_errorObject) BaseObject ¶
func (o OS_nw_errorObject) BaseObject() objectivec.Object
type OS_nw_establishment_report ¶
type OS_nw_establishment_report interface {
objectivec.IObject
}
OS_nw_establishment_report protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_establishment_report
type OS_nw_establishment_reportObject ¶
type OS_nw_establishment_reportObject struct {
objectivec.Object
}
OS_nw_establishment_reportObject wraps an existing Objective-C object that conforms to the OS_nw_establishment_report protocol.
func OS_nw_establishment_reportObjectFromID ¶
func OS_nw_establishment_reportObjectFromID(id objc.ID) OS_nw_establishment_reportObject
OS_nw_establishment_reportObjectFromID constructs a OS_nw_establishment_reportObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_establishment_reportObject) BaseObject ¶
func (o OS_nw_establishment_reportObject) BaseObject() objectivec.Object
type OS_nw_ethernet_channel ¶
type OS_nw_ethernet_channel interface {
objectivec.IObject
}
OS_nw_ethernet_channel protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_ethernet_channel
type OS_nw_ethernet_channelObject ¶
type OS_nw_ethernet_channelObject struct {
objectivec.Object
}
OS_nw_ethernet_channelObject wraps an existing Objective-C object that conforms to the OS_nw_ethernet_channel protocol.
func OS_nw_ethernet_channelObjectFromID ¶
func OS_nw_ethernet_channelObjectFromID(id objc.ID) OS_nw_ethernet_channelObject
OS_nw_ethernet_channelObjectFromID constructs a OS_nw_ethernet_channelObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_ethernet_channelObject) BaseObject ¶
func (o OS_nw_ethernet_channelObject) BaseObject() objectivec.Object
type OS_nw_framer ¶
type OS_nw_framer interface {
objectivec.IObject
}
OS_nw_framer protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_framer
type OS_nw_framerObject ¶
type OS_nw_framerObject struct {
objectivec.Object
}
OS_nw_framerObject wraps an existing Objective-C object that conforms to the OS_nw_framer protocol.
func OS_nw_framerObjectFromID ¶
func OS_nw_framerObjectFromID(id objc.ID) OS_nw_framerObject
OS_nw_framerObjectFromID constructs a OS_nw_framerObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_framerObject) BaseObject ¶
func (o OS_nw_framerObject) BaseObject() objectivec.Object
type OS_nw_group_descriptor ¶
type OS_nw_group_descriptor interface {
objectivec.IObject
}
OS_nw_group_descriptor protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_group_descriptor
type OS_nw_group_descriptorObject ¶
type OS_nw_group_descriptorObject struct {
objectivec.Object
}
OS_nw_group_descriptorObject wraps an existing Objective-C object that conforms to the OS_nw_group_descriptor protocol.
func OS_nw_group_descriptorObjectFromID ¶
func OS_nw_group_descriptorObjectFromID(id objc.ID) OS_nw_group_descriptorObject
OS_nw_group_descriptorObjectFromID constructs a OS_nw_group_descriptorObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_group_descriptorObject) BaseObject ¶
func (o OS_nw_group_descriptorObject) BaseObject() objectivec.Object
type OS_nw_interface ¶
type OS_nw_interface interface {
objectivec.IObject
}
OS_nw_interface protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_interface
type OS_nw_interfaceObject ¶
type OS_nw_interfaceObject struct {
objectivec.Object
}
OS_nw_interfaceObject wraps an existing Objective-C object that conforms to the OS_nw_interface protocol.
func OS_nw_interfaceObjectFromID ¶
func OS_nw_interfaceObjectFromID(id objc.ID) OS_nw_interfaceObject
OS_nw_interfaceObjectFromID constructs a OS_nw_interfaceObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_interfaceObject) BaseObject ¶
func (o OS_nw_interfaceObject) BaseObject() objectivec.Object
type OS_nw_listener ¶
type OS_nw_listener interface {
objectivec.IObject
}
OS_nw_listener protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_listener
type OS_nw_listenerObject ¶
type OS_nw_listenerObject struct {
objectivec.Object
}
OS_nw_listenerObject wraps an existing Objective-C object that conforms to the OS_nw_listener protocol.
func OS_nw_listenerObjectFromID ¶
func OS_nw_listenerObjectFromID(id objc.ID) OS_nw_listenerObject
OS_nw_listenerObjectFromID constructs a OS_nw_listenerObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_listenerObject) BaseObject ¶
func (o OS_nw_listenerObject) BaseObject() objectivec.Object
type OS_nw_object ¶
type OS_nw_object interface {
objectivec.IObject
}
OS_nw_object protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_object
type OS_nw_objectObject ¶
type OS_nw_objectObject struct {
objectivec.Object
}
OS_nw_objectObject wraps an existing Objective-C object that conforms to the OS_nw_object protocol.
func OS_nw_objectObjectFromID ¶
func OS_nw_objectObjectFromID(id objc.ID) OS_nw_objectObject
OS_nw_objectObjectFromID constructs a OS_nw_objectObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_objectObject) BaseObject ¶
func (o OS_nw_objectObject) BaseObject() objectivec.Object
type OS_nw_parameters ¶
type OS_nw_parameters interface {
objectivec.IObject
}
OS_nw_parameters protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_parameters
type OS_nw_parametersObject ¶
type OS_nw_parametersObject struct {
objectivec.Object
}
OS_nw_parametersObject wraps an existing Objective-C object that conforms to the OS_nw_parameters protocol.
func OS_nw_parametersObjectFromID ¶
func OS_nw_parametersObjectFromID(id objc.ID) OS_nw_parametersObject
OS_nw_parametersObjectFromID constructs a OS_nw_parametersObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_parametersObject) BaseObject ¶
func (o OS_nw_parametersObject) BaseObject() objectivec.Object
type OS_nw_path ¶
type OS_nw_path interface {
objectivec.IObject
}
OS_nw_path protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_path
type OS_nw_pathObject ¶
type OS_nw_pathObject struct {
objectivec.Object
}
OS_nw_pathObject wraps an existing Objective-C object that conforms to the OS_nw_path protocol.
func OS_nw_pathObjectFromID ¶
func OS_nw_pathObjectFromID(id objc.ID) OS_nw_pathObject
OS_nw_pathObjectFromID constructs a OS_nw_pathObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_pathObject) BaseObject ¶
func (o OS_nw_pathObject) BaseObject() objectivec.Object
type OS_nw_path_monitor ¶
type OS_nw_path_monitor interface {
objectivec.IObject
}
OS_nw_path_monitor protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_path_monitor
type OS_nw_path_monitorObject ¶
type OS_nw_path_monitorObject struct {
objectivec.Object
}
OS_nw_path_monitorObject wraps an existing Objective-C object that conforms to the OS_nw_path_monitor protocol.
func OS_nw_path_monitorObjectFromID ¶
func OS_nw_path_monitorObjectFromID(id objc.ID) OS_nw_path_monitorObject
OS_nw_path_monitorObjectFromID constructs a OS_nw_path_monitorObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_path_monitorObject) BaseObject ¶
func (o OS_nw_path_monitorObject) BaseObject() objectivec.Object
type OS_nw_privacy_context ¶
type OS_nw_privacy_context interface {
objectivec.IObject
}
OS_nw_privacy_context protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_privacy_context
type OS_nw_privacy_contextObject ¶
type OS_nw_privacy_contextObject struct {
objectivec.Object
}
OS_nw_privacy_contextObject wraps an existing Objective-C object that conforms to the OS_nw_privacy_context protocol.
func OS_nw_privacy_contextObjectFromID ¶
func OS_nw_privacy_contextObjectFromID(id objc.ID) OS_nw_privacy_contextObject
OS_nw_privacy_contextObjectFromID constructs a OS_nw_privacy_contextObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_privacy_contextObject) BaseObject ¶
func (o OS_nw_privacy_contextObject) BaseObject() objectivec.Object
type OS_nw_protocol_definition ¶
type OS_nw_protocol_definition interface {
objectivec.IObject
}
OS_nw_protocol_definition protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_protocol_definition
type OS_nw_protocol_definitionObject ¶
type OS_nw_protocol_definitionObject struct {
objectivec.Object
}
OS_nw_protocol_definitionObject wraps an existing Objective-C object that conforms to the OS_nw_protocol_definition protocol.
func OS_nw_protocol_definitionObjectFromID ¶
func OS_nw_protocol_definitionObjectFromID(id objc.ID) OS_nw_protocol_definitionObject
OS_nw_protocol_definitionObjectFromID constructs a OS_nw_protocol_definitionObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_protocol_definitionObject) BaseObject ¶
func (o OS_nw_protocol_definitionObject) BaseObject() objectivec.Object
type OS_nw_protocol_metadata ¶
type OS_nw_protocol_metadata interface {
objectivec.IObject
}
OS_nw_protocol_metadata protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_protocol_metadata
type OS_nw_protocol_metadataObject ¶
type OS_nw_protocol_metadataObject struct {
objectivec.Object
}
OS_nw_protocol_metadataObject wraps an existing Objective-C object that conforms to the OS_nw_protocol_metadata protocol.
func OS_nw_protocol_metadataObjectFromID ¶
func OS_nw_protocol_metadataObjectFromID(id objc.ID) OS_nw_protocol_metadataObject
OS_nw_protocol_metadataObjectFromID constructs a OS_nw_protocol_metadataObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_protocol_metadataObject) BaseObject ¶
func (o OS_nw_protocol_metadataObject) BaseObject() objectivec.Object
type OS_nw_protocol_options ¶
type OS_nw_protocol_options interface {
objectivec.IObject
}
OS_nw_protocol_options protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_protocol_options
type OS_nw_protocol_optionsObject ¶
type OS_nw_protocol_optionsObject struct {
objectivec.Object
}
OS_nw_protocol_optionsObject wraps an existing Objective-C object that conforms to the OS_nw_protocol_options protocol.
func OS_nw_protocol_optionsObjectFromID ¶
func OS_nw_protocol_optionsObjectFromID(id objc.ID) OS_nw_protocol_optionsObject
OS_nw_protocol_optionsObjectFromID constructs a OS_nw_protocol_optionsObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_protocol_optionsObject) BaseObject ¶
func (o OS_nw_protocol_optionsObject) BaseObject() objectivec.Object
type OS_nw_protocol_stack ¶
type OS_nw_protocol_stack interface {
objectivec.IObject
}
OS_nw_protocol_stack protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_protocol_stack
type OS_nw_protocol_stackObject ¶
type OS_nw_protocol_stackObject struct {
objectivec.Object
}
OS_nw_protocol_stackObject wraps an existing Objective-C object that conforms to the OS_nw_protocol_stack protocol.
func OS_nw_protocol_stackObjectFromID ¶
func OS_nw_protocol_stackObjectFromID(id objc.ID) OS_nw_protocol_stackObject
OS_nw_protocol_stackObjectFromID constructs a OS_nw_protocol_stackObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_protocol_stackObject) BaseObject ¶
func (o OS_nw_protocol_stackObject) BaseObject() objectivec.Object
type OS_nw_proxy_config ¶
type OS_nw_proxy_config interface {
objectivec.IObject
}
OS_nw_proxy_config protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_proxy_config
type OS_nw_proxy_configObject ¶
type OS_nw_proxy_configObject struct {
objectivec.Object
}
OS_nw_proxy_configObject wraps an existing Objective-C object that conforms to the OS_nw_proxy_config protocol.
func OS_nw_proxy_configObjectFromID ¶
func OS_nw_proxy_configObjectFromID(id objc.ID) OS_nw_proxy_configObject
OS_nw_proxy_configObjectFromID constructs a OS_nw_proxy_configObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_proxy_configObject) BaseObject ¶
func (o OS_nw_proxy_configObject) BaseObject() objectivec.Object
type OS_nw_relay_hop ¶
type OS_nw_relay_hop interface {
objectivec.IObject
}
OS_nw_relay_hop protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_relay_hop
type OS_nw_relay_hopObject ¶
type OS_nw_relay_hopObject struct {
objectivec.Object
}
OS_nw_relay_hopObject wraps an existing Objective-C object that conforms to the OS_nw_relay_hop protocol.
func OS_nw_relay_hopObjectFromID ¶
func OS_nw_relay_hopObjectFromID(id objc.ID) OS_nw_relay_hopObject
OS_nw_relay_hopObjectFromID constructs a OS_nw_relay_hopObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_relay_hopObject) BaseObject ¶
func (o OS_nw_relay_hopObject) BaseObject() objectivec.Object
type OS_nw_resolution_report ¶
type OS_nw_resolution_report interface {
objectivec.IObject
}
OS_nw_resolution_report protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_resolution_report
type OS_nw_resolution_reportObject ¶
type OS_nw_resolution_reportObject struct {
objectivec.Object
}
OS_nw_resolution_reportObject wraps an existing Objective-C object that conforms to the OS_nw_resolution_report protocol.
func OS_nw_resolution_reportObjectFromID ¶
func OS_nw_resolution_reportObjectFromID(id objc.ID) OS_nw_resolution_reportObject
OS_nw_resolution_reportObjectFromID constructs a OS_nw_resolution_reportObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_resolution_reportObject) BaseObject ¶
func (o OS_nw_resolution_reportObject) BaseObject() objectivec.Object
type OS_nw_resolver_config ¶
type OS_nw_resolver_config interface {
objectivec.IObject
}
OS_nw_resolver_config protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_resolver_config
type OS_nw_resolver_configObject ¶
type OS_nw_resolver_configObject struct {
objectivec.Object
}
OS_nw_resolver_configObject wraps an existing Objective-C object that conforms to the OS_nw_resolver_config protocol.
func OS_nw_resolver_configObjectFromID ¶
func OS_nw_resolver_configObjectFromID(id objc.ID) OS_nw_resolver_configObject
OS_nw_resolver_configObjectFromID constructs a OS_nw_resolver_configObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_resolver_configObject) BaseObject ¶
func (o OS_nw_resolver_configObject) BaseObject() objectivec.Object
type OS_nw_txt_record ¶
type OS_nw_txt_record interface {
objectivec.IObject
}
OS_nw_txt_record protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_txt_record
type OS_nw_txt_recordObject ¶
type OS_nw_txt_recordObject struct {
objectivec.Object
}
OS_nw_txt_recordObject wraps an existing Objective-C object that conforms to the OS_nw_txt_record protocol.
func OS_nw_txt_recordObjectFromID ¶
func OS_nw_txt_recordObjectFromID(id objc.ID) OS_nw_txt_recordObject
OS_nw_txt_recordObjectFromID constructs a OS_nw_txt_recordObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_txt_recordObject) BaseObject ¶
func (o OS_nw_txt_recordObject) BaseObject() objectivec.Object
type OS_nw_ws_request ¶
type OS_nw_ws_request interface {
objectivec.IObject
}
OS_nw_ws_request protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_ws_request
type OS_nw_ws_requestObject ¶
type OS_nw_ws_requestObject struct {
objectivec.Object
}
OS_nw_ws_requestObject wraps an existing Objective-C object that conforms to the OS_nw_ws_request protocol.
func OS_nw_ws_requestObjectFromID ¶
func OS_nw_ws_requestObjectFromID(id objc.ID) OS_nw_ws_requestObject
OS_nw_ws_requestObjectFromID constructs a OS_nw_ws_requestObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_ws_requestObject) BaseObject ¶
func (o OS_nw_ws_requestObject) BaseObject() objectivec.Object
type OS_nw_ws_response ¶
type OS_nw_ws_response interface {
objectivec.IObject
}
OS_nw_ws_response protocol.
See: https://developer.apple.com/documentation/Network/OS_nw_ws_response
type OS_nw_ws_responseObject ¶
type OS_nw_ws_responseObject struct {
objectivec.Object
}
OS_nw_ws_responseObject wraps an existing Objective-C object that conforms to the OS_nw_ws_response protocol.
func OS_nw_ws_responseObjectFromID ¶
func OS_nw_ws_responseObjectFromID(id objc.ID) OS_nw_ws_responseObject
OS_nw_ws_responseObjectFromID constructs a OS_nw_ws_responseObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_nw_ws_responseObject) BaseObject ¶
func (o OS_nw_ws_responseObject) BaseObject() objectivec.Object
Source Files
¶
- doc.gen.go
- enums.gen.go
- functions.gen.go
- generate.go
- global_vars.gen.go
- os_nw_advertise_descriptor_protocol.gen.go
- os_nw_browse_descriptor_protocol.gen.go
- os_nw_browse_result_protocol.gen.go
- os_nw_browser_protocol.gen.go
- os_nw_connection_group_protocol.gen.go
- os_nw_connection_protocol.gen.go
- os_nw_content_context_protocol.gen.go
- os_nw_data_transfer_report_protocol.gen.go
- os_nw_endpoint_protocol.gen.go
- os_nw_error_protocol.gen.go
- os_nw_establishment_report_protocol.gen.go
- os_nw_ethernet_channel_protocol.gen.go
- os_nw_framer_protocol.gen.go
- os_nw_group_descriptor_protocol.gen.go
- os_nw_interface_protocol.gen.go
- os_nw_listener_protocol.gen.go
- os_nw_object_protocol.gen.go
- os_nw_parameters_protocol.gen.go
- os_nw_path_monitor_protocol.gen.go
- os_nw_path_protocol.gen.go
- os_nw_privacy_context_protocol.gen.go
- os_nw_protocol_definition_protocol.gen.go
- os_nw_protocol_metadata_protocol.gen.go
- os_nw_protocol_options_protocol.gen.go
- os_nw_protocol_stack_protocol.gen.go
- os_nw_proxy_config_protocol.gen.go
- os_nw_relay_hop_protocol.gen.go
- os_nw_resolution_report_protocol.gen.go
- os_nw_resolver_config_protocol.gen.go
- os_nw_txt_record_protocol.gen.go
- os_nw_ws_request_protocol.gen.go
- os_nw_ws_response_protocol.gen.go
- typedefs.gen.go
- types.gen.go
- undefined_types.gen.go