class WeaveServiceManager
Defined at line 182 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/service-directory/ServiceDirectory.h
The manager object for the Weave service directory.
The Weave service manager is the main interface for
applications to the directory service. As such, it hides the
complications inherent in looking up the directory entry
associated with a service endpoint, doing DNS lookup on one or
more of the host names found there, attempting to connect,
securing the connection and so on. It may also manage a cache
of service directory information.
Public Methods
void WeaveServiceManager ()
void ~WeaveServiceManager ()
WEAVE_ERROR init (WeaveExchangeManager * aExchangeMgr, uint8_t * aCache, uint16_t aCacheLen, RootDirectoryAccessor aAccessor, WeaveAuthMode aDirAuthMode, OnServiceEndpointQueryBegin aServiceEndpointQueryBegin, OnServiceEndpointQueryEndWithTimeInfo aServiceEndpointQueryEndWithTimeInfo, OnConnectBegin aConnectBegin)
WEAVE_ERROR connect (uint64_t aServiceEp, WeaveAuthMode aAuthMode, void * aAppState, StatusHandler aStatusHandler, WeaveConnection::ConnectionCompleteFunct aConnectionCompleteHandler, const uint32_t aConnectTimeoutMsecs, const InterfaceId aConnectIntf)
WEAVE_ERROR lookup (uint64_t aServiceEp, HostPortList * outHostPortList)
WEAVE_ERROR lookup (uint64_t aServiceEp, uint8_t * aControlByte, uint8_t ** aDirectoryEntry)
WEAVE_ERROR replaceOrAddCacheEntry (uint16_t port, const char * hostName, uint8_t hostLen, uint64_t serviceEndpointId)
void cancel (uint64_t aServiceEp, void * aAppState)
void unresolve (WEAVE_ERROR aError)
void unresolve ()
void reset (WEAVE_ERROR aError)
void reset ()
void relocate (WEAVE_ERROR aError)
void relocate ()
void onConnectionComplete (WEAVE_ERROR aError)
Handler methods for the query/response transaction
void onConnectionClosed (WEAVE_ERROR aError)
void onResponseReceived (uint32_t aProfileId, uint8_t aMsgType, PacketBuffer * aMsg)
void onResponseTimeout ()
void clearCache ()
Clear cache and reset state so that the next connect request
goes to the service directory endpoint first
void SetConnectBeginCallback (OnConnectBegin aConnectBegin)
Set a callback function to be called immediately prior to connection establishment.
Parameters
Defined at line 537 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/service-directory/ServiceDirectory.h
Enumerations
enum
| Name | Value |
|---|---|
| kWeave_DefaultSendTimeout | 15000 |
Defined at line 331 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/service-directory/ServiceDirectory.h