class WeaveServiceManager
Defined at line 182 of file 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_taCacheLen,RootDirectoryAccessoraAccessor,WeaveAuthModeaDirAuthMode,OnServiceEndpointQueryBeginaServiceEndpointQueryBegin,OnServiceEndpointQueryEndWithTimeInfoaServiceEndpointQueryEndWithTimeInfo,OnConnectBeginaConnectBegin)
WEAVE_ERROR connect (uint64_taServiceEp,WeaveAuthModeaAuthMode,void *aAppState,StatusHandleraStatusHandler,WeaveConnection::ConnectionCompleteFunctaConnectionCompleteHandler,const uint32_taConnectTimeoutMsecs,const InterfaceIdaConnectIntf)
WEAVE_ERROR lookup (uint64_t aServiceEp, HostPortList * outHostPortList)
WEAVE_ERROR lookup (uint64_taServiceEp,uint8_t *aControlByte,uint8_t **aDirectoryEntry)
WEAVE_ERROR replaceOrAddCacheEntry (uint16_tport,const char *hostName,uint8_thostLen,uint64_tserviceEndpointId)
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_taProfileId,uint8_taMsgType,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 gen/third_party/openweave-core/src/include/Weave/Profiles/service-directory/ServiceDirectory.h
Enumerations
enum (unnamed)
| Name | Value | Comments |
|---|---|---|
| kWeave_DefaultSendTimeout | 15000 |
Number of milliseconds a response must be received for the directory query before the exchange context times out. |
Defined at line 331 of file gen/third_party/openweave-core/src/include/Weave/Profiles/service-directory/ServiceDirectory.h