![]() |
0.01.00
|
This file defines the OpenThread UDP API. More...
Go to the source code of this file.
Classes | |
| struct | otUdpSocket |
| This structure represents a UDP socket. More... | |
Typedefs | |
| typedef void(* | otUdpReceive) (void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo) |
| This callback allows OpenThread to inform the application of a received UDP message. | |
| typedef struct otUdpSocket | otUdpSocket |
| This structure represents a UDP socket. | |
Functions | |
| otMessage * | otUdpNewMessage (otInstance *aInstance, bool aLinkSecurityEnabled) |
| Allocate a new message buffer for sending a UDP message. More... | |
| otError | otUdpOpen (otInstance *aInstance, otUdpSocket *aSocket, otUdpReceive aCallback, void *aContext) |
| Open a UDP/IPv6 socket. More... | |
| otError | otUdpClose (otUdpSocket *aSocket) |
| Close a UDP/IPv6 socket. More... | |
| otError | otUdpBind (otUdpSocket *aSocket, otSockAddr *aSockName) |
| Bind a UDP/IPv6 socket. More... | |
| otError | otUdpConnect (otUdpSocket *aSocket, otSockAddr *aSockName) |
| Connect a UDP/IPv6 socket. More... | |
| otError | otUdpSend (otUdpSocket *aSocket, otMessage *aMessage, const otMessageInfo *aMessageInfo) |
| Send a UDP/IPv6 message. More... | |
This file defines the OpenThread UDP API.