nw_connection_receive(_:_:_:_:)
Schedules a single receive completion handler, with a range indicating how many bytes the handler can receive at one time.
Declaration
func nw_connection_receive(_ connection: nw_connection_t, _ minimum_incomplete_length: UInt32, _ maximum_length: UInt32, _ completion: @escaping nw_connection_receive_completion_t)Parameters
- connection:
A network connection instance.
- minimum_incomplete_length:
The minimum length to receive from the connection, until the content is complete.
- maximum_length:
The maximum length to receive from the connection in a single completion.
- completion:
A receive completion is invoked exactly once for a call to receive. The completion indicates that the requested content has been received (in which case the content is delivered), or else an error has occurred.
The completion delivers the received content, which may be nil if the message is complete or an error occurred, the message context, a flag indicating if the message is complete, and any associated error.
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(_:_:)