|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
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());
bool read(PortReader &reader, bool willReply=false) override
Read an object from the port.
void setRpcMode(bool expectRpc) override
Configure the port to be RPC only.
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.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
~RpcClient() override
Destructor.
bool replyAndDrop(PortWriter &writer) override
Same as reply(), but closes connection after reply.
void setOutputMode(bool expectOutput) override
Configure the port to allow or forbid outputs.
#define yCAssert(component, x)
#define yCError(component,...)
An interface to the operating system, including Port based communication.
#define YARP_OS_LOG_COMPONENT(name, name_string)
The components from which ports and connections are built.
Port & asPort() override
Get the concrete Port being used for communication.
bool reply(PortWriter &writer) override
Send an object as a reply to an object read from the port.