This outputs some data to a port.Designed to be used with os/simple_receiver/simple_receiver.cpp example.
#include <cstdio>
constexpr double loop_delay = 1.0;
constexpr size_t top = 100;
int main(
int argc,
char* argv[])
{
Port output;
output.open("/sender");
for (size_t i = 1; i <= top; i++) {
Bottle bot;
bot.addString("testing");
bot.addInt32(i);
bot.addString("of");
bot.addInt32(top);
output.write(bot);
printf("Sent message: %s\n", bot.toString().c_str());
}
output.close();
return 0;
}