RSB
0.19.0
|
Instances of this class provide access to a socket-based bus. More...
#include <Bus.h>
Public Member Functions | |
virtual | ~Bus () |
virtual void | addSink (InConnectorPtr sink)=0 |
virtual void | removeSink (const InConnector *sink)=0 |
virtual void | addConnection (BusConnectionPtr connection)=0 |
Adds connection to the list of connections of the bus. More... | |
virtual void | removeConnection (BusConnectionPtr connection)=0 |
Removes connection from the list of connections of this bus. More... | |
virtual bool | isTcpnodelay () const =0 |
virtual void | handle (EventPtr event)=0 |
Handle event. More... | |
virtual void | handleIncoming (EventPtr event, BusConnectionPtr connection)=0 |
virtual const std::string | getTransportURL () const =0 |
Public Member Functions inherited from rsb::eventprocessing::Handler | |
virtual | ~Handler () |
Friends | |
class | BusConnection |
Instances of this class provide access to a socket-based bus.
It is transparent for clients (connectors) of this class whether is accessed by running the bus server or by connecting to the bus server as a client.
In-direction connectors add themselves as event sinks using the addSink method.
Out-direction connectors submit events to the bus using the handle method.
|
pure virtual |
Adds connection to the list of connections of the bus.
connection should start receiving events, only after being added to the bus.
connection | The connection that should be added. |
Implemented in rsb::transport::socket::BusImpl, and rsb::transport::socket::LifecycledBusServer.
|
pure virtual |
Implemented in rsb::transport::socket::BusImpl, and rsb::transport::socket::LifecycledBusServer.
|
pure virtual |
|
pure virtual |
Handle event.
event | The event that should be handled. |
Implements rsb::eventprocessing::Handler.
Implemented in rsb::transport::socket::BusImpl, and rsb::transport::socket::LifecycledBusServer.
|
pure virtual |
|
pure virtual |
Implemented in rsb::transport::socket::BusImpl, and rsb::transport::socket::LifecycledBusServer.
|
pure virtual |
Removes connection from the list of connections of this bus.
connection is not closed or otherwise modified.
connection | The connection that should be removed. |
Implemented in rsb::transport::socket::BusImpl, and rsb::transport::socket::LifecycledBusServer.
|
pure virtual |
Implemented in rsb::transport::socket::BusImpl, and rsb::transport::socket::LifecycledBusServer.
|
friend |