Example showing how to add a new carrier to YARP.
#include <stdio.h>
{
public:
virtual std::string
getName()
const override
{
return "test";
}
{
return "TESTTEST";
}
virtual Carrier *
create()
const override
{
return new TestCarrier();
}
};
int main(
int argc,
char *argv[])
{
if (bot!=NULL) {
printf(
"Got message %s\n", bot->
toString().c_str());
}
return 0;
}
static bool connect(const std::string &src, const std::string &dest, const std::string &carrier="", bool quiet=true)
Request that an output port connect to an input port.
virtual std::string getSpecifierName() const
Communicating between two ports via a plain-text protocol.
std::string getName() const override
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
Carrier * create() const override
Factory method.