7#ifndef YARPDB_NAMESERVERMANAGER_INC
8#define YARPDB_NAMESERVERMANAGER_INC
18class NameServerManager;
65 bool ok = ns.
apply(cmd,reply,event,remote);
Manage a single connection to the name server.
void setPort(yarp::os::Port &port)
void onEvent(yarp::os::Bottle &event) override
virtual bool apply(yarp::os::Bottle &cmd, yarp::os::Bottle &reply, yarp::os::Bottle &event, const yarp::os::Contact &remote) override
yarp::os::PortReader * create() const override
Factory for PortReader objects.
NameServerManager(NameService &ns, yarp::os::Port *port=NULL)
Abstract interface for a name server operator.
virtual void onEvent(yarp::os::Bottle &event)
virtual bool apply(yarp::os::Bottle &cmd, yarp::os::Bottle &reply, yarp::os::Bottle &event, const yarp::os::Contact &remote)=0
A simple collection of objects that can be described and transmitted in a portable way.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
A mini-server for network communication.
bool write(const PortWriter &writer, const PortWriter *callback=nullptr) const override
Write an object to the port.