nl:: Weave:: HostPortList
#include <src/lib/core/HostPortList.h>
用於管理及操控主機通訊埠清單;這是一組與 Weave 服務目錄相關聯的主機及通訊埠 ID 組合,採二進位編碼的精簡編碼集合。
摘要
建構函式和解構函式 |
|
---|---|
HostPortList(void)
類別預設 (void) 建構函式。
|
|
HostPortList(const uint8_t *hostPortList, uint8_t hostPortCount, const uint8_t *suffixList, const uint8_t suffixCount)
|
公開函式 |
|
---|---|
Clear(void)
|
void
將清單重設為空白。
|
Get(uint8_t index, char *hostBuf, uint32_t hostBufSize, uint16_t & port) const
|
從清單中取得指定索引的主機名稱和通訊埠。
|
IsEmpty(void) const
|
bool
|
Pop(char *hostBuf, uint32_t hostBufSize, uint16_t & port)
|
從清單中取得並移除第一個主機名稱和通訊埠。
|
公開函式
清除
void Clear( void )
將清單重設為空白。
取得
WEAVE_ERROR Get( uint8_t index, char *hostBuf, uint32_t hostBufSize, uint16_t & port ) const
從清單中取得指定索引的主機名稱和通訊埠。
詳細資料 | |||||||||
---|---|---|---|---|---|---|---|---|---|
參數 |
|
||||||||
傳回值 |
|
HostPortList
HostPortList( void )
類別預設 (void) 建構函式。
HostPortList
HostPortList( const uint8_t *hostPortList, uint8_t hostPortCount, const uint8_t *suffixList, const uint8_t suffixCount )
IsEmpty
bool IsEmpty( void ) const
流行
WEAVE_ERROR Pop( char *hostBuf, uint32_t hostBufSize, uint16_t & port )
從清單中取得並移除第一個主機名稱和通訊埠。
詳細資料 | |||||||||
---|---|---|---|---|---|---|---|---|---|
參數 |
|
||||||||
傳回值 |
|