nw_connection_cancel_current_endpoint(_:)
Causes the current endpoint to be rejected, allowing the connection to try another resolved address.
Declaration
func nw_connection_cancel_current_endpoint(_ connection: nw_connection_t)Discussion
Protocols that do not have handshakes, such as UDP, do not allow connections to validate connectivity on their own. Cancelling an endpoint allows you to indicate that a certain endpoint should be rejected due to a lack of valid response. If other addresses were resolved for the remote endpoint, those will be attempted next.
See Also
Functions
nw_advertise_descriptor_copy_txt_record_object(_:)nw_advertise_descriptor_create_application_service(_:)nw_advertise_descriptor_create_bonjour_service(_:_:_:)nw_advertise_descriptor_get_application_service_name(_:)nw_advertise_descriptor_get_no_auto_rename(_:)nw_advertise_descriptor_set_no_auto_rename(_:_:)nw_advertise_descriptor_set_txt_record(_:_:_:)nw_advertise_descriptor_set_txt_record_object(_:_:)nw_browse_descriptor_create_application_service(_:)nw_browse_descriptor_create_bonjour_service(_:_:)nw_browse_descriptor_get_application_service_name(_:)nw_browse_descriptor_get_bonjour_service_domain(_:)nw_browse_descriptor_get_bonjour_service_type(_:)nw_browse_descriptor_get_include_txt_record(_:)nw_browse_descriptor_set_include_txt_record(_:_:)