Socket.send

Sends a message part.

_send blocks until the message has been queued on the socket. trySend performs the operation in non-blocking mode, and returns a bool value that signifies whether the message was queued on the socket.

Throws

ZmqException if $(ZMQ) reports an error.

Corresponds to

$(ZMQREF zmq_msg_send()) (with the ZMQ_DONTWAIT flag, in the case of trySend).

Examples

auto sck = Socket(SocketType.pub);
auto msg = Message(12);
msg.data.asString()[] = "Hello World!";
sck.send(msg);

Meta