Zeromq interface function: Zmq_unbind-stop connection to foreign requests

Source: Internet
Author: User
Tags creative commons attribution

ZeroMQ official address:

Zmq_unbind (3) ØMQ Manual-ømq/4.1.0


Zmq_unbind- stop connecting to foreign requests


int zmq_unbind (voidconstchar *endpoint);


The Zmq_unbind () function will bind the socket specified by the socket parameter to the endpoint The specified endpoint is unbound.

The endpoint parameter is the parameter in the function zmq_bind (3) .

Return value

function zmq_unbind () execution successfully returns 0. Otherwise , 1is returned, and the value of errno is set to the value defined below.



Endpoint parameter is not available.


The ZMQ context associated with the socket specified by the socket parameter has been terminated.


Socket parameter is not available.


Binds a distributor socket from The TCP transport mode

1 /*Create a zmq_sub socket*/2 void*socket =zmq_socket (context, zmq_sub);3 assert (socket);4 /*Connect it to the host server001, Port 5555 using a TCP transport*/5rc = Zmq_bind (socket,"tcp://");6ASSERT (rc = =0);7 /*Disconnect from the previously connected endpoint*/8rc = Zmq_unbind (socket,"tcp://"); ASSERT (rc = =0);

See Also

Zmq_bind (3) Zmq_socket (3) ZMQ (7)


This page was written by the ømq community. to make a  change please read the ømq contribution policy at http://

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


More ZeroMQ API:

Translation: The Storm

Mail: [Email protected]

Zeromq interface function: Zmq_unbind-stop connection to foreign requests

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

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.