/*
################################################################################
#  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
#  Read the zproject/README.md for information about making permanent changes. #
################################################################################
*/

#include "qtzyre.h"

///
//  Copy-construct to return the proper wrapped c types
QZsock::QZsock (zsock_t *self, QObject *qObjParent) : QObject (qObjParent)
{
    this->self = self;
}


///
//  Create a new socket. Returns the new socket, or NULL if the new socket
//  could not be created. Note that the symbol zsock_new (and other
//  constructors/destructors for zsock) are redirected to the *_checked
//  variant, enabling intelligent socket leak detection. This can have
//  performance implications if you use a LOT of sockets. To turn off this
//  redirection behaviour, define ZSOCK_NOCHECK.
QZsock::QZsock (int type, QObject *qObjParent) : QObject (qObjParent)
{
    this->self = zsock_new (type);
}

///
//  Create a PUB socket. Default action is bind.
QZsock* QZsock::newPub (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_pub (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a SUB socket, and optionally subscribe to some prefix string. Default
//  action is connect.
QZsock* QZsock::newSub (const QString &endpoint, const QString &subscribe, QObject *qObjParent)
{
    return new QZsock (zsock_new_sub (endpoint.toUtf8().data(), subscribe.toUtf8().data()), qObjParent);
}

///
//  Create a REQ socket. Default action is connect.
QZsock* QZsock::newReq (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_req (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a REP socket. Default action is bind.
QZsock* QZsock::newRep (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_rep (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a DEALER socket. Default action is connect.
QZsock* QZsock::newDealer (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_dealer (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a ROUTER socket. Default action is bind.
QZsock* QZsock::newRouter (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_router (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a PUSH socket. Default action is connect.
QZsock* QZsock::newPush (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_push (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a PULL socket. Default action is bind.
QZsock* QZsock::newPull (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_pull (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create an XPUB socket. Default action is bind.
QZsock* QZsock::newXpub (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_xpub (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create an XSUB socket. Default action is connect.
QZsock* QZsock::newXsub (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_xsub (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a PAIR socket. Default action is connect.
QZsock* QZsock::newPair (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_pair (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a STREAM socket. Default action is connect.
QZsock* QZsock::newStream (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_stream (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a SERVER socket. Default action is bind.
QZsock* QZsock::newServer (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_server (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a CLIENT socket. Default action is connect.
QZsock* QZsock::newClient (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_client (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a RADIO socket. Default action is bind.
QZsock* QZsock::newRadio (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_radio (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a DISH socket. Default action is connect.
QZsock* QZsock::newDish (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_dish (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a GATHER socket. Default action is bind.
QZsock* QZsock::newGather (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_gather (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a SCATTER socket. Default action is connect.
QZsock* QZsock::newScatter (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_scatter (endpoint.toUtf8().data()), qObjParent);
}

///
//  Create a DGRAM (UDP) socket. Default action is bind.
//  The endpoint is a string consisting of a
//  'transport'`://` followed by an 'address'. As this is
//  a UDP socket the 'transport' has to be 'udp'. The
//  'address' specifies the ip address and port to
//  bind to. For example:  udp://127.0.0.1:1234
//  Note: To send to an endpoint over UDP you have to
//  send a message with the destination endpoint address
//  as a first message!
QZsock* QZsock::newDgram (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_dgram (endpoint.toUtf8().data()), qObjParent);
}

///
//  Destroy the socket. You must use this for any socket created via the
//  zsock_new method.
QZsock::~QZsock ()
{
    zsock_destroy (&self);
}

///
//  Bind a socket to a formatted endpoint. For tcp:// endpoints, supports
//  ephemeral ports, if you specify the port number as "*". By default
//  zsock uses the IANA designated range from C000 (49152) to FFFF (65535).
//  To override this range, follow the "*" with "[first-last]". Either or
//  both first and last may be empty. To bind to a random port within the
//  range, use "!" in place of "*".
//
//  Examples:
//      tcp://127.0.0.1:*           bind to first free port from C000 up
//      tcp://127.0.0.1:!           bind to random port from C000 to FFFF
//      tcp://127.0.0.1:*[60000-]   bind to first free port from 60000 up
//      tcp://127.0.0.1:![-60000]   bind to random port from C000 to 60000
//      tcp://127.0.0.1:![55000-55999]
//                                  bind to random port from 55000 to 55999
//
//  On success, returns the actual port number used, for tcp:// endpoints,
//  and 0 for other transports. On failure, returns -1. Note that when using
//  ephemeral ports, a port may be reused by different services without
//  clients being aware. Protocols that run on ephemeral ports should take
//  this into account.
int QZsock::bind (const QString &param)
{
    int rv = zsock_bind (self, "%s", param.toUtf8().data());
    return rv;
}

///
//  Returns last bound endpoint, if any.
const QString QZsock::endpoint ()
{
    const QString rv = QString (zsock_endpoint (self));
    return rv;
}

///
//  Unbind a socket from a formatted endpoint.
//  Returns 0 if OK, -1 if the endpoint was invalid or the function
//  isn't supported.
int QZsock::unbind (const QString &param)
{
    int rv = zsock_unbind (self, "%s", param.toUtf8().data());
    return rv;
}

///
//  Connect a socket to a formatted endpoint
//  Returns 0 if OK, -1 if the endpoint was invalid.
int QZsock::connect (const QString &param)
{
    int rv = zsock_connect (self, "%s", param.toUtf8().data());
    return rv;
}

///
//  Disconnect a socket from a formatted endpoint
//  Returns 0 if OK, -1 if the endpoint was invalid or the function
//  isn't supported.
int QZsock::disconnect (const QString &param)
{
    int rv = zsock_disconnect (self, "%s", param.toUtf8().data());
    return rv;
}

///
//  Attach a socket to zero or more endpoints. If endpoints is not null,
//  parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
//  '@' (to bind the socket) or '>' (to connect the socket). Returns 0 if all
//  endpoints were valid, or -1 if there was a syntax error. If the endpoint
//  does not start with '@' or '>', the serverish argument defines whether
//  it is used to bind (serverish = true) or connect (serverish = false).
int QZsock::attach (const QString &endpoints, bool serverish)
{
    int rv = zsock_attach (self, endpoints.toUtf8().data(), serverish);
    return rv;
}

///
//  Returns socket type as printable constant string.
const QString QZsock::typeStr ()
{
    const QString rv = QString (zsock_type_str (self));
    return rv;
}

///
//  Send a 'picture' message to the socket (or actor). The picture is a
//  string that defines the type of each frame. This makes it easy to send
//  a complex multiframe message in one call. The picture can contain any
//  of these characters, each corresponding to one or two arguments:
//
//      i = int (signed)
//      1 = uint8_t
//      2 = uint16_t
//      4 = uint32_t
//      8 = uint64_t
//      s = char *
//      b = byte *, size_t (2 arguments)
//      c = zchunk_t *
//      f = zframe_t *
//      h = zhashx_t *
//      l = zlistx_t * (DRAFT)
//      U = zuuid_t *
//      p = void * (sends the pointer value, only meaningful over inproc)
//      m = zmsg_t * (sends all frames in the zmsg)
//      z = sends zero-sized frame (0 arguments)
//      u = uint (deprecated)
//
//  Note that s, b, c, and f are encoded the same way and the choice is
//  offered as a convenience to the sender, which may or may not already
//  have data in a zchunk or zframe. Does not change or take ownership of
//  any arguments. Returns 0 if successful, -1 if sending failed for any
//  reason.
int QZsock::send (const QString &picture,  ...)
{
    va_list args;
    va_start (args, picture);
    int rv = zsock_vsend (self, picture.toUtf8().data(), args);
    va_end (args);
    return rv;
}

///
//  Send a 'picture' message to the socket (or actor). This is a va_list
//  version of zsock_send (), so please consult its documentation for the
//  details.
int QZsock::vsend (const QString &picture, va_list argptr)
{
    int rv = zsock_vsend (self, picture.toUtf8().data(), argptr);
    return rv;
}

///
//  Receive a 'picture' message to the socket (or actor). See zsock_send for
//  the format and meaning of the picture. Returns the picture elements into
//  a series of pointers as provided by the caller:
//
//      i = int * (stores signed integer)
//      4 = uint32_t * (stores 32-bit unsigned integer)
//      8 = uint64_t * (stores 64-bit unsigned integer)
//      s = char ** (allocates new string)
//      b = byte **, size_t * (2 arguments) (allocates memory)
//      c = zchunk_t ** (creates zchunk)
//      f = zframe_t ** (creates zframe)
//      U = zuuid_t * (creates a zuuid with the data)
//      h = zhashx_t ** (creates zhashx)
//      l = zlistx_t ** (creates zlistx) (DRAFT)
//      p = void ** (stores pointer)
//      m = zmsg_t ** (creates a zmsg with the remaining frames)
//      z = null, asserts empty frame (0 arguments)
//      u = uint * (stores unsigned integer, deprecated)
//
//  Note that zsock_recv creates the returned objects, and the caller must
//  destroy them when finished with them. The supplied pointers do not need
//  to be initialized. Returns 0 if successful, or -1 if it failed to recv
//  a message, in which case the pointers are not modified. When message
//  frames are truncated (a short message), sets return values to zero/null.
//  If an argument pointer is NULL, does not store any value (skips it).
//  An 'n' picture matches an empty frame; if the message does not match,
//  the method will return -1.
int QZsock::recv (const QString &picture,  ...)
{
    va_list args;
    va_start (args, picture);
    int rv = zsock_vrecv (self, picture.toUtf8().data(), args);
    va_end (args);
    return rv;
}

///
//  Receive a 'picture' message from the socket (or actor). This is a
//  va_list version of zsock_recv (), so please consult its documentation
//  for the details.
int QZsock::vrecv (const QString &picture, va_list argptr)
{
    int rv = zsock_vrecv (self, picture.toUtf8().data(), argptr);
    return rv;
}

///
//  Return socket routing ID if any. This returns 0 if the socket is not
//  of type ZMQ_SERVER or if no request was already received on it.
quint32 QZsock::routingId ()
{
    uint32_t rv = zsock_routing_id (self);
    return rv;
}

///
//  Set routing ID on socket. The socket MUST be of type ZMQ_SERVER.
//  This will be used when sending messages on the socket via the zsock API.
void QZsock::setRoutingId (quint32 routingId)
{
    zsock_set_routing_id (self, (uint32_t) routingId);

}

///
//  Set socket to use unbounded pipes (HWM=0); use this in cases when you are
//  totally certain the message volume can fit in memory. This method works
//  across all versions of ZeroMQ. Takes a polymorphic socket reference.
void QZsock::setUnbounded ()
{
    zsock_set_unbounded (self);

}

///
//  Send a signal over a socket. A signal is a short message carrying a
//  success/failure code (by convention, 0 means OK). Signals are encoded
//  to be distinguishable from "normal" messages. Accepts a zsock_t or a
//  zactor_t argument, and returns 0 if successful, -1 if the signal could
//  not be sent. Takes a polymorphic socket reference.
int QZsock::signal (byte status)
{
    int rv = zsock_signal (self, status);
    return rv;
}

///
//  Wait on a signal. Use this to coordinate between threads, over pipe
//  pairs. Blocks until the signal is received. Returns -1 on error, 0 or
//  greater on success. Accepts a zsock_t or a zactor_t as argument.
//  Takes a polymorphic socket reference.
int QZsock::wait ()
{
    int rv = zsock_wait (self);
    return rv;
}

///
//  If there is a partial message still waiting on the socket, remove and
//  discard it. This is useful when reading partial messages, to get specific
//  message types.
void QZsock::flush ()
{
    zsock_flush (self);

}

///
//  Join a group for the RADIO-DISH pattern. Call only on ZMQ_DISH.
//  Returns 0 if OK, -1 if failed.
int QZsock::join (const QString &group)
{
    int rv = zsock_join (self, group.toUtf8().data());
    return rv;
}

///
//  Leave a group for the RADIO-DISH pattern. Call only on ZMQ_DISH.
//  Returns 0 if OK, -1 if failed.
int QZsock::leave (const QString &group)
{
    int rv = zsock_leave (self, group.toUtf8().data());
    return rv;
}

///
//  Probe the supplied object, and report if it looks like a zsock_t.
//  Takes a polymorphic socket reference.
bool QZsock::is (void *self)
{
    bool rv = zsock_is (self);
    return rv;
}

///
//  Probe the supplied reference. If it looks like a zsock_t instance, return
//  the underlying libzmq socket handle; else if it looks like a file
//  descriptor, return NULL; else if it looks like a libzmq socket handle,
//  return the supplied value. Takes a polymorphic socket reference.
void * QZsock::resolve (void *self)
{
    void * rv = zsock_resolve (self);
    return rv;
}

///
//  Check whether the socket has available message to read.
bool QZsock::hasIn ()
{
    bool rv = zsock_has_in (self);
    return rv;
}

///
//  Get socket option `priority`.
//  Available from libzmq 4.3.0.
int QZsock::priority ()
{
    int rv = zsock_priority (self);
    return rv;
}

///
//  Set socket option `priority`.
//  Available from libzmq 4.3.0.
void QZsock::setPriority (int priority)
{
    zsock_set_priority (self, priority);

}

///
//  Get socket option `reconnect_stop`.
//  Available from libzmq 4.3.0.
int QZsock::reconnectStop ()
{
    int rv = zsock_reconnect_stop (self);
    return rv;
}

///
//  Set socket option `reconnect_stop`.
//  Available from libzmq 4.3.0.
void QZsock::setReconnectStop (int reconnectStop)
{
    zsock_set_reconnect_stop (self, reconnectStop);

}

///
//  Set socket option `only_first_subscribe`.
//  Available from libzmq 4.3.0.
void QZsock::setOnlyFirstSubscribe (int onlyFirstSubscribe)
{
    zsock_set_only_first_subscribe (self, onlyFirstSubscribe);

}

///
//  Set socket option `hello_msg`.
//  Available from libzmq 4.3.0.
void QZsock::setHelloMsg (QZframe *helloMsg)
{
    zsock_set_hello_msg (self, helloMsg->self);

}

///
//  Set socket option `disconnect_msg`.
//  Available from libzmq 4.3.0.
void QZsock::setDisconnectMsg (QZframe *disconnectMsg)
{
    zsock_set_disconnect_msg (self, disconnectMsg->self);

}

///
//  Set socket option `wss_trust_system`.
//  Available from libzmq 4.3.0.
void QZsock::setWssTrustSystem (int wssTrustSystem)
{
    zsock_set_wss_trust_system (self, wssTrustSystem);

}

///
//  Set socket option `wss_hostname`.
//  Available from libzmq 4.3.0.
void QZsock::setWssHostname (const QString &wssHostname)
{
    zsock_set_wss_hostname (self, wssHostname.toUtf8().data());

}

///
//  Set socket option `wss_trust_pem`.
//  Available from libzmq 4.3.0.
void QZsock::setWssTrustPem (const QString &wssTrustPem)
{
    zsock_set_wss_trust_pem (self, wssTrustPem.toUtf8().data());

}

///
//  Set socket option `wss_cert_pem`.
//  Available from libzmq 4.3.0.
void QZsock::setWssCertPem (const QString &wssCertPem)
{
    zsock_set_wss_cert_pem (self, wssCertPem.toUtf8().data());

}

///
//  Set socket option `wss_key_pem`.
//  Available from libzmq 4.3.0.
void QZsock::setWssKeyPem (const QString &wssKeyPem)
{
    zsock_set_wss_key_pem (self, wssKeyPem.toUtf8().data());

}

///
//  Get socket option `out_batch_size`.
//  Available from libzmq 4.3.0.
int QZsock::outBatchSize ()
{
    int rv = zsock_out_batch_size (self);
    return rv;
}

///
//  Set socket option `out_batch_size`.
//  Available from libzmq 4.3.0.
void QZsock::setOutBatchSize (int outBatchSize)
{
    zsock_set_out_batch_size (self, outBatchSize);

}

///
//  Get socket option `in_batch_size`.
//  Available from libzmq 4.3.0.
int QZsock::inBatchSize ()
{
    int rv = zsock_in_batch_size (self);
    return rv;
}

///
//  Set socket option `in_batch_size`.
//  Available from libzmq 4.3.0.
void QZsock::setInBatchSize (int inBatchSize)
{
    zsock_set_in_batch_size (self, inBatchSize);

}

///
//  Get socket option `socks_password`.
//  Available from libzmq 4.3.0.
QString QZsock::socksPassword ()
{
    char *retStr_ = zsock_socks_password (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `socks_password`.
//  Available from libzmq 4.3.0.
void QZsock::setSocksPassword (const QString &socksPassword)
{
    zsock_set_socks_password (self, socksPassword.toUtf8().data());

}

///
//  Get socket option `socks_username`.
//  Available from libzmq 4.3.0.
QString QZsock::socksUsername ()
{
    char *retStr_ = zsock_socks_username (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `socks_username`.
//  Available from libzmq 4.3.0.
void QZsock::setSocksUsername (const QString &socksUsername)
{
    zsock_set_socks_username (self, socksUsername.toUtf8().data());

}

///
//  Set socket option `xpub_manual_last_value`.
//  Available from libzmq 4.3.0.
void QZsock::setXpubManualLastValue (int xpubManualLastValue)
{
    zsock_set_xpub_manual_last_value (self, xpubManualLastValue);

}

///
//  Get socket option `router_notify`.
//  Available from libzmq 4.3.0.
int QZsock::routerNotify ()
{
    int rv = zsock_router_notify (self);
    return rv;
}

///
//  Set socket option `router_notify`.
//  Available from libzmq 4.3.0.
void QZsock::setRouterNotify (int routerNotify)
{
    zsock_set_router_notify (self, routerNotify);

}

///
//  Get socket option `multicast_loop`.
//  Available from libzmq 4.3.0.
int QZsock::multicastLoop ()
{
    int rv = zsock_multicast_loop (self);
    return rv;
}

///
//  Set socket option `multicast_loop`.
//  Available from libzmq 4.3.0.
void QZsock::setMulticastLoop (int multicastLoop)
{
    zsock_set_multicast_loop (self, multicastLoop);

}

///
//  Get socket option `metadata`.
//  Available from libzmq 4.3.0.
QString QZsock::metadata ()
{
    char *retStr_ = zsock_metadata (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `metadata`.
//  Available from libzmq 4.3.0.
void QZsock::setMetadata (const QString &metadata)
{
    zsock_set_metadata (self, metadata.toUtf8().data());

}

///
//  Get socket option `loopback_fastpath`.
//  Available from libzmq 4.3.0.
int QZsock::loopbackFastpath ()
{
    int rv = zsock_loopback_fastpath (self);
    return rv;
}

///
//  Set socket option `loopback_fastpath`.
//  Available from libzmq 4.3.0.
void QZsock::setLoopbackFastpath (int loopbackFastpath)
{
    zsock_set_loopback_fastpath (self, loopbackFastpath);

}

///
//  Get socket option `zap_enforce_domain`.
//  Available from libzmq 4.3.0.
int QZsock::zapEnforceDomain ()
{
    int rv = zsock_zap_enforce_domain (self);
    return rv;
}

///
//  Set socket option `zap_enforce_domain`.
//  Available from libzmq 4.3.0.
void QZsock::setZapEnforceDomain (int zapEnforceDomain)
{
    zsock_set_zap_enforce_domain (self, zapEnforceDomain);

}

///
//  Get socket option `gssapi_principal_nametype`.
//  Available from libzmq 4.3.0.
int QZsock::gssapiPrincipalNametype ()
{
    int rv = zsock_gssapi_principal_nametype (self);
    return rv;
}

///
//  Set socket option `gssapi_principal_nametype`.
//  Available from libzmq 4.3.0.
void QZsock::setGssapiPrincipalNametype (int gssapiPrincipalNametype)
{
    zsock_set_gssapi_principal_nametype (self, gssapiPrincipalNametype);

}

///
//  Get socket option `gssapi_service_principal_nametype`.
//  Available from libzmq 4.3.0.
int QZsock::gssapiServicePrincipalNametype ()
{
    int rv = zsock_gssapi_service_principal_nametype (self);
    return rv;
}

///
//  Set socket option `gssapi_service_principal_nametype`.
//  Available from libzmq 4.3.0.
void QZsock::setGssapiServicePrincipalNametype (int gssapiServicePrincipalNametype)
{
    zsock_set_gssapi_service_principal_nametype (self, gssapiServicePrincipalNametype);

}

///
//  Get socket option `bindtodevice`.
//  Available from libzmq 4.3.0.
QString QZsock::bindtodevice ()
{
    char *retStr_ = zsock_bindtodevice (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `bindtodevice`.
//  Available from libzmq 4.3.0.
void QZsock::setBindtodevice (const QString &bindtodevice)
{
    zsock_set_bindtodevice (self, bindtodevice.toUtf8().data());

}

///
//  Get socket option `heartbeat_ivl`.
//  Available from libzmq 4.2.0.
int QZsock::heartbeatIvl ()
{
    int rv = zsock_heartbeat_ivl (self);
    return rv;
}

///
//  Set socket option `heartbeat_ivl`.
//  Available from libzmq 4.2.0.
void QZsock::setHeartbeatIvl (int heartbeatIvl)
{
    zsock_set_heartbeat_ivl (self, heartbeatIvl);

}

///
//  Get socket option `heartbeat_ttl`.
//  Available from libzmq 4.2.0.
int QZsock::heartbeatTtl ()
{
    int rv = zsock_heartbeat_ttl (self);
    return rv;
}

///
//  Set socket option `heartbeat_ttl`.
//  Available from libzmq 4.2.0.
void QZsock::setHeartbeatTtl (int heartbeatTtl)
{
    zsock_set_heartbeat_ttl (self, heartbeatTtl);

}

///
//  Get socket option `heartbeat_timeout`.
//  Available from libzmq 4.2.0.
int QZsock::heartbeatTimeout ()
{
    int rv = zsock_heartbeat_timeout (self);
    return rv;
}

///
//  Set socket option `heartbeat_timeout`.
//  Available from libzmq 4.2.0.
void QZsock::setHeartbeatTimeout (int heartbeatTimeout)
{
    zsock_set_heartbeat_timeout (self, heartbeatTimeout);

}

///
//  Get socket option `use_fd`.
//  Available from libzmq 4.2.0.
int QZsock::useFd ()
{
    int rv = zsock_use_fd (self);
    return rv;
}

///
//  Set socket option `use_fd`.
//  Available from libzmq 4.2.0.
void QZsock::setUseFd (int useFd)
{
    zsock_set_use_fd (self, useFd);

}

///
//  Set socket option `xpub_manual`.
//  Available from libzmq 4.2.0.
void QZsock::setXpubManual (int xpubManual)
{
    zsock_set_xpub_manual (self, xpubManual);

}

///
//  Set socket option `xpub_welcome_msg`.
//  Available from libzmq 4.2.0.
void QZsock::setXpubWelcomeMsg (const QString &xpubWelcomeMsg)
{
    zsock_set_xpub_welcome_msg (self, xpubWelcomeMsg.toUtf8().data());

}

///
//  Set socket option `stream_notify`.
//  Available from libzmq 4.2.0.
void QZsock::setStreamNotify (int streamNotify)
{
    zsock_set_stream_notify (self, streamNotify);

}

///
//  Get socket option `invert_matching`.
//  Available from libzmq 4.2.0.
int QZsock::invertMatching ()
{
    int rv = zsock_invert_matching (self);
    return rv;
}

///
//  Set socket option `invert_matching`.
//  Available from libzmq 4.2.0.
void QZsock::setInvertMatching (int invertMatching)
{
    zsock_set_invert_matching (self, invertMatching);

}

///
//  Set socket option `xpub_verboser`.
//  Available from libzmq 4.2.0.
void QZsock::setXpubVerboser (int xpubVerboser)
{
    zsock_set_xpub_verboser (self, xpubVerboser);

}

///
//  Get socket option `connect_timeout`.
//  Available from libzmq 4.2.0.
int QZsock::connectTimeout ()
{
    int rv = zsock_connect_timeout (self);
    return rv;
}

///
//  Set socket option `connect_timeout`.
//  Available from libzmq 4.2.0.
void QZsock::setConnectTimeout (int connectTimeout)
{
    zsock_set_connect_timeout (self, connectTimeout);

}

///
//  Get socket option `tcp_maxrt`.
//  Available from libzmq 4.2.0.
int QZsock::tcpMaxrt ()
{
    int rv = zsock_tcp_maxrt (self);
    return rv;
}

///
//  Set socket option `tcp_maxrt`.
//  Available from libzmq 4.2.0.
void QZsock::setTcpMaxrt (int tcpMaxrt)
{
    zsock_set_tcp_maxrt (self, tcpMaxrt);

}

///
//  Get socket option `thread_safe`.
//  Available from libzmq 4.2.0.
int QZsock::threadSafe ()
{
    int rv = zsock_thread_safe (self);
    return rv;
}

///
//  Get socket option `multicast_maxtpdu`.
//  Available from libzmq 4.2.0.
int QZsock::multicastMaxtpdu ()
{
    int rv = zsock_multicast_maxtpdu (self);
    return rv;
}

///
//  Set socket option `multicast_maxtpdu`.
//  Available from libzmq 4.2.0.
void QZsock::setMulticastMaxtpdu (int multicastMaxtpdu)
{
    zsock_set_multicast_maxtpdu (self, multicastMaxtpdu);

}

///
//  Get socket option `vmci_buffer_size`.
//  Available from libzmq 4.2.0.
int QZsock::vmciBufferSize ()
{
    int rv = zsock_vmci_buffer_size (self);
    return rv;
}

///
//  Set socket option `vmci_buffer_size`.
//  Available from libzmq 4.2.0.
void QZsock::setVmciBufferSize (int vmciBufferSize)
{
    zsock_set_vmci_buffer_size (self, vmciBufferSize);

}

///
//  Get socket option `vmci_buffer_min_size`.
//  Available from libzmq 4.2.0.
int QZsock::vmciBufferMinSize ()
{
    int rv = zsock_vmci_buffer_min_size (self);
    return rv;
}

///
//  Set socket option `vmci_buffer_min_size`.
//  Available from libzmq 4.2.0.
void QZsock::setVmciBufferMinSize (int vmciBufferMinSize)
{
    zsock_set_vmci_buffer_min_size (self, vmciBufferMinSize);

}

///
//  Get socket option `vmci_buffer_max_size`.
//  Available from libzmq 4.2.0.
int QZsock::vmciBufferMaxSize ()
{
    int rv = zsock_vmci_buffer_max_size (self);
    return rv;
}

///
//  Set socket option `vmci_buffer_max_size`.
//  Available from libzmq 4.2.0.
void QZsock::setVmciBufferMaxSize (int vmciBufferMaxSize)
{
    zsock_set_vmci_buffer_max_size (self, vmciBufferMaxSize);

}

///
//  Get socket option `vmci_connect_timeout`.
//  Available from libzmq 4.2.0.
int QZsock::vmciConnectTimeout ()
{
    int rv = zsock_vmci_connect_timeout (self);
    return rv;
}

///
//  Set socket option `vmci_connect_timeout`.
//  Available from libzmq 4.2.0.
void QZsock::setVmciConnectTimeout (int vmciConnectTimeout)
{
    zsock_set_vmci_connect_timeout (self, vmciConnectTimeout);

}

///
//  Get socket option `tos`.
//  Available from libzmq 4.1.0.
int QZsock::tos ()
{
    int rv = zsock_tos (self);
    return rv;
}

///
//  Set socket option `tos`.
//  Available from libzmq 4.1.0.
void QZsock::setTos (int tos)
{
    zsock_set_tos (self, tos);

}

///
//  Set socket option `router_handover`.
//  Available from libzmq 4.1.0.
void QZsock::setRouterHandover (int routerHandover)
{
    zsock_set_router_handover (self, routerHandover);

}

///
//  Set socket option `connect_rid`.
//  Available from libzmq 4.1.0.
void QZsock::setConnectRid (const QString &connectRid)
{
    zsock_set_connect_rid (self, connectRid.toUtf8().data());

}

///
//  Set socket option `connect_rid` from 32-octet binary
//  Available from libzmq 4.1.0.
void QZsock::setConnectRidBin (const byte *connectRid)
{
    zsock_set_connect_rid_bin (self, connectRid);

}

///
//  Get socket option `handshake_ivl`.
//  Available from libzmq 4.1.0.
int QZsock::handshakeIvl ()
{
    int rv = zsock_handshake_ivl (self);
    return rv;
}

///
//  Set socket option `handshake_ivl`.
//  Available from libzmq 4.1.0.
void QZsock::setHandshakeIvl (int handshakeIvl)
{
    zsock_set_handshake_ivl (self, handshakeIvl);

}

///
//  Get socket option `socks_proxy`.
//  Available from libzmq 4.1.0.
QString QZsock::socksProxy ()
{
    char *retStr_ = zsock_socks_proxy (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `socks_proxy`.
//  Available from libzmq 4.1.0.
void QZsock::setSocksProxy (const QString &socksProxy)
{
    zsock_set_socks_proxy (self, socksProxy.toUtf8().data());

}

///
//  Set socket option `xpub_nodrop`.
//  Available from libzmq 4.1.0.
void QZsock::setXpubNodrop (int xpubNodrop)
{
    zsock_set_xpub_nodrop (self, xpubNodrop);

}

///
//  Set socket option `router_mandatory`.
//  Available from libzmq 4.0.0.
void QZsock::setRouterMandatory (int routerMandatory)
{
    zsock_set_router_mandatory (self, routerMandatory);

}

///
//  Set socket option `probe_router`.
//  Available from libzmq 4.0.0.
void QZsock::setProbeRouter (int probeRouter)
{
    zsock_set_probe_router (self, probeRouter);

}

///
//  Set socket option `req_relaxed`.
//  Available from libzmq 4.0.0.
void QZsock::setReqRelaxed (int reqRelaxed)
{
    zsock_set_req_relaxed (self, reqRelaxed);

}

///
//  Set socket option `req_correlate`.
//  Available from libzmq 4.0.0.
void QZsock::setReqCorrelate (int reqCorrelate)
{
    zsock_set_req_correlate (self, reqCorrelate);

}

///
//  Set socket option `conflate`.
//  Available from libzmq 4.0.0.
void QZsock::setConflate (int conflate)
{
    zsock_set_conflate (self, conflate);

}

///
//  Get socket option `zap_domain`.
//  Available from libzmq 4.0.0.
QString QZsock::zapDomain ()
{
    char *retStr_ = zsock_zap_domain (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `zap_domain`.
//  Available from libzmq 4.0.0.
void QZsock::setZapDomain (const QString &zapDomain)
{
    zsock_set_zap_domain (self, zapDomain.toUtf8().data());

}

///
//  Get socket option `mechanism`.
//  Available from libzmq 4.0.0.
int QZsock::mechanism ()
{
    int rv = zsock_mechanism (self);
    return rv;
}

///
//  Get socket option `plain_server`.
//  Available from libzmq 4.0.0.
int QZsock::plainServer ()
{
    int rv = zsock_plain_server (self);
    return rv;
}

///
//  Set socket option `plain_server`.
//  Available from libzmq 4.0.0.
void QZsock::setPlainServer (int plainServer)
{
    zsock_set_plain_server (self, plainServer);

}

///
//  Get socket option `plain_username`.
//  Available from libzmq 4.0.0.
QString QZsock::plainUsername ()
{
    char *retStr_ = zsock_plain_username (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `plain_username`.
//  Available from libzmq 4.0.0.
void QZsock::setPlainUsername (const QString &plainUsername)
{
    zsock_set_plain_username (self, plainUsername.toUtf8().data());

}

///
//  Get socket option `plain_password`.
//  Available from libzmq 4.0.0.
QString QZsock::plainPassword ()
{
    char *retStr_ = zsock_plain_password (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `plain_password`.
//  Available from libzmq 4.0.0.
void QZsock::setPlainPassword (const QString &plainPassword)
{
    zsock_set_plain_password (self, plainPassword.toUtf8().data());

}

///
//  Get socket option `curve_server`.
//  Available from libzmq 4.0.0.
int QZsock::curveServer ()
{
    int rv = zsock_curve_server (self);
    return rv;
}

///
//  Set socket option `curve_server`.
//  Available from libzmq 4.0.0.
void QZsock::setCurveServer (int curveServer)
{
    zsock_set_curve_server (self, curveServer);

}

///
//  Get socket option `curve_publickey`.
//  Available from libzmq 4.0.0.
QString QZsock::curvePublickey ()
{
    char *retStr_ = zsock_curve_publickey (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `curve_publickey`.
//  Available from libzmq 4.0.0.
void QZsock::setCurvePublickey (const QString &curvePublickey)
{
    zsock_set_curve_publickey (self, curvePublickey.toUtf8().data());

}

///
//  Set socket option `curve_publickey` from 32-octet binary
//  Available from libzmq 4.0.0.
void QZsock::setCurvePublickeyBin (const byte *curvePublickey)
{
    zsock_set_curve_publickey_bin (self, curvePublickey);

}

///
//  Get socket option `curve_secretkey`.
//  Available from libzmq 4.0.0.
QString QZsock::curveSecretkey ()
{
    char *retStr_ = zsock_curve_secretkey (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `curve_secretkey`.
//  Available from libzmq 4.0.0.
void QZsock::setCurveSecretkey (const QString &curveSecretkey)
{
    zsock_set_curve_secretkey (self, curveSecretkey.toUtf8().data());

}

///
//  Set socket option `curve_secretkey` from 32-octet binary
//  Available from libzmq 4.0.0.
void QZsock::setCurveSecretkeyBin (const byte *curveSecretkey)
{
    zsock_set_curve_secretkey_bin (self, curveSecretkey);

}

///
//  Get socket option `curve_serverkey`.
//  Available from libzmq 4.0.0.
QString QZsock::curveServerkey ()
{
    char *retStr_ = zsock_curve_serverkey (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `curve_serverkey`.
//  Available from libzmq 4.0.0.
void QZsock::setCurveServerkey (const QString &curveServerkey)
{
    zsock_set_curve_serverkey (self, curveServerkey.toUtf8().data());

}

///
//  Set socket option `curve_serverkey` from 32-octet binary
//  Available from libzmq 4.0.0.
void QZsock::setCurveServerkeyBin (const byte *curveServerkey)
{
    zsock_set_curve_serverkey_bin (self, curveServerkey);

}

///
//  Get socket option `gssapi_server`.
//  Available from libzmq 4.0.0.
int QZsock::gssapiServer ()
{
    int rv = zsock_gssapi_server (self);
    return rv;
}

///
//  Set socket option `gssapi_server`.
//  Available from libzmq 4.0.0.
void QZsock::setGssapiServer (int gssapiServer)
{
    zsock_set_gssapi_server (self, gssapiServer);

}

///
//  Get socket option `gssapi_plaintext`.
//  Available from libzmq 4.0.0.
int QZsock::gssapiPlaintext ()
{
    int rv = zsock_gssapi_plaintext (self);
    return rv;
}

///
//  Set socket option `gssapi_plaintext`.
//  Available from libzmq 4.0.0.
void QZsock::setGssapiPlaintext (int gssapiPlaintext)
{
    zsock_set_gssapi_plaintext (self, gssapiPlaintext);

}

///
//  Get socket option `gssapi_principal`.
//  Available from libzmq 4.0.0.
QString QZsock::gssapiPrincipal ()
{
    char *retStr_ = zsock_gssapi_principal (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `gssapi_principal`.
//  Available from libzmq 4.0.0.
void QZsock::setGssapiPrincipal (const QString &gssapiPrincipal)
{
    zsock_set_gssapi_principal (self, gssapiPrincipal.toUtf8().data());

}

///
//  Get socket option `gssapi_service_principal`.
//  Available from libzmq 4.0.0.
QString QZsock::gssapiServicePrincipal ()
{
    char *retStr_ = zsock_gssapi_service_principal (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `gssapi_service_principal`.
//  Available from libzmq 4.0.0.
void QZsock::setGssapiServicePrincipal (const QString &gssapiServicePrincipal)
{
    zsock_set_gssapi_service_principal (self, gssapiServicePrincipal.toUtf8().data());

}

///
//  Get socket option `ipv6`.
//  Available from libzmq 4.0.0.
int QZsock::ipv6 ()
{
    int rv = zsock_ipv6 (self);
    return rv;
}

///
//  Set socket option `ipv6`.
//  Available from libzmq 4.0.0.
void QZsock::setIpv6 (int ipv6)
{
    zsock_set_ipv6 (self, ipv6);

}

///
//  Get socket option `immediate`.
//  Available from libzmq 4.0.0.
int QZsock::immediate ()
{
    int rv = zsock_immediate (self);
    return rv;
}

///
//  Set socket option `immediate`.
//  Available from libzmq 4.0.0.
void QZsock::setImmediate (int immediate)
{
    zsock_set_immediate (self, immediate);

}

///
//  Get socket option `sndhwm`.
//  Available from libzmq 3.0.0.
int QZsock::sndhwm ()
{
    int rv = zsock_sndhwm (self);
    return rv;
}

///
//  Set socket option `sndhwm`.
//  Available from libzmq 3.0.0.
void QZsock::setSndhwm (int sndhwm)
{
    zsock_set_sndhwm (self, sndhwm);

}

///
//  Get socket option `rcvhwm`.
//  Available from libzmq 3.0.0.
int QZsock::rcvhwm ()
{
    int rv = zsock_rcvhwm (self);
    return rv;
}

///
//  Set socket option `rcvhwm`.
//  Available from libzmq 3.0.0.
void QZsock::setRcvhwm (int rcvhwm)
{
    zsock_set_rcvhwm (self, rcvhwm);

}

///
//  Get socket option `maxmsgsize`.
//  Available from libzmq 3.0.0.
int QZsock::maxmsgsize ()
{
    int rv = zsock_maxmsgsize (self);
    return rv;
}

///
//  Set socket option `maxmsgsize`.
//  Available from libzmq 3.0.0.
void QZsock::setMaxmsgsize (int maxmsgsize)
{
    zsock_set_maxmsgsize (self, maxmsgsize);

}

///
//  Get socket option `multicast_hops`.
//  Available from libzmq 3.0.0.
int QZsock::multicastHops ()
{
    int rv = zsock_multicast_hops (self);
    return rv;
}

///
//  Set socket option `multicast_hops`.
//  Available from libzmq 3.0.0.
void QZsock::setMulticastHops (int multicastHops)
{
    zsock_set_multicast_hops (self, multicastHops);

}

///
//  Set socket option `xpub_verbose`.
//  Available from libzmq 3.0.0.
void QZsock::setXpubVerbose (int xpubVerbose)
{
    zsock_set_xpub_verbose (self, xpubVerbose);

}

///
//  Get socket option `tcp_keepalive`.
//  Available from libzmq 3.0.0.
int QZsock::tcpKeepalive ()
{
    int rv = zsock_tcp_keepalive (self);
    return rv;
}

///
//  Set socket option `tcp_keepalive`.
//  Available from libzmq 3.0.0.
void QZsock::setTcpKeepalive (int tcpKeepalive)
{
    zsock_set_tcp_keepalive (self, tcpKeepalive);

}

///
//  Get socket option `tcp_keepalive_idle`.
//  Available from libzmq 3.0.0.
int QZsock::tcpKeepaliveIdle ()
{
    int rv = zsock_tcp_keepalive_idle (self);
    return rv;
}

///
//  Set socket option `tcp_keepalive_idle`.
//  Available from libzmq 3.0.0.
void QZsock::setTcpKeepaliveIdle (int tcpKeepaliveIdle)
{
    zsock_set_tcp_keepalive_idle (self, tcpKeepaliveIdle);

}

///
//  Get socket option `tcp_keepalive_cnt`.
//  Available from libzmq 3.0.0.
int QZsock::tcpKeepaliveCnt ()
{
    int rv = zsock_tcp_keepalive_cnt (self);
    return rv;
}

///
//  Set socket option `tcp_keepalive_cnt`.
//  Available from libzmq 3.0.0.
void QZsock::setTcpKeepaliveCnt (int tcpKeepaliveCnt)
{
    zsock_set_tcp_keepalive_cnt (self, tcpKeepaliveCnt);

}

///
//  Get socket option `tcp_keepalive_intvl`.
//  Available from libzmq 3.0.0.
int QZsock::tcpKeepaliveIntvl ()
{
    int rv = zsock_tcp_keepalive_intvl (self);
    return rv;
}

///
//  Set socket option `tcp_keepalive_intvl`.
//  Available from libzmq 3.0.0.
void QZsock::setTcpKeepaliveIntvl (int tcpKeepaliveIntvl)
{
    zsock_set_tcp_keepalive_intvl (self, tcpKeepaliveIntvl);

}

///
//  Get socket option `tcp_accept_filter`.
//  Available from libzmq 3.0.0.
QString QZsock::tcpAcceptFilter ()
{
    char *retStr_ = zsock_tcp_accept_filter (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `tcp_accept_filter`.
//  Available from libzmq 3.0.0.
void QZsock::setTcpAcceptFilter (const QString &tcpAcceptFilter)
{
    zsock_set_tcp_accept_filter (self, tcpAcceptFilter.toUtf8().data());

}

///
//  Get socket option `last_endpoint`.
//  Available from libzmq 3.0.0.
QString QZsock::lastEndpoint ()
{
    char *retStr_ = zsock_last_endpoint (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `router_raw`.
//  Available from libzmq 3.0.0.
void QZsock::setRouterRaw (int routerRaw)
{
    zsock_set_router_raw (self, routerRaw);

}

///
//  Get socket option `ipv4only`.
//  Available from libzmq 3.0.0.
int QZsock::ipv4only ()
{
    int rv = zsock_ipv4only (self);
    return rv;
}

///
//  Set socket option `ipv4only`.
//  Available from libzmq 3.0.0.
void QZsock::setIpv4only (int ipv4only)
{
    zsock_set_ipv4only (self, ipv4only);

}

///
//  Set socket option `delay_attach_on_connect`.
//  Available from libzmq 3.0.0.
void QZsock::setDelayAttachOnConnect (int delayAttachOnConnect)
{
    zsock_set_delay_attach_on_connect (self, delayAttachOnConnect);

}

///
//  Get socket option `hwm`.
//  Available from libzmq 2.0.0 to 3.0.0.
int QZsock::hwm ()
{
    int rv = zsock_hwm (self);
    return rv;
}

///
//  Set socket option `hwm`.
//  Available from libzmq 2.0.0 to 3.0.0.
void QZsock::setHwm (int hwm)
{
    zsock_set_hwm (self, hwm);

}

///
//  Get socket option `swap`.
//  Available from libzmq 2.0.0 to 3.0.0.
int QZsock::swap ()
{
    int rv = zsock_swap (self);
    return rv;
}

///
//  Set socket option `swap`.
//  Available from libzmq 2.0.0 to 3.0.0.
void QZsock::setSwap (int swap)
{
    zsock_set_swap (self, swap);

}

///
//  Get socket option `affinity`.
//  Available from libzmq 2.0.0.
int QZsock::affinity ()
{
    int rv = zsock_affinity (self);
    return rv;
}

///
//  Set socket option `affinity`.
//  Available from libzmq 2.0.0.
void QZsock::setAffinity (int affinity)
{
    zsock_set_affinity (self, affinity);

}

///
//  Get socket option `identity`.
//  Available from libzmq 2.0.0.
QString QZsock::identity ()
{
    char *retStr_ = zsock_identity (self);
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}

///
//  Set socket option `identity`.
//  Available from libzmq 2.0.0.
void QZsock::setIdentity (const QString &identity)
{
    zsock_set_identity (self, identity.toUtf8().data());

}

///
//  Get socket option `rate`.
//  Available from libzmq 2.0.0.
int QZsock::rate ()
{
    int rv = zsock_rate (self);
    return rv;
}

///
//  Set socket option `rate`.
//  Available from libzmq 2.0.0.
void QZsock::setRate (int rate)
{
    zsock_set_rate (self, rate);

}

///
//  Get socket option `recovery_ivl`.
//  Available from libzmq 2.0.0.
int QZsock::recoveryIvl ()
{
    int rv = zsock_recovery_ivl (self);
    return rv;
}

///
//  Set socket option `recovery_ivl`.
//  Available from libzmq 2.0.0.
void QZsock::setRecoveryIvl (int recoveryIvl)
{
    zsock_set_recovery_ivl (self, recoveryIvl);

}

///
//  Get socket option `recovery_ivl_msec`.
//  Available from libzmq 2.0.0 to 3.0.0.
int QZsock::recoveryIvlMsec ()
{
    int rv = zsock_recovery_ivl_msec (self);
    return rv;
}

///
//  Set socket option `recovery_ivl_msec`.
//  Available from libzmq 2.0.0 to 3.0.0.
void QZsock::setRecoveryIvlMsec (int recoveryIvlMsec)
{
    zsock_set_recovery_ivl_msec (self, recoveryIvlMsec);

}

///
//  Get socket option `mcast_loop`.
//  Available from libzmq 2.0.0 to 3.0.0.
int QZsock::mcastLoop ()
{
    int rv = zsock_mcast_loop (self);
    return rv;
}

///
//  Set socket option `mcast_loop`.
//  Available from libzmq 2.0.0 to 3.0.0.
void QZsock::setMcastLoop (int mcastLoop)
{
    zsock_set_mcast_loop (self, mcastLoop);

}

///
//  Get socket option `rcvtimeo`.
//  Available from libzmq 2.2.0.
int QZsock::rcvtimeo ()
{
    int rv = zsock_rcvtimeo (self);
    return rv;
}

///
//  Set socket option `rcvtimeo`.
//  Available from libzmq 2.2.0.
void QZsock::setRcvtimeo (int rcvtimeo)
{
    zsock_set_rcvtimeo (self, rcvtimeo);

}

///
//  Get socket option `sndtimeo`.
//  Available from libzmq 2.2.0.
int QZsock::sndtimeo ()
{
    int rv = zsock_sndtimeo (self);
    return rv;
}

///
//  Set socket option `sndtimeo`.
//  Available from libzmq 2.2.0.
void QZsock::setSndtimeo (int sndtimeo)
{
    zsock_set_sndtimeo (self, sndtimeo);

}

///
//  Get socket option `sndbuf`.
//  Available from libzmq 2.0.0.
int QZsock::sndbuf ()
{
    int rv = zsock_sndbuf (self);
    return rv;
}

///
//  Set socket option `sndbuf`.
//  Available from libzmq 2.0.0.
void QZsock::setSndbuf (int sndbuf)
{
    zsock_set_sndbuf (self, sndbuf);

}

///
//  Get socket option `rcvbuf`.
//  Available from libzmq 2.0.0.
int QZsock::rcvbuf ()
{
    int rv = zsock_rcvbuf (self);
    return rv;
}

///
//  Set socket option `rcvbuf`.
//  Available from libzmq 2.0.0.
void QZsock::setRcvbuf (int rcvbuf)
{
    zsock_set_rcvbuf (self, rcvbuf);

}

///
//  Get socket option `linger`.
//  Available from libzmq 2.0.0.
int QZsock::linger ()
{
    int rv = zsock_linger (self);
    return rv;
}

///
//  Set socket option `linger`.
//  Available from libzmq 2.0.0.
void QZsock::setLinger (int linger)
{
    zsock_set_linger (self, linger);

}

///
//  Get socket option `reconnect_ivl`.
//  Available from libzmq 2.0.0.
int QZsock::reconnectIvl ()
{
    int rv = zsock_reconnect_ivl (self);
    return rv;
}

///
//  Set socket option `reconnect_ivl`.
//  Available from libzmq 2.0.0.
void QZsock::setReconnectIvl (int reconnectIvl)
{
    zsock_set_reconnect_ivl (self, reconnectIvl);

}

///
//  Get socket option `reconnect_ivl_max`.
//  Available from libzmq 2.0.0.
int QZsock::reconnectIvlMax ()
{
    int rv = zsock_reconnect_ivl_max (self);
    return rv;
}

///
//  Set socket option `reconnect_ivl_max`.
//  Available from libzmq 2.0.0.
void QZsock::setReconnectIvlMax (int reconnectIvlMax)
{
    zsock_set_reconnect_ivl_max (self, reconnectIvlMax);

}

///
//  Get socket option `backlog`.
//  Available from libzmq 2.0.0.
int QZsock::backlog ()
{
    int rv = zsock_backlog (self);
    return rv;
}

///
//  Set socket option `backlog`.
//  Available from libzmq 2.0.0.
void QZsock::setBacklog (int backlog)
{
    zsock_set_backlog (self, backlog);

}

///
//  Set socket option `subscribe`.
//  Available from libzmq 2.0.0.
void QZsock::setSubscribe (const QString &subscribe)
{
    zsock_set_subscribe (self, subscribe.toUtf8().data());

}

///
//  Set socket option `unsubscribe`.
//  Available from libzmq 2.0.0.
void QZsock::setUnsubscribe (const QString &unsubscribe)
{
    zsock_set_unsubscribe (self, unsubscribe.toUtf8().data());

}

///
//  Get socket option `type`.
//  Available from libzmq 2.0.0.
int QZsock::type ()
{
    int rv = zsock_type (self);
    return rv;
}

///
//  Get socket option `rcvmore`.
//  Available from libzmq 2.0.0.
int QZsock::rcvmore ()
{
    int rv = zsock_rcvmore (self);
    return rv;
}

///
//  Get socket option `fd`.
//  Available from libzmq 2.0.0.
SOCKET QZsock::fd ()
{
    SOCKET rv = zsock_fd (self);
    return rv;
}

///
//  Get socket option `events`.
//  Available from libzmq 2.0.0.
int QZsock::events ()
{
    int rv = zsock_events (self);
    return rv;
}

///
//  Self test of this class.
void QZsock::test (bool verbose)
{
    zsock_test (verbose);

}
/*
################################################################################
#  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
#  Read the zproject/README.md for information about making permanent changes. #
################################################################################
*/
