Guest User

Untitled

a guest
Jul 6th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. int xsend(void *socket, size_t size, void *data, int flags) {
  2.   zmq_msg_t request;
  3.   int code;
  4.  
  5.   zmq_msg_init_size(&request, size);
  6.   memcpy(zmq_msg_data(&request), data, size);
  7.   code = zmq_send(socket, &request, flags);
  8.   zmq_msg_close(&request);
  9.  
  10.   return code;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment