ZeroMQ介面函式之 :zmq_msg_move
zmq_msg_move(3) ØMQ Manual - ØMQ/3.2.5
Name
zmq_msg_move - 將一個訊息裡面的內容移動到另一個訊息裡面
Synopsis
int zmq_msg_move (zmq_msg_t *dest, zmq_msg_t *src);
Description
zmq_msg_move()函式將會把src引數指定的訊息物件裡面的內容移動到dest指定的訊息物件裡面。過程中並沒有複製的操作執行,而是dest直接引用新的內容進行更新。src訊息在使用zmq_msg_move()函式後變為一個空訊息。如果dest訊息原來有內容的話,將被釋放。
永遠不要直接對zmq_msg_t物件進行直接操作,而是要使用zmq_msg函式族進行操作。
Return value
如果zmq_msg_move()函式執行成功返回0。否則返回 -1,並且設定errno的值為下列定義的值。
Errors
EFAULT
訊息不可用。
See also
zmq_msg_copy(3) zmq_msg_init(3) zmq_msg_init_size(3) zmq_msg_init_data(3) zmq_msg_close(3) zmq(7)
Authors
This ØMQ manual page was written by Martin Sustrik <
Web site design and content is copyright (c) 2007-2012 iMatix Corporation. Contact us for professional support. Site content licensed under the Creative Commons Attribution-Share Alike 3.0 License. ØMQ is copyright (c) Copyright (c) 2007-2012 iMatix Corporation and Contributors. ØMQ is free software licensed under the LGPL. ØMQ, ZeroMQ, and 0MQ are trademarks of iMatix Corporation. Terms of Use — Privacy
Policy
翻譯:風波
mail : [email protected]