ZeroMQ介面函數之 :zmq_ctx_shutdown - 停止一個ZMQ context

來源:互聯網
上載者:User

標籤:

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.