Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include "mdp_broker.h"
- int main() {
- int rc = 0;
- char endpoint[] = "ipc:///tmp/bbtest.ipc";
- /*----------------------------------------------------------------------*/
- /* Start the MDP broker as new thread(s) */
- /*----------------------------------------------------------------------*/
- zactor_t *broker = zactor_new(mdp_broker, "test_MDP-broker");
- assert(broker != NULL);
- zstr_send(broker, "VERBOSE");
- zstr_sendx(broker, "BIND", endpoint, NULL);
- getchar();
- zactor_destroy(&broker);
- exit(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment