34 #ifndef NET_SOCKET_HPP_ 35 #define NET_SOCKET_HPP_ 198 SockAddr(
void) { memset(&mAddress, 0,
sizeof(mAddress)), mPort = 0, mScopeId = 0; }
224 #endif // NET_SOCKET_HPP_ const Address & GetPeerAddr(void) const
This method returns a reference to the peer socket address.
Definition: socket.hpp:112
uint16_t mPeerPort
The peer transport-layer port.
Definition: types.h:456
This file includes definitions for IPv6 addresses.
This class implements an IPv6 address object.
Definition: ip6_address.hpp:60
void SetSockPort(uint16_t aPort)
This method gets the local socket port.
Definition: socket.hpp:96
void SetLinkInfo(const void *aLinkInfo)
This method sets the pointer to the Link Info.
Definition: socket.hpp:184
This class implements message information for an IPv6 message.
Definition: socket.hpp:57
void SetHopLimit(uint8_t aHopLimit)
This method sets the Hop Limit.
Definition: socket.hpp:168
Address & GetPeerAddr(void)
This method returns a reference to the peer socket address.
Definition: socket.hpp:104
void SetSockAddr(const Address &aAddress)
This method sets the local socket address.
Definition: socket.hpp:80
void SetPeerAddr(const Address &aAddress)
This method sets the peer's socket address.
Definition: socket.hpp:120
This structure represents an IPv6 socket address.
Definition: types.h:1140
int8_t GetInterfaceId(void) const
This method gets the Interface ID.
Definition: socket.hpp:144
This class implements a socket address.
Definition: socket.hpp:191
int8_t mInterfaceId
An IPv6 interface identifier.
Definition: types.h:461
SockAddr(void)
This constructor initializes the object.
Definition: socket.hpp:198
const Address & GetAddress(void) const
This method returns a reference to the IPv6 address.
Definition: socket.hpp:214
uint16_t GetSockPort(void) const
This method gets the local socket port.
Definition: socket.hpp:88
This file defines the top-level functions for the OpenThread library.
This structure represents the local and peer IPv6 socket addresses.
Definition: types.h:436
void SetPeerPort(uint16_t aPort)
This method gets the peer socket port.
Definition: socket.hpp:136
uint16_t mSockPort
The local transport-layer port.
Definition: types.h:451
void SetInterfaceId(int8_t aInterfaceId)
This method sets the Interface ID.
Definition: socket.hpp:152
otIp6Address mSockAddr
The local IPv6 address.
Definition: types.h:441
const void * mLinkInfo
A pointer to link-specific information.
Definition: types.h:473
uint16_t GetPeerPort(void) const
This method gets the peer socket port.
Definition: socket.hpp:128
const Address & GetSockAddr(void) const
This method returns a reference to the local socket address.
Definition: socket.hpp:72
Address & GetAddress(void)
This method returns a reference to the IPv6 address.
Definition: socket.hpp:206
uint8_t mHopLimit
The IPv6 Hop Limit.
Definition: types.h:466
uint8_t GetHopLimit(void) const
This method gets the Hop Limit.
Definition: socket.hpp:160
const void * GetLinkInfo(void) const
This method returns a pointer to the Link Info.
Definition: socket.hpp:176
otIp6Address mPeerAddr
The peer IPv6 address.
Definition: types.h:446
This file includes compile-time configuration constants for OpenThread.
MessageInfo(void)
This constructor initializes the object.
Definition: socket.hpp:64