nl::Weave::Profiles::Vendor::Nestlabs::DropcamLegacyPairing::DropcamLegacyPairingServer

#include <src/lib/profiles/vendor/nestlabs/dropcam-legacy-pairing/DropcamLegacyPairing.h>

用于实现 Dropcam 旧版配对配置文件的服务器类。

摘要

继承

继承自nl::Weave::WeaveServerBase

构造函数和构造函数

DropcamLegacyPairingServer(void)
对 Dropcam 旧版配对服务器进行零初始化。

受保护的属性

mDelegate

公共函数

Init(WeaveExchangeManager *exchangeMgr)
初始化 Dropcam 旧版配对服务器状态,并注册以接收 Dropcam 旧版配对消息。
SetDelegate(DropcamLegacyPairingDelegate *delegate)
void
设置委托来处理 Dropcam 旧版配对服务器事件。
Shutdown(void)
关闭 Dropcam 旧版配对服务器。

受保护的静态函数

HandleClientRequest(ExchangeContext *ec, const IPPacketInfo *pktInfo, const WeaveMessageInfo *msgInfo, uint32_t profileId, uint8_t msgType, PacketBuffer *payload)
void

受保护的函数

DropcamLegacyPairingServer(const DropcamLegacyPairingServer &)
HandleCameraAuthDataRequest(ExchangeContext *ec, PacketBuffer *& msgBuf)

受保护的属性

mDelegate

DropcamLegacyPairingDelegate * mDelegate

公共函数

DropcamLegacyPairingServer

 DropcamLegacyPairingServer(
  void
)

对 Dropcam 旧版配对服务器进行零初始化。

必须在使用之前调用 Init()

Init

WEAVE_ERROR Init(
  WeaveExchangeManager *exchangeMgr
)

初始化 Dropcam 旧版配对服务器状态,并注册以接收 Dropcam 旧版配对消息。

详细信息
参数
[in] exchangeMgr
指向 Weave Exchange Manager 的指针。
返回值
WEAVE_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS
注册了过多不请自来的邮件处理程序。
WEAVE_NO_ERROR
成功时。

设置代理

void SetDelegate(
  DropcamLegacyPairingDelegate *delegate
)

设置委托来处理 Dropcam 旧版配对服务器事件。

详细信息
参数
[in] delegate
指向 Dropcam 旧版配对代理的指针。

关机

WEAVE_ERROR Shutdown(
  void
)

关闭 Dropcam 旧版配对服务器。

详细信息
返回值
WEAVE_NO_ERROR
无条件。

受保护的静态函数

HandleClientRequest 接口中的方法

void HandleClientRequest(
  ExchangeContext *ec,
  const IPPacketInfo *pktInfo,
  const WeaveMessageInfo *msgInfo,
  uint32_t profileId,
  uint8_t msgType,
  PacketBuffer *payload
)

受保护的函数

DropcamLegacyPairingServer

 DropcamLegacyPairingServer(
  const DropcamLegacyPairingServer &
)

HandleCameraAuthDataRequest

WEAVE_ERROR HandleCameraAuthDataRequest(
  ExchangeContext *ec,
  PacketBuffer *& msgBuf
)