[nanomsg] Re: Difference between nn_shutdown and nn_close

  • From: "Garrett D'Amore" <garrett@xxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Sat, 6 Oct 2018 01:20:25 -0700

nn_shutdown closes just one endpoint and prevents that endpoint from
forming new connections.

nn_close closes the entire socket.

A socket can have many endpoints.

On Sat, Oct 6, 2018, 12:26 AM Mamuka Sakhelashvili <
mamuka.sakhelashvili@xxxxxxxx> wrote:

Hello,
What is the difference between nn_shutdown and nn_close? As nn_shutdown
removes the peer from the socket, can the peer be back again? If not, why
do we have both of them?

Regards,
Mamuka

Other related posts: