Adds a protocol onto the top of the protocol stack.


func nw_protocol_stack_prepend_application_protocol(_ stack: nw_protocol_stack_t, _ protocol: nw_protocol_options_t)

See Also

Modifying Application Protocols

func nw_protocol_stack_clear_application_protocols(nw_protocol_stack_t)

Removes all application protocols from the protocol stack.

func nw_protocol_stack_iterate_application_protocols(nw_protocol_stack_t, (nw_protocol_options_t) -> Void)

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

typealias nw_protocol_stack_iterate_protocols_block_t

A block that allows you to inspect or modify a single protocol's options.