Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (76 sloc) 4.8 KB
<?xml?>
<!-- Used to generate the socket options interface
Requires gsl4 from https://github.com/imatix/gsl
use 'gsl sockopts'
-->
<options script = "sockopts">
<version major = "2">
<option name = "hwm" type = "uint64" mode = "rw" test = "SUB" />
<option name = "swap" type = "int64" mode = "rw" test = "SUB" />
<option name = "affinity" type = "uint64" mode = "rw" test = "SUB" />
<option name = "identity" type = "blob" mode = "rw" test = "SUB" />
<option name = "rate" type = "int64" mode = "rw" test = "SUB" />
<option name = "recovery_ivl" type = "int64" mode = "rw" test = "SUB" />
<option name = "recovery_ivl_msec" type = "int64" mode = "rw" test = "SUB" />
<option name = "mcast_loop" type = "int64" mode = "rw" test = "SUB" />
<option name = "rcvtimeo" type = "int" mode = "rw" test = "SUB" minor = "2" />
<option name = "sndtimeo" type = "int" mode = "rw" test = "SUB" minor = "2" />
<option name = "sndbuf" type = "uint64" mode = "rw" test = "SUB" />
<option name = "rcvbuf" type = "uint64" mode = "rw" test = "SUB" />
<option name = "linger" type = "int" mode = "rw" test = "SUB" />
<option name = "reconnect_ivl" type = "int" mode = "rw" test = "SUB" />
<option name = "reconnect_ivl_max" type = "int" mode = "rw" test = "SUB" />
<option name = "backlog" type = "int" mode = "rw" test = "SUB" />
<option name = "subscribe" type = "blob" mode = "w" test = "SUB" />
<option name = "unsubscribe" type = "blob" mode = "w" test = "SUB" />
<option name = "type" type = "int" mode = "r" test = "SUB" />
<option name = "rcvmore" type = "int64" mode = "r" test = "SUB" />
<option name = "fd" type = "int" mode = "r" test = "SUB" />
<option name = "events" type = "uint32" mode = "r" test = "SUB" />
</version>
<version major = "3">
<option name = "type" type = "int" mode = "r" test = "SUB" />
<option name = "sndhwm" type = "int" mode = "rw" test = "PUB" />
<option name = "rcvhwm" type = "int" mode = "rw" test = "SUB" />
<option name = "affinity" type = "uint64" mode = "rw" test = "SUB" />
<option name = "subscribe" type = "blob" mode = "w" test = "SUB" />
<option name = "unsubscribe" type = "blob" mode = "w" test = "SUB" />
<option name = "identity" type = "blob" mode = "rw" test = "SUB" />
<option name = "rate" type = "int" mode = "rw" test = "SUB" />
<option name = "recovery_ivl" type = "int" mode = "rw" test = "SUB" />
<option name = "sndbuf" type = "int" mode = "rw" test = "PUB" />
<option name = "rcvbuf" type = "int" mode = "rw" test = "SUB" />
<option name = "linger" type = "int" mode = "rw" test = "SUB" />
<option name = "reconnect_ivl" type = "int" mode = "rw" test = "SUB" />
<option name = "reconnect_ivl_max" type = "int" mode = "rw" test = "SUB" />
<option name = "backlog" type = "int" mode = "rw" test = "SUB" />
<option name = "maxmsgsize" type = "int64" mode = "rw" test = "SUB" />
<option name = "multicast_hops" type = "int" mode = "rw" test = "SUB" />
<option name = "rcvtimeo" type = "int" mode = "rw" test = "SUB" />
<option name = "sndtimeo" type = "int" mode = "rw" test = "SUB" />
<option name = "ipv4only" type = "int" mode = "rw" test = "SUB" />
<option name = "router_behavior" type = "int" mode = "w" test = "ROUTER" />
<option name = "rcvmore" type = "int" mode = "r" test = "SUB" />
<option name = "fd" type = "int" mode = "r" test = "SUB" />
<option name = "events" type = "int" mode = "r" test = "SUB" />
<option name = "last_endpoint" type = "blob" mode = "r" test = "SUB" />
<header>
// Emulation of widely-used 2.x socket options
void zsocket_set_hwm (void *socket, int hwm);
</header>
<source>
// --------------------------------------------------------------------------
// Set socket high-water mark, emulating 2.x API
void
zsocket_set_hwm (void *socket, int hwm)
{
zsocket_set_sndhwm (socket, hwm);
zsocket_set_rcvhwm (socket, hwm);
}
</source>
<selftest>
socket = zsocket_new (ctx, ZMQ_SUB);
zsocket_set_hwm (socket, 1);
</selftest>
</version>
</options>
Jump to Line
Something went wrong with that request. Please try again.