otUdpSocket

#include <udp.h>

Represents a UDP socket.

Summary

Public attributes

mContext
void *
A pointer to application-specific context.
mHandle
void *
A handle to platform's UDP.
mHandler
A function pointer to the application callback.
mNext
struct otUdpSocket *
A pointer to the next UDP socket (internal use only).
mPeerName
The peer IPv6 socket address.
mSockName
The local IPv6 socket address.

Public attributes

mContext

void * otUdpSocket::mContext

A pointer to application-specific context.

mHandle

void * otUdpSocket::mHandle

A handle to platform's UDP.

mHandler

otUdpReceive otUdpSocket::mHandler

A function pointer to the application callback.

mNext

struct otUdpSocket * otUdpSocket::mNext

A pointer to the next UDP socket (internal use only).

mPeerName

otSockAddr otUdpSocket::mPeerName

The peer IPv6 socket address.

mSockName

otSockAddr otUdpSocket::mSockName

The local IPv6 socket address.

Resources

OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.