標籤:
ZeroMQ 官方地址 :http://api.zeromq.org/4-0:zmq_ctx_shutdown
zmq_ctx_shutdown(3) ØMQ Manual - ØMQ/4.1.0
Name
zmq_ctx_shutdown - 停止一個ZMQ context
Synopsis
int zmq_ctx_shutdown (void *context);
Description
zmq_ctx_shutdown() 函數會停止ZMQ 環境內容context。
停止context會立刻引起當前所有基於context建立的scoket的阻塞調用返回,並使其返回錯誤碼ETERM。除了zmq_close() 意外,對所有基於context建立的socket進行更深入的調用都會失敗並返回錯誤碼ETERM。
這個函數是可選的,用戶端仍然會調用zmq_ctx_term(3)函數釋放zeromq分配的所有資源。
Return value
函數zmq_ctx_shutdown()調用成功會返回0。否則返回 -1,並且把errno設定為下列定義的值。
Errors
EFAULT
參數提供的context無效。
See also
zmq(7) zmq_init(3) zmq_ctx_term(3) zmq_close(3) zmq_setsockopt(3)
Authors
This page was written by the ØMQ community. To make a change please read the ØMQ Contribution Policy at http://www.zeromq.org/docs:contributing.
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
翻譯:fengbo
mail : [email protected]
ZeroMQ介面函數之 :zmq_ctx_shutdown - 停止一個ZMQ context