This example shows how to communicate between a pair of buffered ports.
#include <stdio.h>
printf(
"Writing bottle 1 (%s)\n", outBot1.
toString().c_str());
printf(
"Writing bottle 2 (%s)\n", outBot2.
toString().c_str());
printf(
"Bottle 1 is: %s\n", inBot1->
toString().c_str());
printf("Bottle 2 is: %s\n", inBot2->toString().c_str());
return 0;
}