public void unsubscribe(byte[] topic) { setBytesSockopt(ZeroMQ$.MODULE$.ZMQ_UNSUBSCRIBE(), topic); }
public void setIdentity(byte[] identity) { setBytesSockopt(ZeroMQ$.MODULE$.ZMQ_IDENTITY(), identity); }
public void unsubscribe(byte[] topic) { setBytesSockopt(ZeroMQ$.MODULE$.ZMQ_UNSUBSCRIBE(), topic); }
public void subscribe(byte[] topic) { setBytesSockopt(ZeroMQ$.MODULE$.ZMQ_SUBSCRIBE(), topic); }
public void setIdentity(byte[] identity) { setBytesSockopt(ZeroMQ$.MODULE$.ZMQ_IDENTITY(), identity); }
public void setIdentity(byte[] identity) { setBytesSockopt(ZeroMQ$.MODULE$.ZMQ_IDENTITY(), identity); }
public void subscribe(byte[] topic) { setBytesSockopt(ZeroMQ$.MODULE$.ZMQ_SUBSCRIBE(), topic); }
public void setIdentity(byte[] identity) { setBytesSockopt(ZeroMQ$.MODULE$.ZMQ_IDENTITY(), identity); }
public void subscribe(byte[] topic) { setBytesSockopt(ZeroMQ$.MODULE$.ZMQ_SUBSCRIBE(), topic); }
/** * The 'ZMQ_IDENTITY' option shall set the identity of the specified 'socket'. Socket identity determines if * existing 0MQ infastructure (_message queues_, _forwarding devices_) shall be identified with a specific * application and persist across multiple runs of the application. * * If the socket has no identity, each run of an application is completely separate from other runs. However, * with identity set the socket shall re-use any existing 0MQ infrastructure configured by the previous run(s). * Thus the application may receive messages that were sent in the meantime, _message queue_ limits shall be * shared with previous run(s) and so on. * * Identity should be at least one byte and at most 255 bytes long. Identities starting with binary zero are * reserved for use by 0MQ infrastructure. * * @param identity */ public void setIdentity(byte[] identity) { setBytesSockopt(IDENTITY, identity); }
/** * Sets the socket's long term public key. * * <p>You must set this on CURVE client sockets. You can provide the key * as 32 binary bytes, or as a 40-character string encoded in the Z85 * encoding format and terminated in a null byte. The public key must * always be used with the matching secret key.</p> * * @param key key to be used */ public void setCurvePublicKey(byte[] key) { if (ZMQ.version_full() >= ZMQ.make_version(4, 0, 0)) setBytesSockopt(CURVE_PUBLICKEY, key); }
/** * Sets the socket's long term server key. * * <p>You must set this on CURVE client sockets. You can provide the key * as 32 binary bytes, or as a 40-character string encoded in the Z85 * encoding format and terminated in a null byte. This key must have * been generated together with the server's secret key.</p> * * @param key to be used */ public void setCurveServerKey(byte[] key) { if (ZMQ.version_full() >= ZMQ.make_version(4, 0, 0)) setBytesSockopt(CURVE_SERVERKEY, key); }
/** * The 'ZMQ_SUBSCRIBE' option shall establish a new message filter on a 'ZMQ_SUB' socket. Newly created * 'ZMQ_SUB' sockets shall filter out all incoming messages, therefore you should call this option to establish * an initial message filter. * * An empty 'option_value' of length zero shall subscribe to all incoming messages. A non-empty 'option_value' * shall subscribe to all messages beginning with the specified prefix. Mutiple filters may be attached to a * single 'ZMQ_SUB' socket, in which case a message shall be accepted if it matches at least one filter. * * @param topic */ public void subscribe(byte[] topic) { setBytesSockopt(SUBSCRIBE, topic); }
/** * Sets the socket's long term secret key. * * <p>You must set this on both CURVE client and server sockets. You can * provide the key as 32 binary bytes, or as a 40-character string * encoded in the Z85 encoding format and terminated in a null byte.</p> * * @param key to be used */ public void setCurveSecretKey(byte[] key) { if (ZMQ.version_full() >= ZMQ.make_version(4, 0, 0)) setBytesSockopt(CURVE_SECRETKEY, key); }
public void setGSSAPIPrincipal(byte[] principal) { if(ZMQ.version_full() >= ZMQ.make_version(4, 1, 0)) { setBytesSockopt(GSSAPI_PRINCIPAL, principal); } }
public void setGSSAPIServicePrincipal(byte[] principal) { if(ZMQ.version_full() >= ZMQ.make_version(4, 1, 0)) { setBytesSockopt(GSSAPI_SERVICE_PRINCIPAL, principal); } }
/** * Sets the domain for ZAP (ZMQ RFC 27) authentication. * @param domain For NULL security (the default on all tcp:// connections), * ZAP authentication only happens if you set a non-empty domain. For PLAIN and CURVE security, * ZAP requests are always made, if there is a ZAP handler present. * See http://rfc.zeromq.org/spec:27 for more details. */ public void setZAPDomain(byte[] domain) { if(ZMQ.version_full() >= ZMQ.make_version(4, 1, 0)) { setBytesSockopt(ZAP_DOMAIN, domain); } }
/** * Sets the username used for the PLAIN security mechanism. * @see <a href="http://rfc.zeromq.org/spec:24">PLAIN RFC</a> * @param username null terminated string in server charset * @since 4.0.0 */ public void setPlainUsername(byte[] username) { if (ZMQ.version_full() >= ZMQ.make_version(4, 0, 0)) { setBytesSockopt(PLAIN_USERNAME, username); } }
/** * Sets the password used for the PLAIN security mechanism. * @see <a href="http://rfc.zeromq.org/spec:24">PLAIN RFC</a> * @param password null terminated string in server charset * @since 4.0.0 */ public void setPlainPassword(byte[] password) { if (ZMQ.version_full() >= ZMQ.make_version(4, 0, 0)) { setBytesSockopt(PLAIN_PASSWORD, password); } }
/** * The 'ZMQ_UNSUBSCRIBE' option shall remove an existing message filter on a 'ZMQ_SUB' socket. The filter * specified must match an existing filter previously established with the 'ZMQ_SUBSCRIBE' option. If the socket * has several instances of the same filter attached the 'ZMQ_UNSUBSCRIBE' option shall remove only one * instance, leaving the rest in place and functional. * * @param topic */ public void unsubscribe(byte[] topic) { setBytesSockopt(UNSUBSCRIBE, topic); }