Network Functions

Access Network framework functions used in C.

Topics

Functions

nw_advertise_descriptor_copy_txt_record_object

Accesses the TXT record to advertise with the service.

nw_advertise_descriptor_create_bonjour_service

Initializes a Bonjour service to advertise.

nw_advertise_descriptor_get_no_auto_rename

Checks whether the service prohibits automatic renaming in the event of a name conflict.

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.

nw_advertise_descriptor_set_txt_record

Sets the TXT record as a raw buffer to advertise with the service.

nw_advertise_descriptor_set_txt_record_object

Sets the TXT record to advertise with the service.

nw_browse_descriptor_create_bonjour_service

Initializes a service descriptor used to discover a Bonjour service.

nw_browse_descriptor_get_bonjour_service_domain

Accesses the Bonjour service domain set on a browse descriptor.

nw_browse_descriptor_get_bonjour_service_type

Accesses the Bonjour service type set on a browse descriptor.

nw_browse_descriptor_get_include_txt_record

Checks if the browse descriptor requires including associated TXT records with all results.

nw_browse_descriptor_set_include_txt_record

Requires including associated TXT records with all results generated for this service descriptor.

nw_browse_result_copy_endpoint

The discovered service endpoint.

nw_browse_result_copy_txt_record_object

Accesses the TXT record associated with a discovered service.

nw_browse_result_enumerate_interfaces

Enumerates the list of interfaces on which the service was discovered.

nw_browse_result_get_changes

Compares two discovered services and calculates changes between them.

nw_browse_result_get_interfaces_count

Accesses the number of interfaces associated with a discovered service.

nw_browser_cancel

Stops browsing for services.

nw_browser_copy_browse_descriptor

Accesses the service descriptor with which the browser was created.

nw_browser_copy_parameters

Accesses the parameters with which the browser was created.

nw_browser_create

Initializes a browser with a type of service to discover.

nw_browser_set_browse_results_changed_handler

Sets the handler to receive updates about discovered services.

nw_browser_set_queue

Sets the queue on which all browser events will be delivered.

nw_browser_set_state_changed_handler

Sets a handler to receive browser state updates.

nw_browser_start

Starts browsing for services.

nw_connection_access_establishment_report

Requests a copy of the connection's establishment report once the connection is in the ready state.

nw_connection_batch

Defines a block in which calls to send and receive are processed as a batch to improve performance.

nw_connection_cancel

Cancels the connection and gracefully disconnects any established network protocols.

nw_connection_cancel_current_endpoint

Causes the current endpoint to be rejected, allowing the connection to try another resolved address.

nw_connection_copy_current_path

Accesses the network path the connection is using.

nw_connection_copy_description

Copies the description of the connection as a string.

nw_connection_copy_endpoint

Accesses the endpoint with which the connection was created.

nw_connection_copy_parameters

Accesses the parameters with which the connection was created.

nw_connection_copy_protocol_metadata

Retrieves the connection-wide metadata for a specific protocol.

nw_connection_create

Initializes a new connection to a remote endpoint.

nw_connection_create_new_data_transfer_report

Begins a new data transfer report, which can later be collected.

nw_connection_force_cancel

Cancels the connection and immediately disconnects any established network protocols.

nw_connection_get_maximum_datagram_size

Accesses the maximum size of a datagram message that can be sent on a connection.

nw_connection_receive

Schedules a single receive completion handler, with a range indicating how many bytes the handler can receive at one time.

nw_connection_receive_message

Schedules a single receive completion handler for a complete message, as opposed to a range of bytes.

nw_connection_restart

Restarts a connection that is in the waiting state.

nw_connection_send

Sends data on a connection.

nw_connection_set_better_path_available_handler

Sets a handler that receives updates when an alternative network path is preferred over the current path.

nw_connection_set_path_changed_handler

Sets a handler that receives network path updates.

nw_connection_set_queue

Sets the queue on which all connection events are delivered.

nw_connection_set_state_changed_handler

Sets a handler to receive connection state updates.

nw_connection_set_viability_changed_handler

Sets a handler that receives updates when data can be sent and received.

nw_connection_start

Starts establishing a connection.

nw_content_context_copy_antecedent

Accesses the optional message context that must be sent before the context you are sending.

nw_content_context_copy_protocol_metadata

Retreives the metadata associated with a specific protocol.

nw_content_context_create

Initializes a custom message context.

nw_content_context_foreach_protocol_metadata

Iterates through all protocol metadata associated with the message context.

nw_content_context_get_expiration_milliseconds

Accesses the expiration set for this message context.

nw_content_context_get_identifier

Accesses the identifier used to create this message context.

nw_content_context_get_is_final

Checks whether this context represents the final message being received.

nw_content_context_get_relative_priority

Accesses the relative value of priority used to reorder contexts when sending.

nw_content_context_set_antecedent

Set an optional message context that must be sent before the context you are sending.

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.

nw_content_context_set_is_final

Sets a Boolean indicating if this context represents the final message being sent.

nw_content_context_set_metadata_for_protocol

Sets protocol metadata to configure per-message or per-packet properties.

nw_content_context_set_relative_priority

Sets the relative value of priority used to reorder contexts when sending.

nw_data_transfer_report_collect

Stops an outstanding data transfer report and calculates the results.

nw_data_transfer_report_copy_path_interface

Accesses the network interface the path used.

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.

nw_data_transfer_report_get_path_count

Checks the number of valid paths in the report.

nw_data_transfer_report_get_received_application_byte_count

Accesses the number of bytes the connection delivered.

nw_data_transfer_report_get_received_ip_packet_count

Accesses the number of IP packets the connection received.

nw_data_transfer_report_get_received_transport_byte_count

Accesses the number of bytes the transport protocol delivered.

nw_data_transfer_report_get_received_transport_duplicate_byte_count

Accesses the number of duplicated bytes the transport protocol detected.

nw_data_transfer_report_get_received_transport_out_of_order_byte_count

Accesses the number of bytes the transport protocol received out of order.

nw_data_transfer_report_get_sent_application_byte_count

Accesses the number of bytes sent on the connection.

nw_data_transfer_report_get_sent_ip_packet_count

Accesses the number of IP packets the connection sent.

nw_data_transfer_report_get_sent_transport_byte_count

Accesses the number of bytes sent into the transport protocol.

nw_data_transfer_report_get_sent_transport_retransmitted_byte_count

Accesses the number of bytes the transport protocol retransmitted.

nw_data_transfer_report_get_state

Checks whether a data transfer report is collected.

nw_data_transfer_report_get_transport_minimum_rtt_milliseconds

Accesses the minimum round-trip time the transport protocol measured, in milliseconds.

nw_data_transfer_report_get_transport_rtt_variance

Accesses the variance of the round-trip time the transport protocol measured.

nw_data_transfer_report_get_transport_smoothed_rtt_milliseconds

Accesses the smoothed round-trip time the transport protocol measured, in milliseconds.

nw_endpoint_copy_address_string

Copies the address of an endpoint as a string.

nw_endpoint_copy_port_string

Copies the port of an endpoint as a string.

nw_endpoint_create_address

Creates a network endpoint with an address structure.

nw_endpoint_create_bonjour_service

Creates a network endpoint with a Bonjour service name, type, and domain.

nw_endpoint_create_host

Creates a network endpoint with a hostname and port, where the hostname may be interpreted as an IP address.

nw_endpoint_create_url

Creates a network endpoint with a URL string.

nw_endpoint_get_address

Accesses the address structure stored in an address endpoint.

nw_endpoint_get_bonjour_service_domain

Accesses the Bonjour service domain stored in an endpoint.

nw_endpoint_get_bonjour_service_name

Accesses the Bonjour service name stored in an endpoint.

nw_endpoint_get_bonjour_service_type

Accesses the Bonjour service type stored in an endpoint.

nw_endpoint_get_hostname

Accesses the hostname stored in an endpoint.

nw_endpoint_get_port

Accesses the port stored in an endpoint, in host-byte order.

nw_endpoint_get_type

Accesses the type of a endpoint.

nw_endpoint_get_url

Accesses the URL string stored in an endpoint.

nw_error_copy_cf_error

Copies out a CFErrorRef that represents a network error.

nw_error_get_error_code

Accesses the specific code of the network error.

nw_error_get_error_domain

Accesses the domain of the network error.

nw_establishment_report_copy_proxy_endpoint

Accesses the endpoint of the proxy the connection used.

nw_establishment_report_enumerate_protocols

Iterates a list of protocol handshakes in order from first completed to last completed.

nw_establishment_report_enumerate_resolutions

Iterates a list of resolution steps performed during connection establishment, in order from first resolved to last resolved.

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.

nw_establishment_report_get_duration_milliseconds

Checks the total duration of the successful connection establishment attempt, from the preparing state to the ready state.

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.

nw_establishment_report_get_proxy_configured

Checks whether a proxy was configured on the connection.

nw_establishment_report_get_used_proxy

Checks whether the connection used a proxy.

nw_ethernet_channel_cancel

Unregisters the channel from the interface.

nw_ethernet_channel_create

Initializes an Ethernet channel on a specific interface with a custom Ethernet type.

nw_ethernet_channel_send

Sends a single Ethernet frame over a channel to a specific Ethernet address.

nw_ethernet_channel_set_queue

Sets the queue on which all channel events are delivered.

nw_ethernet_channel_set_receive_handler

Sets a handler to receive inbound Ethernet frames.

nw_ethernet_channel_set_state_changed_handler

Sets a handler to receive channel state updates.

nw_ethernet_channel_start

Starts the process of registering the channel.

nw_framer_async

Requests that a block be executed on the connection's internal scheduling context.

nw_framer_copy_local_endpoint

Accesses the local endpoint of the connection in which your protocol is running.

nw_framer_copy_parameters

Accesses the parameters of the connection in which your protocol is running.

nw_framer_copy_remote_endpoint

Accesses the remote endpoint of the connection in which your protocol is running.

nw_framer_create_definition

Initializes a new protocol definition based on your protocol implementation.

nw_framer_create_options

Initializes a set of protocol options with a custom framer definition.

nw_framer_deliver_input

Delivers an inbound message containing arbitrary data from your protocol to the application.

nw_framer_deliver_input_no_copy

Delivers an inbound message containing a specific number of next received bytes.

nw_framer_mark_failed_with_error

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

nw_framer_mark_ready

Indicates to a connection that your protocol's handshake is complete.

nw_framer_message_access_value

Accesses a custom value stored in a framer message.

nw_framer_message_copy_object_value

Accesses an NSObject value stored in a framer message.

nw_framer_message_create

Initializes an empty message from within a framer implementation.

nw_framer_message_set_object_value

Sets an NSObject value to be stored in a framer message.

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.

nw_framer_parse_input

Examines the content of input data while inside your input handler block.

nw_framer_parse_output

Examines the content of output data while inside your output handler.

nw_framer_pass_through_input

Indicates that your protocol no longer needs to handle input data.

nw_framer_pass_through_output

Indicates that your protocol no longer needs to handle output data.

nw_framer_prepend_application_protocol

Dynamically adds another protocol that will run above your protocol after your protocol calls nw_framer_mark_ready.

nw_framer_protocol_create_message

Initializes an empty message for a custom framer definition.

nw_framer_schedule_wakeup

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

nw_framer_set_cleanup_handler

Sets a block to handle the final cleanup of allocations made by your protocol instance.

nw_framer_set_input_handler

Sets a block to handle new inbound data.

nw_framer_set_output_handler

Sets a block to handle new outbound messages.

nw_framer_set_stop_handler

Sets a block to handle when the connection is being closed.

nw_framer_set_wakeup_handler

Sets a handler to receive scheduled wakeup events.

nw_framer_write_output

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

nw_framer_write_output_data

Sends arbitrary output data from your protocol to the next protocol.

nw_framer_write_output_no_copy

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

nw_interface_get_index

Accesses the system interface index associated with the interface.

nw_interface_get_name

Accesses the name of the interface.

nw_interface_get_type

Accesses the type of the interface, such as Wi-Fi or Loopback.

nw_ip_create_metadata

Initializes an IP packet configuration with default settings.

nw_ip_metadata_get_ecn_flag

Checks the Explicit Congestion Notification flag value received on an IP packet.

nw_ip_metadata_get_receive_time

Access the time at which a packet was received, in nanoseconds, based on CLOCK_MONOTONIC_RAW.

nw_ip_metadata_get_service_class

Accesses a specific service class to mark on an IP packet.

nw_ip_metadata_set_ecn_flag

Sets a specific Explicit Congestion Notification flag value to set on an IP packet.

nw_ip_metadata_set_service_class

Sets a specific service class to mark on an IP packet.

nw_ip_options_set_calculate_receive_time

Configures a connection to deliver receive timestamps for IP packets.

nw_ip_options_set_disable_fragmentation

Configures a connection to disable fragmentation on outbound packets.

nw_ip_options_set_hop_limit

Configures the default hop limit for packets generated by a connection.

nw_ip_options_set_local_address_preference

Configures a connection to prefer certain types of local addresses, such as temporary or stable.

nw_ip_options_set_use_minimum_mtu

Configures a connection to use the minimum MTU value, which is 1280 bytes for IPv6.

nw_ip_options_set_version

Sets a required IP version to disable all other versions for a connection.

nw_listener_cancel

Stops listening for inbound connections.

nw_listener_create

Initializes a network listener, which will select a random port.

nw_listener_create_with_connection

Initializes a network listener to receive new streams on a multiplexed connection.

nw_listener_create_with_port

Initializes a network listener with a specified local port.

nw_listener_get_new_connection_limit

Checks the remaining number of inbound connections to deliver before rejecting connections.

nw_listener_get_port

The port on which the listener can accept connections.

nw_listener_set_advertise_descriptor

Sets a Bonjour service that advertises the listener on the local network.

nw_listener_set_advertised_endpoint_changed_handler

Sets a handler that receives updates for the service endpoint being advertised.

nw_listener_set_new_connection_handler

Sets a handler that receives inbound connections.

nw_listener_set_new_connection_limit

Resets the number of inbound connections to deliver before rejecting connections.

nw_listener_set_queue

Sets the queue on which all listener events are delivered.

nw_listener_set_state_changed_handler

Sets a handler to receive listener state updates.

nw_listener_start

Registers for listening for inbound connections.

nw_parameters_clear_prohibited_interface_types

Removes all prohibited interface types.

nw_parameters_clear_prohibited_interfaces

Removes all prohibited interface types.

nw_parameters_copy

Peforms a deep copy of a parameters object.

nw_parameters_copy_default_protocol_stack

Accesses the protocol stack used by connections and listeners.

nw_parameters_copy_local_endpoint

Accesses the local IP address and port used for connections and listeners.

nw_parameters_copy_required_interface

Accesses the interface required on connections, listeners, and browsers.

nw_parameters_create

Initializes parameters for connections, listeners, and browsers with no protocols specified.

nw_parameters_create_custom_ip

Initializes parameters for connections and listeners using a custom IP protocol.

nw_parameters_create_secure_tcp

Initializes parameters for TLS or TCP connections and listeners.

nw_parameters_create_secure_udp

Initializes parameters for DTLS or UDP connections and listeners.

nw_parameters_get_expired_dns_behavior

Checks the behavior for how expired DNS answers should be used.

nw_parameters_get_fast_open_enabled

Checks if sending application data with protocol handshakes is enabled.

nw_parameters_get_include_peer_to_peer

Checks whether a connection is allowed to use peer-to-peer link technologies.

nw_parameters_get_local_only

Checks if a listener is restricted to accepting connections from the local link.

nw_parameters_get_multipath_service

Checks if multipath is enabled on a connection.

nw_parameters_get_prefer_no_proxy

Checks if proxies are ignored by default.

nw_parameters_get_prohibit_constrained

Checks if connections, listeners, and browsers are prevented from using network paths marked as constrained by Low Data Mode.

nw_parameters_get_prohibit_expensive

Checks if connections, listeners, and browsers are prevented from using network paths marked as expensive.

nw_parameters_get_required_interface_type

Accesses the interface type required on connections and listeners.

nw_parameters_get_reuse_local_address

Checks whether a connection allows reusing local addresses and ports.

nw_parameters_get_service_class

Checks the level of service quality used for connections.

nw_parameters_iterate_prohibited_interface_types

Examines the list of prohibited interface types.

nw_parameters_iterate_prohibited_interfaces

Examines the list of prohibited interfaces.

nw_parameters_prohibit_interface

Prevents connections and listeners from using a specific interface.

nw_parameters_prohibit_interface_type

Prevents connections, listeners, and browsers from using a specific interface type.

nw_parameters_require_interface

Sets a specific interface to require on connections, listeners, and browsers.

nw_parameters_set_expired_dns_behavior

Sets the behavior for how expired DNS answers should be used.

nw_parameters_set_fast_open_enabled

Enables sending application data with protocol handshakes.

nw_parameters_set_include_peer_to_peer

Enables peer-to-peer link technologies for connections and listeners.

nw_parameters_set_local_endpoint

Sets a specific local IP address and port to use for connections and listeners.

nw_parameters_set_local_only

Restricts listeners to only accepting connections from the local link.

nw_parameters_set_multipath_service

Enables multipath protocols to allow connections to use multiple interfaces.

nw_parameters_set_prefer_no_proxy

Sets a Boolean that indicates that connections should ignore proxies when they are enabled on the system.

nw_parameters_set_prohibit_constrained

Prevents connections, listeners, and browsers from using network paths marked as constrained by Low Data Mode.

nw_parameters_set_prohibit_expensive

Prevents connections, listeners, and browsers from using network paths marked as expensive.

nw_parameters_set_required_interface_type

Sets an interface type to require on connections and listeners.

nw_parameters_set_reuse_local_address

Allows reusing local addresses and ports across connections.

nw_parameters_set_service_class

Sets a level of service quality to use for connections.

nw_path_copy_effective_local_endpoint

Accesses the local endpoint in use by a connection's network path.

nw_path_copy_effective_remote_endpoint

Accesses the remote endpoint in use by a connection's network path.

nw_path_enumerate_gateways

Enumerates the list of gateways configured on the interfaces available to a path.

nw_path_enumerate_interfaces

Enumerates the list of all interfaces available to the path, in order of preference.

nw_path_get_status

Checks whether a path can be used by connections.

nw_path_has_dns

Checks whether the path has a DNS server configured.

nw_path_has_ipv4

Checks whether the path can route IPv4 traffic.

nw_path_has_ipv6

Checks whether the path can route IPv6 traffic.

nw_path_is_constrained

Checks whether the path uses an interface in Low Data Mode.

nw_path_is_equal

Compares if two paths are identical.

nw_path_is_expensive

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

nw_path_monitor_cancel

Stops receiving network path updates.

nw_path_monitor_create

Initializes a path monitor to observe all available interface types.

nw_path_monitor_create_with_type

Initializes a path monitor to observe a specific interface type.

nw_path_monitor_set_cancel_handler

Sets a handler to determine when a monitor is fully cancelled and will no longer deliver events.

nw_path_monitor_set_queue

Sets a queue on which to deliver path events.

nw_path_monitor_set_update_handler

Sets a handler to receive network path updates.

nw_path_monitor_start

Starts monitoring path changes.

nw_path_uses_interface_type

Checks if connections using the path may send traffic over a specific interface type.

nw_protocol_copy_ip_definition

Accesses the system definition of the Internet Protocol.

nw_protocol_copy_tcp_definition

Accesses the system definition of the Transport Control Protocol.

nw_protocol_copy_tls_definition

Accesses the system definition of the Transport Layer Security protocol.

nw_protocol_copy_udp_definition

Accesses the system definition of the User Datagram Protocol.

nw_protocol_copy_ws_definition

Accesses the system definition of the WebSocket protocol.

nw_protocol_definition_is_equal

Compares two protocol definitions, and returns true if they represent the same protocol implementation.

nw_protocol_metadata_copy_definition

Accesses the protocol definition associated with the metadata object.

nw_protocol_metadata_is_framer_message

Checks if a metadata object represents a custom framer protocol message.

nw_protocol_metadata_is_ip

Checks whether a metadata object represents an IP packet.

nw_protocol_metadata_is_tcp

Checks whether a metadata object contains TCP connection state.

nw_protocol_metadata_is_tls

Checks whether a metadata object contains TLS connection state.

nw_protocol_metadata_is_udp

Checks whether a metadata object represents a UDP datagram.

nw_protocol_metadata_is_ws

Checks whether a metadata object represents a WebSocket message.

nw_protocol_options_copy_definition

Accesses the protocol definition associated with the options object.

nw_protocol_stack_clear_application_protocols

Removes all application protocols from the protocol stack.

nw_protocol_stack_copy_internet_protocol

Accesses the protocol stack's Internet Protocol options.

nw_protocol_stack_copy_transport_protocol

Accesses the options for the protocol stack's transport protocol.

nw_protocol_stack_iterate_application_protocols

Iterates through the array of application protocol options that will be used by connections and listeners.

nw_protocol_stack_prepend_application_protocol

Adds a protocol onto the top of the protocol stack.

nw_protocol_stack_set_transport_protocol

Replaces the protocol stack's transport protocol with a new set of options.

nw_tcp_create_options

Initializes a default set of TCP connection options.

nw_tcp_get_available_receive_buffer

Accesses the number of available bytes in the TCP receive buffer.

nw_tcp_get_available_send_buffer

Accesses the number of available bytes in the TCP send buffer.

nw_tcp_options_set_connection_timeout

Sets the number of seconds that TCP waits before timing out its handshake.

nw_tcp_options_set_disable_ack_stretching

Disables TCP acknowledgment stretching.

nw_tcp_options_set_disable_ecn

Disables negotiation of Explicit Congestion Notification markings.

nw_tcp_options_set_enable_fast_open

Enables TCP Fast Open on a connection.

nw_tcp_options_set_keepalive_count

Sets the number of keepalive probes that TCP sends before terminating the connection.

nw_tcp_options_set_keepalive_idle_time

Sets the number of seconds of idleness that TCP waits before sending keepalive probes.

nw_tcp_options_set_keepalive_interval

Sets the number of seconds that TCP waits between sending keepalive probes.

nw_tcp_options_set_maximum_segment_size

Sets TCP's maximum segment size in bytes.

nw_tcp_options_set_no_delay

Disables Nagle's algorithm for TCP.

nw_tcp_options_set_no_options

Sets TCP into no-options mode.

nw_tcp_options_set_no_push

Sets TCP into no-push mode.

nw_tcp_options_set_persist_timeout

Sets the TCP persist timeout in seconds, as defined by RFC 6429.

nw_tcp_options_set_retransmit_connection_drop_time

Sets the number of seconds that TCP waits between retransmission attempts.

nw_tcp_options_set_retransmit_fin_drop

Causes TCP to drop its connection after not receiving an ACK after a FIN.

nw_tls_copy_sec_protocol_metadata

Accesses the result of the TLS handshake.

nw_tls_copy_sec_protocol_options

Accesses the handshake security options TLS will use.

nw_tls_create_options

Initializes a default set of TLS connection options.

nw_txt_record_access_bytes

Accesses the raw bytes contained within a TXT record.

nw_txt_record_access_key

Accesses the value for a specific key in a TXT record dictionary.

nw_txt_record_apply

Iterates through all keys in a TXT record dictionary.

nw_txt_record_copy

Performs a deep copy of a TXT record.

nw_txt_record_create_dictionary

Initializes a TXT record as a dictionary of strings.

nw_txt_record_create_with_bytes

Initializes a TXT record with raw bytes.

nw_txt_record_find_key

Checks the status of value associated with a key in a TXT record dictionary.

nw_txt_record_get_key_count

Accesses the number of keys stored in the TXT record dictionary.

nw_txt_record_is_dictionary

Checks whether a TXT record conforms to a dictionary format.

nw_txt_record_is_equal

Checks whether two TXT records are equivalent.

nw_txt_record_remove_key

Removes a data value in a TXT record dictionary.

nw_txt_record_set_key

Sets a data value in a TXT record dictionary.

nw_udp_create_metadata

Initializes a default UDP message.

nw_udp_create_options

Initializes a default set of UDP connection options.

nw_udp_options_set_prefer_no_checksum

Configures the connection to not send UDP checksums.

nw_ws_create_metadata

Initializes a WebSocket message with a specific type code.

nw_ws_create_options

Initializes a default set of WebSocket connection options.

nw_ws_metadata_copy_server_response

Accesses the WebSocket server's response sent during the handshake.

nw_ws_metadata_get_close_code

Accesses the close code on a WebSocket message.

nw_ws_metadata_get_opcode

Checks the type code on a WebSocket message.

nw_ws_metadata_set_close_code

Sets a close code on a WebSocket message.

nw_ws_metadata_set_pong_handler

Sets a handler on a Ping message to be invoked when the corresponding Pong message is received.

nw_ws_options_add_additional_header

Adds additional HTTP header fields to be sent by the client during the WebSocket handshake.

nw_ws_options_add_subprotocol

Adds to the list of supported application protocols that will be presented to a WebSocket server during connection establishment.

nw_ws_options_set_auto_reply_ping

Configures the connection to automatically reply to Ping messages instead of delivering them to you.

nw_ws_options_set_client_request_handler

Sets a handler to react to as a server to inbound WebSocket client handshakes.

nw_ws_options_set_maximum_message_size

Sets the maximum allowed message size, in bytes, to be received by the WebSocket connection.

nw_ws_options_set_skip_handshake

Specifies whether the WebSocket protocol skips its handshake and begins framing data once the underlying connection is established.

nw_ws_request_enumerate_additional_headers

Enumerates additional HTTP headers in a WebSocket message.

nw_ws_request_enumerate_subprotocols

Enumerates the supported subprotocols in a WebSocket message.

nw_ws_response_add_additional_header

Adds an additional HTTP header to a WebSocket server response.

nw_ws_response_create

Initializes a WebSocket server response with a status and selected subprotocol.

nw_ws_response_enumerate_additional_headers

Enumerates the additional HTTP headers in a WebSocket server response.

nw_ws_response_get_selected_subprotocol

Accesses the selected subprotocol in a WebSocket server response.

nw_ws_response_get_status

Accesses the status of a WebSocket server response.