SSMRESULT finalConstruct();
void finalRelease();
- SSMRESULT registerResourceFinderEvent(IN IResourceFinderEvent *pEvent);
+ SSMRESULT registerResourceFinderEvent(IResourceFinderEvent *pEvent);
void onResourceFound(std::shared_ptr< OC::OCResource > resource);
void presenceHandler(OCStackResult result, const unsigned int nonce,
const std::string &hostAddress);
SSMRESULT startResourceFinder();
+ SSMRESULT stopResourceFinder();
- SSMRESULT startObserveResource(IN ISSMResource *pSensor, IN IEvent *pEvent);
- SSMRESULT stopObserveResource(IN ISSMResource *pSensor);
+ SSMRESULT startObserveResource(ISSMResource *pSensor, IEvent *pEvent);
+ SSMRESULT stopObserveResource(ISSMResource *pSensor);
- void onExecute(IN void *pArg);
- void onTerminate(IN void *pArg);
+ void onExecute(void *pArg);
+ void onTerminate(void *pArg);
private:
class OICResourceHandler
}
SSMRESULT initHandler(std::shared_ptr< OC::OCResource > resource,
- IN IThreadClient *pThreadClient)
+ IThreadClient *pThreadClient)
{
SSMRESULT res = SSM_E_FAIL;
RESOURCE_DISCOVER_INSTALL_RESOURCE,
RESOURCE_DISCOVER_UNINSTALL_RESOURCE
};
+
IResourceFinderEvent *m_pResourceFinderEvent;
CObjectPtr< ITasker > m_pTasker;
+ OC::OCPlatform::OCPresenceHandle m_multicastPresenceHandle;
std::map< std::string, OICResourceHandler * > m_mapResourceHandler;
std::map< std::string, std::vector<std::string> >
m_mapResources; // <hostaddress, std::vector<resources> >