#include <nanomsg/nn.h> int nn_shutdown(int sock, int ep)
|This documentation is for the TIP (development tree) of NNG and may represent unreleased changes or functionality that is experimental, and is subject to change before release. The latest released version is v1.3.2. See the documentation for v1.3.2 for the most up-to-date information.|
nn_shutdown - shut down endpoint (compatible API)
nn_shutdown() shuts down the endpoint ep, which is either a listener or
a dialer) on the socket sock.
This will stop the socket from either accepting new connections, or establishing
Additionally, any established connections associated with ep will be closed.
This function returns zero on success, and -1 on error.
The socket sock is not open.
An invalid ep was supplied.