nw_content_context_t
A representation of a message to send or receive, containing protocol metadata and send properties.
Declaration
typealias nw_content_context_t = any OS_nw_content_contextDiscussion
For sending, you should use NW_CONNECTION_DEFAULT_MESSAGE_CONTEXT unless there is a reason to override some values.
You can pass NW_CONNECTION_FINAL_MESSAGE_CONTEXT to mark the final message in a connection. Once this context is used for sending, and the send is marked as complete, no more data can be sent on the connection.
If you are using a protocol that expects message content, like WebSocket or a custom framer, create a custom context and set metadata using nw_content_context_set_metadata_for_protocol(_:_:).
Topics
Creating Custom Send Contexts
nw_content_context_create(_:)nw_content_context_set_metadata_for_protocol(_:_:)nw_protocol_metadata_tnw_content_context_set_antecedent(_:_:)nw_content_context_copy_antecedent(_:)nw_content_context_set_expiration_milliseconds(_:_:)nw_content_context_get_expiration_milliseconds(_:)nw_content_context_set_relative_priority(_:_:)nw_content_context_get_relative_priority(_:)nw_content_context_set_is_final(_:_:)nw_content_context_get_identifier(_:)
Inspecting Receive Contexts
See Also
Data Types
nw_advertise_descriptor_tnw_browse_descriptor_tnw_browse_result_change_tnw_browse_result_enumerate_interface_tnw_browse_result_tnw_browser_browse_results_changed_handler_tnw_browser_state_changed_handler_tnw_browser_tnw_connection_boolean_event_handler_tnw_connection_group_new_connection_handler_tnw_connection_group_receive_handler_tnw_connection_group_send_completion_tnw_connection_group_state_changed_handler_tnw_connection_group_tnw_connection_path_event_handler_t