29 #include <boost/format.hpp>
36 using namespace boost;
38 using namespace rsc::logging;
50 active(false), logger(Logger::getLogger(
"rsb.transport.socket.ConnectorBase")),
51 host(host), port(port), server(server), tcpnodelay(tcpnodelay) {
66 throw std::runtime_error(
"Cannot set scope while active");
72 RSCDEBUG(
logger,
"Activating");
77 Factory& factory = Factory::getInstance();
87 RSCDEBUG(
logger,
"Deactivating");
93 RSCDEBUG(
logger,
"Removing ourselves from connector list of bus " << bus);
94 bus->removeConnector(
this);
This base class enables look up of suitable rsb::converter::Converter s in rsb::transport::Connector ...
virtual void deactivate()
virtual void setScope(const Scope &scope)
virtual Scope getScope() const
rsc::logging::LoggerPtr logger
The singleton instance of this class is responsible for managing bus provider objects.
BusPtr getBus()
Return the Bus object through which this connector is connected to a socket-based bus...
BusPtr getBus(const Server &serverMode, const std::string &host, const boost::uint16_t &port, bool tcpnodelay, ConnectorBase *connector)
Returns either a BusClient or Server depending on the chosen serverMode and the existence of a server...
converter::ConverterSelectionStrategy< std::string >::Ptr ConverterSelectionStrategyPtr
Scope is a descriptor for a hierarchical channel of the unified bus.
boost::shared_ptr< Bus > BusPtr