src/common/msgfactory.cpp
IMessagePtr MessageFactory::getResponse(const IMessagePtr& request) const

{
    BOOST_ASSERT(request);
    BOOST_ASSERT(request->getType() == msg::SYNC_REQ);
    IMessagePtr response(new Message(request->getID(),
                                     request->getUUID()));
    response->setType(msg::SYNC_RES);
    return response;
}
// Gets response message
// construct it from the input arg
// @param[in] request - the request message
// @return the response message
Gets response message
construct it from the input arg
Gets response message construct it from the input arg
IMessagePtr MessageFactory::getResponse(const IMessagePtr& request) const
{
    BOOST_ASSERT(request);
    BOOST_ASSERT(request->getType() == msg::SYNC_REQ);
    IMessagePtr response(new Message(request->getID(),
                                     request->getUUID()));
    response->setType(msg::SYNC_RES);
    return response;
}
IMessagePtr MessageFactory :: getResponse ( const IMessagePtr & request ) const { BOOST_ASSERT ( request ) ; BOOST_ASSERT ( request -> getType ( ) == msg :: SYNC_REQ ) ; IMessagePtr response ( new Message ( request -> getID ( ) , request -> getUUID ( ) ) ) ; response -> setType ( msg :: SYNC_RES ) ; return response ; }
Gets response message
construct it from the input arg
Gets response message construct it from the input arg