22int main(
int argc,
char **argv) {
24 BufferedPort<Bottle>
inPort;
27 BufferedPort<Bottle> outPort;
28 outPort.open(
"/relay/out");
31 cout <<
"waiting for input" << endl;
32 Bottle *input =
inPort.read();
35 Bottle& output = outPort.prepare();
38 cout <<
"writing " << output.toString() << endl;