66 for (
auto it=binder.begin(); it!=binder.end(); ++it)
83 for (
auto it = binder.begin(); it != binder.end(); ++it)
100 return "portmonitor";
105 return "portmonitor_carrier";
127 void lock()
const { mutex.lock(); }
135 if (binder.empty()) {
146 static std::unique_ptr<yarp::os::ElectionOf<PortMonitorGroup>> peers;
155 std::vector<MonitorBinding*> binder;
157 mutable std::mutex mutex;
Manager for arbitration-aware inputs to a given port.
virtual ~PortMonitorGroup()
virtual bool acceptIncomingData(PortMonitor *source)
Allow to monitor and modify port data from Lua script Under development.
MonitorBinding * getBinder()
PortMonitor & operator=(const PortMonitor &)=delete
void getCarrierParams(yarp::os::Property ¶ms) const override
Get carrier configuration and deliver it by port administrative commands.
yarp::os::ConnectionReader & modifyIncomingData(yarp::os::ConnectionReader &reader) override
Modify incoming payload data, if appropriate.
const yarp::os::PortWriter & modifyOutgoingData(const yarp::os::PortWriter &writer) override
Modify outgoing payload data, if appropriate.
PortMonitor(const PortMonitor &)=delete
Carrier * create() const override
Factory method.
std::string getName() const override
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
std::string toString() const override
Get name of carrier.
PortMonitor & operator=(PortMonitor &&)=delete
PortMonitor(PortMonitor &&)=delete
yarp::os::PortReader & modifyReply(yarp::os::PortReader &reader) override
Modify reply payload data, if appropriate.
void setCarrierParams(const yarp::os::Property ¶ms) override
Configure carrier from port administrative commands.
bool configureFromProperty(yarp::os::Property &options) override
void close() override
Close the carrier.
bool acceptIncomingData(yarp::os::ConnectionReader &reader) override
Determine whether incoming data should be accepted.
bool acceptOutgoingData(const yarp::os::PortWriter &writer) override
Determine whether outgoing data should be accepted.
bool configure(yarp::os::ConnectionState &proto) override
Class PortMonitor.
A mini-server for performing network communication in the background.
An interface for reading from a network connection.
The basic state of a connection - route, streams in use, etc.
A dummy connection to test yarp::os::Portable implementations.
void remove(const std::string &key, typename PR::peer_type *entity)
A starter class for implementing simple modifying carriers.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
A class for storing options and configuration information.
Base class for generic things.