nl:: Weave:: HostPortList
#include <src/lib/core/HostPortList.h>
For managing and manipulating a Host Port List, a compact, binary-encoded collection of host and port identifier tuples associated with the Weave Service Directory.
Summary
Constructors and Destructors |
|
---|---|
HostPortList(void)
Class default (void) constructor.
|
|
HostPortList(const uint8_t *hostPortList, uint8_t hostPortCount, const uint8_t *suffixList, const uint8_t suffixCount)
|
Public functions |
|
---|---|
Clear(void)
|
void
Reset the list to empty.
|
Get(uint8_t index, char *hostBuf, uint32_t hostBufSize, uint16_t & port) const
|
Get the host name and port at the specified index from the list.
|
IsEmpty(void) const
|
bool
|
Pop(char *hostBuf, uint32_t hostBufSize, uint16_t & port)
|
Get and remove the first host name and port from the list.
|
Public functions
Clear
void Clear( void )
Reset the list to empty.
Get
WEAVE_ERROR Get( uint8_t index, char *hostBuf, uint32_t hostBufSize, uint16_t & port ) const
Get the host name and port at the specified index from the list.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|
HostPortList
HostPortList( void )
Class default (void) constructor.
HostPortList
HostPortList( const uint8_t *hostPortList, uint8_t hostPortCount, const uint8_t *suffixList, const uint8_t suffixCount )
IsEmpty
bool IsEmpty( void ) const
Pop
WEAVE_ERROR Pop( char *hostBuf, uint32_t hostBufSize, uint16_t & port )
Get and remove the first host name and port from the list.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|