zmq_msg_move.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. zmq_msg_move(3)
  2. ===============
  3. NAME
  4. ----
  5. zmq_msg_move - move content of a message to another message
  6. SYNOPSIS
  7. --------
  8. *int zmq_msg_move (zmq_msg_t '*dest', zmq_msg_t '*src');*
  9. DESCRIPTION
  10. -----------
  11. The _zmq_msg_move()_ function shall move the content of the message object
  12. referenced by 'src' to the message object referenced by 'dest'. No actual
  13. copying of message content is performed, 'dest' is simply updated to reference
  14. the new content. 'src' becomes an empty message after calling _zmq_msg_move()_.
  15. The original content of 'dest', if any, shall be released.
  16. CAUTION: Never access 'zmq_msg_t' members directly, instead always use the
  17. _zmq_msg_ family of functions.
  18. RETURN VALUE
  19. ------------
  20. The _zmq_msg_move()_ function shall return zero if successful. Otherwise it
  21. shall return `-1` and set 'errno' to one of the values defined below.
  22. ERRORS
  23. ------
  24. *EFAULT*::
  25. Invalid message.
  26. SEE ALSO
  27. --------
  28. linkzmq:zmq_msg_copy[3]
  29. linkzmq:zmq_msg_init[3]
  30. linkzmq:zmq_msg_init_size[3]
  31. linkzmq:zmq_msg_init_buffer[3]
  32. linkzmq:zmq_msg_init_data[3]
  33. linkzmq:zmq_msg_close[3]
  34. linkzmq:zmq[7]
  35. AUTHORS
  36. -------
  37. This page was written by the 0MQ community. To make a change please
  38. read the 0MQ Contribution Policy at <http://www.zeromq.org/docs:contributing>.