32 mPriv->port.setInputMode(
false);
33 mPriv->port.setOutputMode(
true);
34 mPriv->port.setRpcMode(
true);
48 "cannot read from RpcClient %s, please use a regular Port for that",
49 mPriv->port.getName().c_str());
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 mini-server for network communication.
void setInputMode(bool expectInput) override
Configure the port to allow or forbid inputs.
void setOutputMode(bool expectOutput) override
Configure the port to allow or forbid outputs.
virtual ~RpcClient()
Destructor.
bool reply(PortWriter &writer) override
Send an object as a reply to an object read from the port.
bool replyAndDrop(PortWriter &writer) override
Same as reply(), but closes connection after reply.
bool read(PortReader &reader, bool willReply=false) override
Read an object from the port.
Port & asPort() override
Get the concrete Port being used for communication.
void setRpcMode(bool expectRpc) override
Configure the port to be RPC only.
#define yCError(component,...)
#define yCAssert(component, x)
#define YARP_OS_LOG_COMPONENT(name, name_string)
The components from which ports and connections are built.
An interface to the operating system, including Port based communication.