/** * handle response * * @param question * @param answer * * @return */ bool TClntTransMgr::handleResponse(SPtr<TClntMsg> question, SPtr<TClntMsg> answer) { // pre-handling hooks can be added here // handle actual response question->answer(answer); // post-handling hooks can be added here SPtr<TMsg> q = SPtr_cast<TMsg>(question); SPtr<TMsg> a = SPtr_cast<TMsg>(answer); ClntIfaceMgr().notifyScripts(ClntCfgMgr().getScript(), q, a); if ( (question->getType()==REQUEST_MSG || question->getType()==SOLICIT_MSG) && (answer->getType()==REPLY_MSG) ) { // we got actual configuration complete here } return true; }