nl::Weave::Profiles::ServiceDirectory

This namespace includes all interfaces within Weave for the Weave Service Directory profile, which includes the corresponding, protocol of the same name.

Summary

Enumerations

@245{
  kMsgType_ServiceEndpointQuery = 0x00,
  kMsgType_ServiceEndpointResponse = 0x01
}
enum
Weave message types used in this profile.
@246{
  kConnectRequestPoolSize = 4
}
enum
@247{
  kMask_DirectoryLen = 0x0F,
  kMask_Redirect = 0x10,
  kMask_SuffixTablePresent = 0x20,
  kMask_TimeFieldsPresent = 0x40
}
enum
Masks for the control byte of the service endpoint response frame.
@248{
  kMask_HostPortListLen = 0x07,
  kMask_DirectoryEntryType = 0xC0,
  kDirectoryEntryType_SingleNode = 0x00,
  kDirectoryEntryType_HostPortList = 0x40
}
enum
Masks and values for the control byte of the directory list field of the service endpoint response frame.
@249{
  kMask_HostIdType = 0x03,
  kHostIdType_FullyQualified = 0x00,
  kHostIdType_Composite = 0x01,
  kMask_SuffixIndexPresent = 0x04,
  kMask_PortIdPresent = 0x08
}
enum
Masks and values for the control byte in each host/port list item.
@250{
  kStatus_DirectoryUnavailable = 0x0051
}
enum
Status code.
@251 enum
Manager states.

Classes

nl::Weave::Profiles::ServiceDirectory::WeaveServiceManager

The manager object for the Weave service directory.

Enumerations

@245

 @245

Weave message types used in this profile.

Properties
kMsgType_ServiceEndpointQuery

Service Endpoint Query message type.

kMsgType_ServiceEndpointResponse

Service Endpoint Response message type.

@246

 @246
Properties
kConnectRequestPoolSize

the number of simultaneous connect requests

@247

 @247

Masks for the control byte of the service endpoint response frame.

Properties
kMask_DirectoryLen

Length of the directory.

kMask_Redirect

Redirect flag.

kMask_SuffixTablePresent

Suffix table present flag.

kMask_TimeFieldsPresent

Time fields present flag.

@248

 @248

Masks and values for the control byte of the directory list field of the service endpoint response frame.

Properties
kDirectoryEntryType_HostPortList

This entry is a list of host/port pairs.

kDirectoryEntryType_SingleNode

A zero value means this entry is a node ID.

kMask_DirectoryEntryType

Entry Type.

kMask_HostPortListLen

Length of the host/port list.

@249

 @249

Masks and values for the control byte in each host/port list item.

Properties
kHostIdType_Composite

The host ID needs to be matched with a suffix.

kHostIdType_FullyQualified

The host ID is all there.

kMask_HostIdType

The type of host ID.

kMask_PortIdPresent

A port ID is present.

kMask_SuffixIndexPresent

A suffix index is present.

@250

 @250

Status code.

Properties
kStatus_DirectoryUnavailable

Directory is not available.

@251

 @251

Manager states.