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.
ot::Ip6::Udp::SendTo() calls 15 functions:
![]()
ot::Ip6::Udp::SendTo()
ot::Ip6::Udp::SendTo() reads 5 variables and writes 1 variable:
![]()
ot::Ip6::Udp::SendTo()