A simple server 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) {
fprintf(stderr, "Unable to initialize stomp messenger\n");
goto failure_without_message;
}
goto failure_without_message;
}
goto failure_without_message;
}
goto failure_without_message;
}
goto failure_with_message;
}
fprintf(stdout,
"%s\n", message->
body);
"test");
fprintf(stdout, "test: %s\n", test_data);
fprintf(stdout, "Creation time: %s\n", ctime);
goto failure_with_message;
}
return EXIT_SUCCESS;
failure_with_message:
failure_without_message:
return EXIT_FAILURE;
}