RSB
0.7.0
|
Classes | |
class | Bus |
Instances of this class provide access to a socket-based bus. More... | |
class | BusConnection |
Instances of this class implement connections to a socket-based bus. More... | |
class | BusServer |
Instances of this class provide access to a socket-based bus for local and remote bus clients. More... | |
class | ConnectorBase |
This class is intended to be used as a base class for connector classes of the socket-based transport. More... | |
class | Factory |
The singleton instance of this class is responsible for managing bus provider objects. More... | |
class | InConnector |
Instances of this class receive events from a bus that is accessed via a socket connection. More... | |
class | InPullConnector |
Instances of this class receive events from a bus that is accessed via a socket connection. More... | |
class | InPushConnector |
Instances of this class receive events from a bus that is accessed via a socket connection. More... | |
class | OutConnector |
Instances of this connector class push events into Bus objects which take care of socket-based broadcast and delivery. More... |
Typedefs | |
typedef boost::shared_ptr< Bus > | BusPtr |
typedef boost::shared_ptr < BusConnection > | BusConnectionPtr |
typedef boost::shared_ptr < BusServer > | BusServerPtr |
typedef boost::shared_ptr < ConnectorBase > | ConnectorBasePtr |
typedef boost::shared_ptr < InConnector > | InConnectorPtr |
typedef boost::shared_ptr < InPullConnector > | InPullConnectorPtr |
typedef boost::shared_ptr < InPushConnector > | InPushConnectorPtr |
Enumerations | |
enum | Server { SERVER_NO = 0, SERVER_YES = 1, SERVER_AUTO = 2 } |
Functions | |
EventPtr | notificationToEvent (protocol::Notification ¬ification, bool exposeWireSchema=false) |
Converts notification into an Event. | |
void | eventToNotification (protocol::Notification ¬ification, const EventPtr &event, const std::string &wireSchema, const std::string &data) |
Converts the Event event into a protocol::Notification, storing the result in notification. | |
template<typename Ch , typename Tr > | |
std::basic_istream< Ch, Tr > & | operator>> (std::basic_istream< Ch, Tr > &stream, Server &value) |
template<typename Ch , typename Tr > | |
std::basic_ostream< Ch, Tr > & | operator<< (std::basic_ostream< Ch, Tr > &stream, const Server &value) |
Variables | |
const string | DEFAULT_HOST = "localhost" |
const uint16_t | DEFAULT_PORT = 55555 |
typedef boost::shared_ptr<BusConnection> rsb::transport::socket::BusConnectionPtr |
Definition at line 124 of file BusConnection.h.
typedef boost::shared_ptr< Bus > rsb::transport::socket::BusPtr |
Definition at line 49 of file BusConnection.h.
typedef boost::shared_ptr<BusServer> rsb::transport::socket::BusServerPtr |
Definition at line 105 of file BusServer.h.
typedef boost::shared_ptr<ConnectorBase> rsb::transport::socket::ConnectorBasePtr |
Definition at line 113 of file ConnectorBase.h.
typedef boost::shared_ptr<InConnector> rsb::transport::socket::InConnectorPtr |
Definition at line 94 of file InConnector.h.
typedef boost::shared_ptr<InPullConnector> rsb::transport::socket::InPullConnectorPtr |
Definition at line 90 of file InPullConnector.h.
typedef boost::shared_ptr<InPushConnector> rsb::transport::socket::InPushConnectorPtr |
Definition at line 83 of file InPushConnector.h.
void rsb::transport::socket::eventToNotification | ( | protocol::Notification & | notification, |
const EventPtr & | event, | ||
const std::string & | wireSchema, | ||
const std::string & | data | ||
) |
Converts the Event event into a protocol::Notification, storing the result in notification.
notification | The protocol::Notification object into which the conversion should be performed. |
event | event The Event object that should be serialized. |
wireSchema | The wire-Schema that should be stored in notification. |
data | The payload that should be stored in notification. |
Definition at line 81 of file Serialization.cpp.
Referenced by rsb::transport::socket::BusConnection::sendEvent().
EventPtr rsb::transport::socket::notificationToEvent | ( | protocol::Notification & | notification, |
bool | exposeWireSchema = false |
||
) |
Converts notification into an Event.
The event payload will be copied from notification into the event unmodified to allow application of arbitrary converters.
notification | The protocol::Notification from which the event should be constructed. |
exposeWireSchema | Controls whether the wire-schema stored in notification should be exposed in a meta data item of the created event. |
TODO(jmoringe): it may be possible to keep a single event instance here since connectors probably have to copy events
Definition at line 39 of file Serialization.cpp.
References rsb::MetaData::setCreateTime(), rsb::MetaData::setReceiveTime(), rsb::MetaData::setSendTime(), rsb::MetaData::setUserInfo(), and rsb::MetaData::setUserTime().
Referenced by rsb::transport::socket::BusConnection::handleReadBody().
std::basic_ostream<Ch, Tr>& rsb::transport::socket::operator<< | ( | std::basic_ostream< Ch, Tr > & | stream, |
const Server & | value | ||
) |
Definition at line 69 of file Types.h.
References SERVER_AUTO, SERVER_NO, and SERVER_YES.
std::basic_istream<Ch, Tr>& rsb::transport::socket::operator>> | ( | std::basic_istream< Ch, Tr > & | stream, |
Server & | value | ||
) |
Definition at line 47 of file Types.h.
References SERVER_AUTO, SERVER_NO, and SERVER_YES.
const std::string rsb::transport::socket::DEFAULT_HOST = "localhost" |