Socket.type

The socket type.

Throws

ZmqException if $(ZMQ) reports an error.

Corresponds to

$(ZMQREF zmq_getsockopt()) with ZMQ_TYPE.

Examples

auto sck = Socket(SocketType.xpub);
assert (sck.type == SocketType.xpub);

Meta