/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>

#include "simple_stomp.h"

void print(char *msg)
{
   printf("%s\n", msg);
}

int main(int argc,char *argv[])
{
   simple_stomp_t ctx;
   char msg[100];
   simple_stomp_debug(0);
   simple_stomp_init(&ctx, "arnepc3", 61613, print);
   simple_stomp_read(&ctx, "/queue/arne", msg);
   printf("%s\n", msg);
   simple_stomp_close(&ctx);
   return 0;
}
