#include <nanomsg/nn.h> int nn_shutdown(int sock, int ep)
nn_shutdown() shuts down the “endpoint” ep 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
This function returns zero on success, and -1 on error.
The socket sock is not open.
An invalid ep was supplied.