void SenderImpl::sendUnreliable(const qpid::messaging::Message& m) { sys::Mutex::ScopedLock l(lock); OutgoingMessage msg; msg.setSubject(m.getSubject().empty() ? address.getSubject() : m.getSubject()); msg.convert(m); sink->send(session, name, msg); }
void SenderImpl::sendImpl(const qpid::messaging::Message& m) { sys::Mutex::ScopedLock l(lock); std::auto_ptr<OutgoingMessage> msg(new OutgoingMessage()); msg->setSubject(m.getSubject().empty() ? address.getSubject() : m.getSubject()); msg->convert(m); outgoing.push_back(msg.release()); sink->send(session, name, outgoing.back()); }
void SenderImpl::sendImpl(const qpid::messaging::Message& m) { //TODO: make recording for replay optional (would still want to track completion however) std::auto_ptr<OutgoingMessage> msg(new OutgoingMessage()); msg->convert(m); msg->setSubject(m.getSubject().empty() ? address.getSubject() : m.getSubject()); outgoing.push_back(msg.release()); sink->send(session, name, outgoing.back()); }