A simple client that connects to local host and exchange 1 message with the server
#include <stdio.h>
#include <stdlib.h>
int main(
int argc,
char **argv)
{
if (!messenger) {
goto failure_without_message;
}
goto failure_without_message;
}
goto failure_without_message;
}
if (!message) {
goto failure_with_message;
}
char *text = "HIGH LEVEL API TEST";
goto failure_with_message;
}
stat =
stomp_send(messenger, &send_header, message);
goto failure_with_message;
}
goto failure_with_message;
}
return EXIT_SUCCESS;
failure_with_message:
failure_without_message:
return EXIT_FAILURE;
}