Guest User

broker

a guest
Apr 11th, 2020
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.61 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. #include "mdp_broker.h"
  6.  
  7. int main() {
  8.  
  9.   int rc = 0;
  10.   char endpoint[] = "ipc:///tmp/bbtest.ipc";
  11.  
  12.   /*----------------------------------------------------------------------*/
  13.   /*  Start the MDP broker as new thread(s)                               */
  14.   /*----------------------------------------------------------------------*/
  15.   zactor_t *broker = zactor_new(mdp_broker, "test_MDP-broker");
  16.   assert(broker != NULL);
  17.   zstr_send(broker, "VERBOSE");
  18.   zstr_sendx(broker, "BIND", endpoint, NULL);
  19.  
  20.  
  21.   getchar();
  22.  
  23.   zactor_destroy(&broker);
  24.  
  25.   exit(0);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment