Contents

nw_connection_group_send_message(_:_:_:_:_:)

Sends data to the entire group, or to a specific member of the group.

Declaration

func nw_connection_group_send_message(_ group: nw_connection_group_t, _ content: dispatch_data_t?, _ endpoint: nw_endpoint_t?, _ context: nw_content_context_t, _ completion: @escaping  nw_connection_group_send_completion_t)

Parameters

  • group:

    The connection group you use to send.

  • content:

    The data to send.

  • endpoint:

    An optional endpoint that specifies a member of the group that receives the data. If the endpoint is nil, the data will be sent to the entire group.

  • context:

    The metadata that defines how the message is sent.

  • completion:

    A completion that notifies you when the connection group has processed and sent the data.

See Also

Functions