#include "CAVERN.h++"
#include <unistd.h>

main(int argc, char** argv)
{

     /// Startup CAVERN.

         CAVERN_irb_c *personalIRB = CAVERNInit(&argc, &argv, NULL); 
        if (!personalIRB) exit(1);

         CAVERN_irbId_c myId = personalIRB->getSelfIRBId();

         cvrnMesg(NULL,"Tune into this address & port: %s %u to connect to this IRB.", myId.getAddress(), myId.getPort());

    /// Now you can do your own stuff here. Or you can do nothing in an infinite while loop.

         while(1) {
              /// This is just a thread-safe printf
                  cvrnMesg(NULL,".");
                  sleep(10);
             }

}