ot::Ip6::Udp::SendTo() method
Sends a UDP message using a socket.
Arguments
aSocket
A reference to the socket.
aMessage
The message to send.
aMessageInfo
The message info associated with @p aMessage.
Return value
kErrorNone Successfully sent the UDP message. kErrorInvalidArgs If no peer is specified in @p aMessageInfo or by Connect(). kErrorNoBufs Insufficient available buffer to add the UDP and IPv6 headers.