45 multicast_maxtpdu (1500),
54 reconnect_ivl_max (0),
62 invert_matching(false),
63 recv_identity (false),
67 tcp_keepalive_cnt (-1),
68 tcp_keepalive_idle (-1),
69 tcp_keepalive_intvl (-1),
72 gss_plaintext (false),
75 handshake_ivl (30000),
78 heartbeat_interval (0),
79 heartbeat_timeout (-1),
85 #if defined ZMQ_HAVE_VMCI 87 vmci_buffer_min_size = 0;
88 vmci_buffer_max_size = 0;
89 vmci_connect_timeout = -1;
96 bool is_int = (optvallen_ ==
sizeof (
int));
98 if (is_int) memcpy(&value, optval_,
sizeof (
int));
99 #if defined (ZMQ_ACT_MILITANT) 100 bool malformed =
true;
105 if (is_int && value >= 0) {
112 if (is_int && value >= 0) {
119 if (optvallen_ ==
sizeof (uint64_t)) {
127 if (optvallen_ > 0 && optvallen_ < 256) {
135 if (is_int && value > 0) {
142 if (is_int && value >= 0) {
149 if (is_int && value >= -1) {
156 if (is_int && value >= -1) {
163 if (is_int && value >= 0) {
170 if (is_int && value >= -1) {
177 if (is_int && value >= 0) {
184 if (is_int && value >= 0) {
191 if (is_int && value >= -1) {
198 if (is_int && value >= 0) {
205 if (is_int && value >= 0) {
212 if (optvallen_ ==
sizeof (int64_t)) {
219 if (is_int && value > 0) {
226 if (is_int && value > 0) {
233 if (is_int && value >= -1) {
240 if (is_int && value >= -1) {
248 if (is_int && (value == 0 || value == 1)) {
256 if (is_int && (value == 0 || value == 1)) {
263 if (optval_ == NULL && optvallen_ == 0) {
268 if (optval_ != NULL && optvallen_ > 0 ) {
270 std::string ((
const char *) optval_, optvallen_);
276 if (is_int && (value == -1 || value == 0 || value == 1)) {
283 if (is_int && (value == -1 || value >= 0)) {
290 if (is_int && (value == -1 || value >= 0)) {
297 if (is_int && (value == -1 || value >= 0)) {
304 if (is_int && (value == 0 || value == 1)) {
311 if (optvallen_ == 0 && optval_ == NULL) {
316 if (optvallen_ > 0 && optvallen_ < 256 && optval_ != NULL && *((
const char*) optval_) != 0) {
317 std::string filter_str ((
const char *) optval_, optvallen_);
327 #if defined ZMQ_HAVE_SO_PEERCRED || defined ZMQ_HAVE_LOCAL_PEERCRED 329 if (optvallen_ == 0 && optval_ == NULL) {
330 ipc_uid_accept_filters.clear ();
334 if (optvallen_ ==
sizeof (uid_t) && optval_ != NULL) {
335 ipc_uid_accept_filters.insert (*((uid_t *) optval_));
341 if (optvallen_ == 0 && optval_ == NULL) {
342 ipc_gid_accept_filters.clear ();
346 if (optvallen_ ==
sizeof (gid_t) && optval_ != NULL) {
347 ipc_gid_accept_filters.insert (*((gid_t *) optval_));
353 #if defined ZMQ_HAVE_SO_PEERCRED 355 if (optvallen_ == 0 && optval_ == NULL) {
356 ipc_pid_accept_filters.clear ();
360 if (optvallen_ ==
sizeof (pid_t) && optval_ != NULL) {
361 ipc_pid_accept_filters.insert (*((pid_t *) optval_));
368 if (is_int && (value == 0 || value == 1)) {
376 if (optvallen_ == 0 && optval_ == NULL) {
381 if (optvallen_ > 0 && optvallen_ < 256 && optval_ != NULL) {
390 if (optvallen_ == 0 && optval_ == NULL) {
395 if (optvallen_ > 0 && optvallen_ < 256 && optval_ != NULL) {
404 if (optvallen_ < 256) {
405 zap_domain.assign ((
const char *) optval_, optvallen_);
411 #ifdef ZMQ_HAVE_CURVE 413 if (is_int && (value == 0 || value == 1)) {
506 if (is_int && (value == 0 || value == 1)) {
513 #ifdef HAVE_LIBGSSAPI_KRB5 515 if (is_int && (value == 0 || value == 1)) {
523 if (optvallen_ > 0 && optvallen_ < 256 && optval_ != NULL) {
531 if (optvallen_ > 0 && optvallen_ < 256 && optval_ != NULL) {
540 if (is_int && (value == 0 || value == 1)) {
548 if (is_int && value >= 0) {
562 if (is_int && value >= 0) {
571 if (is_int && value >= 0 && value <= 6553) {
578 if (is_int && value >= 0) {
586 if (optvallen_ ==
sizeof (uint64_t)) {
587 vmci_buffer_size = *((uint64_t*) optval_);
593 if (optvallen_ ==
sizeof (uint64_t)) {
594 vmci_buffer_min_size = *((uint64_t*) optval_);
600 if (optvallen_ ==
sizeof (uint64_t)) {
601 vmci_buffer_max_size = *((uint64_t*) optval_);
607 if (optvallen_ ==
sizeof (
int)) {
608 vmci_connect_timeout = *((
int*) optval_);
615 if (is_int && value >= -1) {
622 #if defined (ZMQ_ACT_MILITANT) 631 #if defined (ZMQ_ACT_MILITANT) 644 bool is_int = (*optvallen_ ==
sizeof (
int));
645 int *value = (
int *) optval_;
646 #if defined (ZMQ_ACT_MILITANT) 647 bool malformed =
true;
666 if (*optvallen_ ==
sizeof (uint64_t)) {
765 if (*optvallen_ ==
sizeof (int64_t)) {
767 *optvallen_ =
sizeof (int64_t);
896 #ifdef ZMQ_HAVE_CURVE 949 #ifdef HAVE_LIBGSSAPI_KRB5 1025 #if defined (ZMQ_ACT_MILITANT) 1030 #if defined (ZMQ_ACT_MILITANT) #define ZMQ_PLAIN_USERNAME
std::string plain_username
#define ZMQ_RECONNECT_IVL_MAX
#define ZMQ_TCP_KEEPALIVE_INTVL
#define ZMQ_CURVE_SERVERKEY
#define ZMQ_TCP_KEEPALIVE
#define CURVE_KEYSIZE_Z85
std::string socks_proxy_address
#define ZMQ_CURVE_SECRETKEY
std::string gss_principal
#define ZMQ_TCP_KEEPALIVE_IDLE
#define ZMQ_HEARTBEAT_TIMEOUT
#define ZMQ_IPC_FILTER_GID
int getsockopt(int option_, void *optval_, size_t *optvallen_) const
#define ZMQ_HEARTBEAT_IVL
#define ZMQ_IPC_FILTER_UID
int resolve(const char *name_, bool ipv6_)
#define ZMQ_PLAIN_PASSWORD
#define ZMQ_CURVE_PUBLICKEY
#define ZMQ_MULTICAST_MAXTPDU
#define ZMQ_VMCI_BUFFER_SIZE
uint8_t curve_server_key[CURVE_KEYSIZE]
uint8_t curve_secret_key[CURVE_KEYSIZE]
#define ZMQ_GSSAPI_PLAINTEXT
#define ZMQ_IPC_FILTER_PID
#define ZMQ_TCP_ACCEPT_FILTER
std::string gss_service_principal
#define ZMQ_MULTICAST_HOPS
#define LIBZMQ_UNUSED(object)
#define ZMQ_VMCI_CONNECT_TIMEOUT
unsigned char identity[256]
std::string plain_password
tcp_accept_filters_t tcp_accept_filters
#define ZMQ_HEARTBEAT_TTL
ZMQ_EXPORT uint8_t * zmq_z85_decode(uint8_t *dest, const char *string)
#define ZMQ_TCP_KEEPALIVE_CNT
#define ZMQ_GSSAPI_SERVICE_PRINCIPAL
#define ZMQ_VMCI_BUFFER_MAX_SIZE
#define ZMQ_INVERT_MATCHING
uint8_t curve_public_key[CURVE_KEYSIZE]
bool is_valid(int option_) const
#define ZMQ_CONNECT_TIMEOUT
#define ZMQ_VMCI_BUFFER_MIN_SIZE
int setsockopt(int option_, const void *optval_, size_t optvallen_)
#define ZMQ_RECONNECT_IVL
unsigned char identity_size
#define ZMQ_GSSAPI_PRINCIPAL
ZMQ_EXPORT char * zmq_z85_encode(char *dest, const uint8_t *data, size_t size)
#define ZMQ_HANDSHAKE_IVL
#define ZMQ_GSSAPI_SERVER