//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ AuthenticateResponse::AuthenticateResponse(pEndpoint_type _pSourceEndpoint, pEndpoint_type _pDestinationEndpoint, pResourceLocation_type _pSrcLocation, pResourceLocation_type _pDestLocation, boost::uint64_t _requestMessageId) : Response(AuthenticateResponse::createMessageHeader(getNewMessageId(), _requestMessageId, _pSrcLocation->toString(), _pDestLocation->toString()), _pSourceEndpoint, _pDestinationEndpoint) , m_account() , m_authenticated(false) { }
String MessageChannel::publish( MessageSession *p_session , Message *msg ) { ASSERTMSG( opened , "cannot publish to i/o channel name=" + name + " - not open" ); String id = getNewMessageId(); msg -> setChannelMessageId( id ); msg -> setSession( p_session ); if( sync ) { subscribeEvent( msg ); delete msg; } else messages -> addMessage( msg ); return( id ); }
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ DeleteGroupRequest::DeleteGroupRequest(pEndpoint_type _pSourceEndpoint, pEndpoint_type _pDestinationEndpoint) : Request(DeleteGroupRequest::createMessageHeader(getNewMessageId()), _pSourceEndpoint, _pDestinationEndpoint) { }
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ ReadChannelResponse::ReadChannelResponse(pEndpoint_type _pSourceEndpoint, pEndpoint_type _pDestinationEndpoint, boost::uint64_t _requestMessageId) : Response(ReadChannelResponse::createMessageHeader(getNewMessageId(), _requestMessageId), _pSourceEndpoint, _pDestinationEndpoint) { }
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ LoginRequest::LoginRequest(pEndpoint_type _pSourceEndpoint, pEndpoint_type _pDestinationEndpoint) : Request(LoginRequest::createMessageHeader(getNewMessageId()), _pSourceEndpoint, _pDestinationEndpoint) { }
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ SubscribeAccountModelResponse::SubscribeAccountModelResponse(pEndpoint_type _pSourceEndpoint, pEndpoint_type _pDestinationEndpoint, boost::uint64_t _requestMessageId) : Response(SubscribeAccountModelResponse::createMessageHeader(getNewMessageId(), _requestMessageId), _pSourceEndpoint, _pDestinationEndpoint) { }
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ CreateChannelRequest::CreateChannelRequest(pEndpoint_type _pSourceEndpoint, pEndpoint_type _pDestinationEndpoint) : Request(CreateChannelRequest::createMessageHeader(getNewMessageId()), _pSourceEndpoint, _pDestinationEndpoint) { }
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ SubscribeModelRequest::SubscribeModelRequest(pEndpoint_type _pSourceEndpoint, pEndpoint_type _pDestinationEndpoint) : Request(SubscribeModelRequest::createMessageHeader(getNewMessageId()), _pSourceEndpoint, _pDestinationEndpoint) { }