int send(
List<int> buffer,
InternetAddress address,
int port
)

Send a datagram.

Returns the number of bytes written. This will always be either the size of buffer or 0.

Source

/**
 * Send a datagram.
 *
 * Returns the number of bytes written. This will always be either
 * the size of [buffer] or `0`.
 */
int send(List<int> buffer, InternetAddress address, int port);