void TClntMsgInfRequest::answer(SPtr<TClntMsg> msg) { copyAAASPI(msg); TClntMsg::answer(msg); #if 0 //which option have we requested from server SPtr<TClntOptOptionRequest> ptrORO; ptrORO = (Ptr*)getOption(OPTION_ORO); SPtr<TOpt> option; msg->firstOption(); while(option = msg->getOption()) { //if option did what it was supposed to do ??? if (!option->doDuties()) { // Log(Debug) << "Setting option " << option->getOptType() << " failed." << LogEnd; continue; } if ( ptrORO && (ptrORO->isOption(option->getOptType())) ) ptrORO->delOption(option->getOptType()); SPtr<TOpt> requestOpt; this->firstOption(); while ( requestOpt = this->getOption()) { if (requestOpt->getOptType()==option->getOptType()) { delOption(requestOpt->getOptType()); break; } }//while } ptrORO->delOption(OPTION_INFORMATION_REFRESH_TIME); if (ptrORO && ptrORO->count()) { if (ClntCfgMgr().insistMode()){ Log(Notice) << "Insist-mode enabled. Not all options were assigned ("; for (int i=0; i<ptrORO->count(); i++) Log(Cont) << ptrORO->getReqOpt(i) << " "; Log(Cont) << "). Sending new INFORMATION-REQUEST." << LogEnd; ClntTransMgr().sendInfRequest(Options,Iface); } else { Log(Notice) << "Insist-mode disabled. Not all options were assigned ("; for (int i=0; i<ptrORO->count(); i++) Log(Cont) << ptrORO->getReqOpt(i) << " "; Log(Cont) << "). They will remain unconfigured." << LogEnd; IsDone = true; } } else { Log(Debug) << "All requested options were assigned." << LogEnd; IsDone=true; } return; #endif }
TSrvMsgAdvertise::TSrvMsgAdvertise(SPtr<TSrvMsgSolicit> solicit) :TSrvMsg(solicit->getIface(),solicit->getAddr(), ADVERTISE_MSG, solicit->getTransID()) { getORO( (Ptr*)solicit ); copyClientID( (Ptr*)solicit ); copyRelayInfo( (Ptr*)solicit ); copyAAASPI( (Ptr*)solicit ); copyRemoteID( (Ptr*)solicit ); if (!this->handleSolicitOptions(solicit)) { this->IsDone = true; return; } this->IsDone = false; }