Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
basic_datagram_socket::send_to_multiple (2 of 3 overloads)

Send multiple datagrams to the specified endpoints.

template<
    typename ConstBufferSequences,
    typename EndpointSequence>
std::size_t send_to_multiple(
    ConstBufferSequences && buffer_sequences,
    EndpointSequence && endpoints,
    socket_base::message_flags flags);

This function is used to send multiple datagrams to the specified remote endpoints. The function call will block until one or more datagrams have been sent successfully or an error occurs. The number of datagrams transferred may be less than the length of the shortest range.

Parameters

buffer_sequences

A forward range of buffer sequences, one per datagram to send.

endpoints

A forward range of destination endpoints, one per datagram.

flags

Flags specifying how the send call is to be made.

Return Value

The number of datagrams sent.

Exceptions

boost::system::system_error

Thrown on failure.


PrevUpHomeNext