Socket.close

Closes the $(ZMQ) socket.

Note that the socket will be closed automatically upon destruction, so it is usually not necessary to call this method manually.

Throws

ZmqException if $(ZMQ) reports an error.

Corresponds to

$(ZMQREF zmq_close())

Examples

auto s = Socket(SocketType.pair);
assert (s.initialized);
s.close();
assert (!s.initialized);

Meta