30 #include "../../MetaData.h"
31 #include "../../EventId.h"
35 using namespace boost;
37 using namespace rsc::logging;
38 using namespace rsc::runtime;
44 transport::OutConnector* OutConnector::create(
const Properties& args) {
45 LoggerPtr logger = Logger::getLogger(
"rsb.transport.socket.OutConnector");
46 RSCDEBUG(logger,
"Creating OutConnector with properties " << args);
48 return new OutConnector(args.get<ConverterSelectionStrategyPtr>(
"converters"),
52 args.getAs<
bool> (
"tcpnodelay",
false));
61 logger(Logger::getLogger(
"rsb.transport.socket.OutConnector")){
77 RSCWARN(
logger,
"Quality of service not implemented");
81 event->mutableMetaData().setSendTime();
84 boost::shared_ptr<string> wireData(
new string());
86 string wireSchema =
getConverter(busEvent->getType())->serialize(d, *wireData);
87 busEvent->setData(wireData);
88 busEvent->mutableMetaData().setUserInfo(
"rsb.wire-schema", wireSchema);
90 getBus()->handle(busEvent);