35 #ifndef OPENTHREAD_UDP_H_ 36 #define OPENTHREAD_UDP_H_ 184 #endif // OPENTHREAD_UDP_H_ This type represents all the static / global variables used by OpenThread allocated in one place...
Definition: openthread-instance.h:59
struct otUdpSocket * mNext
A pointer to the next UDP socket (internal use only).
Definition: udp.h:72
This file defines the types and structures used in the OpenThread library API.
otError otUdpOpen(otInstance *aInstance, otUdpSocket *aSocket, otUdpReceive aCallback, void *aContext)
Open a UDP/IPv6 socket.
Definition: udp_api.cpp:54
This file defines the top-level OpenThread APIs related to message buffer and queues.
This type points to an OpenThread message buffer.
Definition: types.h:479
This structure represents an IPv6 socket address.
Definition: types.h:1140
otSockAddr mSockName
The local IPv6 socket address.
Definition: udp.h:67
otError otUdpSend(otUdpSocket *aSocket, otMessage *aMessage, const otMessageInfo *aMessageInfo)
Send a UDP/IPv6 message.
Definition: udp_api.cpp:98
struct otUdpSocket otUdpSocket
This structure represents a UDP socket.
otUdpReceive mHandler
A function pointer to the application callback.
Definition: udp.h:69
otMessage * otUdpNewMessage(otInstance *aInstance, bool aLinkSecurityEnabled)
Allocate a new message buffer for sending a UDP message.
Definition: udp_api.cpp:42
void(* otUdpReceive)(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo)
This callback allows OpenThread to inform the application of a received UDP message.
Definition: udp.h:59
otError otUdpBind(otUdpSocket *aSocket, otSockAddr *aSockName)
Bind a UDP/IPv6 socket.
Definition: udp_api.cpp:86
This structure represents the local and peer IPv6 socket addresses.
Definition: types.h:436
otError otUdpConnect(otUdpSocket *aSocket, otSockAddr *aSockName)
Connect a UDP/IPv6 socket.
Definition: udp_api.cpp:92
otSockAddr mPeerName
The peer IPv6 socket address.
Definition: udp.h:68
This structure represents a UDP socket.
Definition: udp.h:65
otError otUdpClose(otUdpSocket *aSocket)
Close a UDP/IPv6 socket.
Definition: udp_api.cpp:68
void * mContext
A pointer to application-specific context.
Definition: udp.h:70
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107
void * mTransport
A pointer to the transport object (internal use only).
Definition: udp.h:71