This repository has been archived by the owner on May 27, 2022. It is now read-only.
forked from zeromq/czmq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sockopts.xml
77 lines (75 loc) · 4.76 KB
/
sockopts.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?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 = "fail_unroutable" 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>
zsocket_set_hwm (socket, 1);
</selftest>
</version>
</options>