czmq-ffi-gen 0.10.0-x64-mingw32 → 0.12.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +8 -0
  3. data/lib/czmq-ffi-gen/czmq/ffi.rb +345 -209
  4. data/lib/czmq-ffi-gen/czmq/ffi/version.rb +1 -1
  5. data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +0 -12
  6. data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +0 -12
  7. data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +0 -31
  8. data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +0 -44
  9. data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +706 -0
  10. data/lib/czmq-ffi-gen/gem_version.rb +1 -1
  11. data/vendor/local/bin/inproc_lat.exe +0 -0
  12. data/vendor/local/bin/inproc_thr.exe +0 -0
  13. data/vendor/local/bin/libczmq.dll +0 -0
  14. data/vendor/local/bin/libzmq.dll +0 -0
  15. data/vendor/local/bin/local_lat.exe +0 -0
  16. data/vendor/local/bin/local_thr.exe +0 -0
  17. data/vendor/local/bin/remote_lat.exe +0 -0
  18. data/vendor/local/bin/remote_thr.exe +0 -0
  19. data/vendor/local/include/czmq.h +8 -0
  20. data/vendor/local/include/czmq_library.h +2 -29
  21. data/vendor/local/include/zauth.h +1 -1
  22. data/vendor/local/include/zcert.h +0 -8
  23. data/vendor/local/include/zcertstore.h +0 -8
  24. data/vendor/local/include/zhash.h +0 -13
  25. data/vendor/local/include/zhashx.h +0 -21
  26. data/vendor/local/include/zloop.h +7 -12
  27. data/vendor/local/include/zpoller.h +7 -12
  28. data/vendor/local/include/zsock.h +159 -44
  29. data/vendor/local/include/zsock_option.inc +578 -0
  30. data/vendor/local/include/zsys.h +9 -0
  31. data/vendor/local/lib/libczmq.dll.a +0 -0
  32. data/vendor/local/lib/liblibzmq.dll.a +0 -0
  33. data/vendor/local/lib/pkgconfig/libczmq.pc +2 -1
  34. metadata +2 -11
  35. data/vendor/local/include/zauth_v2.h +0 -88
  36. data/vendor/local/include/zbeacon_v2.h +0 -75
  37. data/vendor/local/include/zctx.h +0 -107
  38. data/vendor/local/include/zmonitor_v2.h +0 -56
  39. data/vendor/local/include/zmutex.h +0 -55
  40. data/vendor/local/include/zproxy_v2.h +0 -62
  41. data/vendor/local/include/zsocket.h +0 -110
  42. data/vendor/local/include/zsockopt.h +0 -256
  43. data/vendor/local/include/zthread.h +0 -50
@@ -1,62 +0,0 @@
1
- /* =========================================================================
2
- zproxy_v2 - run a steerable proxy in the background (deprecated)
3
-
4
- Copyright (c) the Contributors as noted in the AUTHORS file.
5
- This file is part of CZMQ, the high-level C binding for 0MQ:
6
- http://czmq.zeromq.org.
7
-
8
- This Source Code Form is subject to the terms of the Mozilla Public
9
- License, v. 2.0. If a copy of the MPL was not distributed with this
10
- file, You can obtain one at http://mozilla.org/MPL/2.0/.
11
- =========================================================================
12
- */
13
-
14
- #ifndef __ZPROXY_V2_H_INCLUDED__
15
- #define __ZPROXY_V2_H_INCLUDED__
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- // @interface
22
-
23
- // Constructor
24
- // Create a new zproxy object. You must create the frontend and backend
25
- // sockets, configure them, and connect or bind them, before you pass them
26
- // to the constructor. Do NOT use the sockets again, after passing them to
27
- // this method.
28
- CZMQ_EXPORT zproxy_t *
29
- zproxy_new (zctx_t *ctx, void *frontend, void *backend);
30
-
31
- // Destructor
32
- // Destroy a zproxy object; note this first stops the proxy.
33
- CZMQ_EXPORT void
34
- zproxy_destroy (zproxy_t **self_p);
35
-
36
- // Copy all proxied messages to specified endpoint; if this is NULL, any
37
- // in-progress capturing will be stopped. You must already have bound the
38
- // endpoint to a PULL socket.
39
- CZMQ_EXPORT void
40
- zproxy_capture (zproxy_t *self, const char *endpoint);
41
-
42
- // Pauses a zproxy object; a paused proxy will cease processing messages,
43
- // causing them to be queued up and potentially hit the high-water mark on
44
- // the frontend socket, causing messages to be dropped, or writing
45
- // applications to block.
46
- CZMQ_EXPORT void
47
- zproxy_pause (zproxy_t *self);
48
-
49
- // Resume a zproxy object
50
- CZMQ_EXPORT void
51
- zproxy_resume (zproxy_t *self);
52
-
53
- // Self test of this class
54
- CZMQ_EXPORT void
55
- zproxy_v2_test (bool verbose);
56
- // @end
57
-
58
- #ifdef __cplusplus
59
- }
60
- #endif
61
-
62
- #endif
@@ -1,110 +0,0 @@
1
- /* =========================================================================
2
- zsocket - working with 0MQ sockets
3
-
4
- Copyright (c) the Contributors as noted in the AUTHORS file.
5
- This file is part of CZMQ, the high-level C binding for 0MQ:
6
- http://czmq.zeromq.org.
7
-
8
- This Source Code Form is subject to the terms of the Mozilla Public
9
- License, v. 2.0. If a copy of the MPL was not distributed with this
10
- file, You can obtain one at http://mozilla.org/MPL/2.0/.
11
- =========================================================================
12
- */
13
-
14
- #ifndef __ZSOCKET_H_INCLUDED__
15
- #define __ZSOCKET_H_INCLUDED__
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- // @interface
22
- // This port range is defined by IANA for dynamic or private ports
23
- // We use this when choosing a port for dynamic binding.
24
- #define ZSOCKET_DYNFROM 0xc000
25
- #define ZSOCKET_DYNTO 0xffff
26
-
27
- // Callback function for zero-copy methods
28
- typedef void (zsocket_free_fn) (void *data, void *arg);
29
-
30
- // Create a new socket within our CZMQ context, replaces zmq_socket.
31
- // Use this to get automatic management of the socket at shutdown.
32
- // Note: SUB sockets do not automatically subscribe to everything; you
33
- // must set filters explicitly.
34
- CZMQ_EXPORT void *
35
- zsocket_new (zctx_t *self, int type);
36
-
37
- // Destroy a socket within our CZMQ context, replaces zmq_close.
38
- CZMQ_EXPORT void
39
- zsocket_destroy (zctx_t *ctx, void *self);
40
-
41
- // Bind a socket to a formatted endpoint. If the port is specified as
42
- // '*', binds to any free port from ZSOCKET_DYNFROM to ZSOCKET_DYNTO
43
- // and returns the actual port number used. Otherwise asserts that the
44
- // bind succeeded with the specified port number. Always returns the
45
- // port number if successful.
46
- CZMQ_EXPORT int
47
- zsocket_bind (void *self, const char *format, ...);
48
-
49
- // Unbind a socket from a formatted endpoint.
50
- // Returns 0 if OK, -1 if the endpoint was invalid or the function
51
- // isn't supported.
52
- CZMQ_EXPORT int
53
- zsocket_unbind (void *self, const char *format, ...);
54
-
55
- // Connect a socket to a formatted endpoint
56
- // Returns 0 if OK, -1 if the endpoint was invalid.
57
- CZMQ_EXPORT int
58
- zsocket_connect (void *self, const char *format, ...);
59
-
60
- // Disconnect a socket from a formatted endpoint
61
- // Returns 0 if OK, -1 if the endpoint was invalid or the function
62
- // isn't supported.
63
- CZMQ_EXPORT int
64
- zsocket_disconnect (void *self, const char *format, ...);
65
-
66
- // Poll for input events on the socket. Returns TRUE if there is input
67
- // ready on the socket, else FALSE.
68
- CZMQ_EXPORT bool
69
- zsocket_poll (void *self, int msecs);
70
-
71
- // Returns socket type as printable constant string
72
- CZMQ_EXPORT const char *
73
- zsocket_type_str (void *self);
74
-
75
- // Send data over a socket as a single message frame.
76
- // Accepts these flags: ZFRAME_MORE and ZFRAME_DONTWAIT.
77
- // Returns -1 on error, 0 on success
78
- CZMQ_EXPORT int
79
- zsocket_sendmem (void *self, const void *data, size_t size, int flags);
80
-
81
- // Send a signal over a socket. A signal is a zero-byte message.
82
- // Signals are used primarily between threads, over pipe sockets.
83
- // Returns -1 if there was an error sending the signal.
84
- CZMQ_EXPORT int
85
- zsocket_signal (void *self);
86
-
87
- // Wait on a signal. Use this to coordinate between threads, over
88
- // pipe pairs. Returns -1 on error, 0 on success.
89
- CZMQ_EXPORT int
90
- zsocket_wait (void *self);
91
-
92
- // Self test of this class
93
- CZMQ_EXPORT void
94
- zsocket_test (bool verbose);
95
- // @end
96
-
97
- // Compiler hints
98
- CZMQ_EXPORT int zsocket_bind (void *self, const char *format, ...) CHECK_PRINTF (2);
99
- CZMQ_EXPORT int zsocket_unbind (void *self, const char *format, ...) CHECK_PRINTF (2);
100
- CZMQ_EXPORT int zsocket_connect (void *self, const char *format, ...) CHECK_PRINTF (2);
101
- CZMQ_EXPORT int zsocket_disconnect (void *self, const char *format, ...) CHECK_PRINTF (2);
102
-
103
- // Emulation of widely-used 2.x socket options
104
- CZMQ_EXPORT void zsocket_set_hwm (void *self, int hwm);
105
-
106
- #ifdef __cplusplus
107
- }
108
- #endif
109
-
110
- #endif
@@ -1,256 +0,0 @@
1
- /* =========================================================================
2
- zsockopt - get/set 0MQ socket options (deprecated)
3
-
4
- ****************************************************
5
- * GENERATED SOURCE CODE, DO NOT EDIT!! *
6
- * TO CHANGE THIS, EDIT src/zsockopt.gsl *
7
- * AND RUN `gsl sockopts` in src/. *
8
- ****************************************************
9
-
10
- Copyright (c) the Contributors as noted in the AUTHORS file.
11
- This file is part of CZMQ, the high-level C binding for 0MQ:
12
- http://czmq.zeromq.org.
13
-
14
- This Source Code Form is subject to the terms of the Mozilla Public
15
- License, v. 2.0. If a copy of the MPL was not distributed with this
16
- file, You can obtain one at http://mozilla.org/MPL/2.0/.
17
- =========================================================================
18
- */
19
-
20
- #ifndef __ZSOCKOPT_H_INCLUDED__
21
- #define __ZSOCKOPT_H_INCLUDED__
22
-
23
- #ifdef __cplusplus
24
- extern "C" {
25
- #endif
26
-
27
- // @interface
28
- #if (ZMQ_VERSION_MAJOR == 4)
29
- // Get socket options
30
- CZMQ_EXPORT int zsocket_heartbeat_ivl (void *zocket);
31
- CZMQ_EXPORT int zsocket_heartbeat_ttl (void *zocket);
32
- CZMQ_EXPORT int zsocket_heartbeat_timeout (void *zocket);
33
- CZMQ_EXPORT int zsocket_use_fd (void *zocket);
34
- CZMQ_EXPORT int zsocket_tos (void *zocket);
35
- CZMQ_EXPORT char * zsocket_zap_domain (void *zocket);
36
- CZMQ_EXPORT int zsocket_mechanism (void *zocket);
37
- CZMQ_EXPORT int zsocket_plain_server (void *zocket);
38
- CZMQ_EXPORT char * zsocket_plain_username (void *zocket);
39
- CZMQ_EXPORT char * zsocket_plain_password (void *zocket);
40
- CZMQ_EXPORT int zsocket_curve_server (void *zocket);
41
- CZMQ_EXPORT char * zsocket_curve_publickey (void *zocket);
42
- CZMQ_EXPORT char * zsocket_curve_secretkey (void *zocket);
43
- CZMQ_EXPORT char * zsocket_curve_serverkey (void *zocket);
44
- CZMQ_EXPORT int zsocket_gssapi_server (void *zocket);
45
- CZMQ_EXPORT int zsocket_gssapi_plaintext (void *zocket);
46
- CZMQ_EXPORT char * zsocket_gssapi_principal (void *zocket);
47
- CZMQ_EXPORT char * zsocket_gssapi_service_principal (void *zocket);
48
- CZMQ_EXPORT int zsocket_ipv6 (void *zocket);
49
- CZMQ_EXPORT int zsocket_immediate (void *zocket);
50
- CZMQ_EXPORT int zsocket_ipv4only (void *zocket);
51
- CZMQ_EXPORT int zsocket_type (void *zocket);
52
- CZMQ_EXPORT int zsocket_sndhwm (void *zocket);
53
- CZMQ_EXPORT int zsocket_rcvhwm (void *zocket);
54
- CZMQ_EXPORT int zsocket_affinity (void *zocket);
55
- CZMQ_EXPORT char * zsocket_identity (void *zocket);
56
- CZMQ_EXPORT int zsocket_rate (void *zocket);
57
- CZMQ_EXPORT int zsocket_recovery_ivl (void *zocket);
58
- CZMQ_EXPORT int zsocket_sndbuf (void *zocket);
59
- CZMQ_EXPORT int zsocket_rcvbuf (void *zocket);
60
- CZMQ_EXPORT int zsocket_linger (void *zocket);
61
- CZMQ_EXPORT int zsocket_reconnect_ivl (void *zocket);
62
- CZMQ_EXPORT int zsocket_reconnect_ivl_max (void *zocket);
63
- CZMQ_EXPORT int zsocket_backlog (void *zocket);
64
- CZMQ_EXPORT int zsocket_maxmsgsize (void *zocket);
65
- CZMQ_EXPORT int zsocket_multicast_hops (void *zocket);
66
- CZMQ_EXPORT int zsocket_rcvtimeo (void *zocket);
67
- CZMQ_EXPORT int zsocket_sndtimeo (void *zocket);
68
- CZMQ_EXPORT int zsocket_tcp_keepalive (void *zocket);
69
- CZMQ_EXPORT int zsocket_tcp_keepalive_idle (void *zocket);
70
- CZMQ_EXPORT int zsocket_tcp_keepalive_cnt (void *zocket);
71
- CZMQ_EXPORT int zsocket_tcp_keepalive_intvl (void *zocket);
72
- CZMQ_EXPORT char * zsocket_tcp_accept_filter (void *zocket);
73
- CZMQ_EXPORT int zsocket_rcvmore (void *zocket);
74
- CZMQ_EXPORT SOCKET zsocket_fd (void *zocket);
75
- CZMQ_EXPORT int zsocket_events (void *zocket);
76
- CZMQ_EXPORT char * zsocket_last_endpoint (void *zocket);
77
-
78
- // Set socket options
79
- CZMQ_EXPORT void zsocket_set_heartbeat_ivl (void *zocket, int heartbeat_ivl);
80
- CZMQ_EXPORT void zsocket_set_heartbeat_ttl (void *zocket, int heartbeat_ttl);
81
- CZMQ_EXPORT void zsocket_set_heartbeat_timeout (void *zocket, int heartbeat_timeout);
82
- CZMQ_EXPORT void zsocket_set_use_fd (void *zocket, int use_fd);
83
- CZMQ_EXPORT void zsocket_set_tos (void *zocket, int tos);
84
- CZMQ_EXPORT void zsocket_set_router_handover (void *zocket, int router_handover);
85
- CZMQ_EXPORT void zsocket_set_router_mandatory (void *zocket, int router_mandatory);
86
- CZMQ_EXPORT void zsocket_set_probe_router (void *zocket, int probe_router);
87
- CZMQ_EXPORT void zsocket_set_req_relaxed (void *zocket, int req_relaxed);
88
- CZMQ_EXPORT void zsocket_set_req_correlate (void *zocket, int req_correlate);
89
- CZMQ_EXPORT void zsocket_set_conflate (void *zocket, int conflate);
90
- CZMQ_EXPORT void zsocket_set_zap_domain (void *zocket, const char * zap_domain);
91
- CZMQ_EXPORT void zsocket_set_plain_server (void *zocket, int plain_server);
92
- CZMQ_EXPORT void zsocket_set_plain_username (void *zocket, const char * plain_username);
93
- CZMQ_EXPORT void zsocket_set_plain_password (void *zocket, const char * plain_password);
94
- CZMQ_EXPORT void zsocket_set_curve_server (void *zocket, int curve_server);
95
- CZMQ_EXPORT void zsocket_set_curve_publickey (void *zocket, const char * curve_publickey);
96
- CZMQ_EXPORT void zsocket_set_curve_publickey_bin (void *zocket, const byte *curve_publickey);
97
- CZMQ_EXPORT void zsocket_set_curve_secretkey (void *zocket, const char * curve_secretkey);
98
- CZMQ_EXPORT void zsocket_set_curve_secretkey_bin (void *zocket, const byte *curve_secretkey);
99
- CZMQ_EXPORT void zsocket_set_curve_serverkey (void *zocket, const char * curve_serverkey);
100
- CZMQ_EXPORT void zsocket_set_curve_serverkey_bin (void *zocket, const byte *curve_serverkey);
101
- CZMQ_EXPORT void zsocket_set_gssapi_server (void *zocket, int gssapi_server);
102
- CZMQ_EXPORT void zsocket_set_gssapi_plaintext (void *zocket, int gssapi_plaintext);
103
- CZMQ_EXPORT void zsocket_set_gssapi_principal (void *zocket, const char * gssapi_principal);
104
- CZMQ_EXPORT void zsocket_set_gssapi_service_principal (void *zocket, const char * gssapi_service_principal);
105
- CZMQ_EXPORT void zsocket_set_ipv6 (void *zocket, int ipv6);
106
- CZMQ_EXPORT void zsocket_set_immediate (void *zocket, int immediate);
107
- CZMQ_EXPORT void zsocket_set_router_raw (void *zocket, int router_raw);
108
- CZMQ_EXPORT void zsocket_set_ipv4only (void *zocket, int ipv4only);
109
- CZMQ_EXPORT void zsocket_set_delay_attach_on_connect (void *zocket, int delay_attach_on_connect);
110
- CZMQ_EXPORT void zsocket_set_sndhwm (void *zocket, int sndhwm);
111
- CZMQ_EXPORT void zsocket_set_rcvhwm (void *zocket, int rcvhwm);
112
- CZMQ_EXPORT void zsocket_set_affinity (void *zocket, int affinity);
113
- CZMQ_EXPORT void zsocket_set_subscribe (void *zocket, const char * subscribe);
114
- CZMQ_EXPORT void zsocket_set_unsubscribe (void *zocket, const char * unsubscribe);
115
- CZMQ_EXPORT void zsocket_set_identity (void *zocket, const char * identity);
116
- CZMQ_EXPORT void zsocket_set_rate (void *zocket, int rate);
117
- CZMQ_EXPORT void zsocket_set_recovery_ivl (void *zocket, int recovery_ivl);
118
- CZMQ_EXPORT void zsocket_set_sndbuf (void *zocket, int sndbuf);
119
- CZMQ_EXPORT void zsocket_set_rcvbuf (void *zocket, int rcvbuf);
120
- CZMQ_EXPORT void zsocket_set_linger (void *zocket, int linger);
121
- CZMQ_EXPORT void zsocket_set_reconnect_ivl (void *zocket, int reconnect_ivl);
122
- CZMQ_EXPORT void zsocket_set_reconnect_ivl_max (void *zocket, int reconnect_ivl_max);
123
- CZMQ_EXPORT void zsocket_set_backlog (void *zocket, int backlog);
124
- CZMQ_EXPORT void zsocket_set_maxmsgsize (void *zocket, int maxmsgsize);
125
- CZMQ_EXPORT void zsocket_set_multicast_hops (void *zocket, int multicast_hops);
126
- CZMQ_EXPORT void zsocket_set_rcvtimeo (void *zocket, int rcvtimeo);
127
- CZMQ_EXPORT void zsocket_set_sndtimeo (void *zocket, int sndtimeo);
128
- CZMQ_EXPORT void zsocket_set_xpub_verbose (void *zocket, int xpub_verbose);
129
- CZMQ_EXPORT void zsocket_set_tcp_keepalive (void *zocket, int tcp_keepalive);
130
- CZMQ_EXPORT void zsocket_set_tcp_keepalive_idle (void *zocket, int tcp_keepalive_idle);
131
- CZMQ_EXPORT void zsocket_set_tcp_keepalive_cnt (void *zocket, int tcp_keepalive_cnt);
132
- CZMQ_EXPORT void zsocket_set_tcp_keepalive_intvl (void *zocket, int tcp_keepalive_intvl);
133
- CZMQ_EXPORT void zsocket_set_tcp_accept_filter (void *zocket, const char * tcp_accept_filter);
134
- #endif
135
-
136
- #if (ZMQ_VERSION_MAJOR == 3)
137
- // Get socket options
138
- CZMQ_EXPORT int zsocket_ipv4only (void *zocket);
139
- CZMQ_EXPORT int zsocket_type (void *zocket);
140
- CZMQ_EXPORT int zsocket_sndhwm (void *zocket);
141
- CZMQ_EXPORT int zsocket_rcvhwm (void *zocket);
142
- CZMQ_EXPORT int zsocket_affinity (void *zocket);
143
- CZMQ_EXPORT char * zsocket_identity (void *zocket);
144
- CZMQ_EXPORT int zsocket_rate (void *zocket);
145
- CZMQ_EXPORT int zsocket_recovery_ivl (void *zocket);
146
- CZMQ_EXPORT int zsocket_sndbuf (void *zocket);
147
- CZMQ_EXPORT int zsocket_rcvbuf (void *zocket);
148
- CZMQ_EXPORT int zsocket_linger (void *zocket);
149
- CZMQ_EXPORT int zsocket_reconnect_ivl (void *zocket);
150
- CZMQ_EXPORT int zsocket_reconnect_ivl_max (void *zocket);
151
- CZMQ_EXPORT int zsocket_backlog (void *zocket);
152
- CZMQ_EXPORT int zsocket_maxmsgsize (void *zocket);
153
- CZMQ_EXPORT int zsocket_multicast_hops (void *zocket);
154
- CZMQ_EXPORT int zsocket_rcvtimeo (void *zocket);
155
- CZMQ_EXPORT int zsocket_sndtimeo (void *zocket);
156
- CZMQ_EXPORT int zsocket_tcp_keepalive (void *zocket);
157
- CZMQ_EXPORT int zsocket_tcp_keepalive_idle (void *zocket);
158
- CZMQ_EXPORT int zsocket_tcp_keepalive_cnt (void *zocket);
159
- CZMQ_EXPORT int zsocket_tcp_keepalive_intvl (void *zocket);
160
- CZMQ_EXPORT char * zsocket_tcp_accept_filter (void *zocket);
161
- CZMQ_EXPORT int zsocket_rcvmore (void *zocket);
162
- CZMQ_EXPORT SOCKET zsocket_fd (void *zocket);
163
- CZMQ_EXPORT int zsocket_events (void *zocket);
164
- CZMQ_EXPORT char * zsocket_last_endpoint (void *zocket);
165
-
166
- // Set socket options
167
- CZMQ_EXPORT void zsocket_set_router_raw (void *zocket, int router_raw);
168
- CZMQ_EXPORT void zsocket_set_ipv4only (void *zocket, int ipv4only);
169
- CZMQ_EXPORT void zsocket_set_delay_attach_on_connect (void *zocket, int delay_attach_on_connect);
170
- CZMQ_EXPORT void zsocket_set_sndhwm (void *zocket, int sndhwm);
171
- CZMQ_EXPORT void zsocket_set_rcvhwm (void *zocket, int rcvhwm);
172
- CZMQ_EXPORT void zsocket_set_affinity (void *zocket, int affinity);
173
- CZMQ_EXPORT void zsocket_set_subscribe (void *zocket, const char * subscribe);
174
- CZMQ_EXPORT void zsocket_set_unsubscribe (void *zocket, const char * unsubscribe);
175
- CZMQ_EXPORT void zsocket_set_identity (void *zocket, const char * identity);
176
- CZMQ_EXPORT void zsocket_set_rate (void *zocket, int rate);
177
- CZMQ_EXPORT void zsocket_set_recovery_ivl (void *zocket, int recovery_ivl);
178
- CZMQ_EXPORT void zsocket_set_sndbuf (void *zocket, int sndbuf);
179
- CZMQ_EXPORT void zsocket_set_rcvbuf (void *zocket, int rcvbuf);
180
- CZMQ_EXPORT void zsocket_set_linger (void *zocket, int linger);
181
- CZMQ_EXPORT void zsocket_set_reconnect_ivl (void *zocket, int reconnect_ivl);
182
- CZMQ_EXPORT void zsocket_set_reconnect_ivl_max (void *zocket, int reconnect_ivl_max);
183
- CZMQ_EXPORT void zsocket_set_backlog (void *zocket, int backlog);
184
- CZMQ_EXPORT void zsocket_set_maxmsgsize (void *zocket, int maxmsgsize);
185
- CZMQ_EXPORT void zsocket_set_multicast_hops (void *zocket, int multicast_hops);
186
- CZMQ_EXPORT void zsocket_set_rcvtimeo (void *zocket, int rcvtimeo);
187
- CZMQ_EXPORT void zsocket_set_sndtimeo (void *zocket, int sndtimeo);
188
- CZMQ_EXPORT void zsocket_set_xpub_verbose (void *zocket, int xpub_verbose);
189
- CZMQ_EXPORT void zsocket_set_tcp_keepalive (void *zocket, int tcp_keepalive);
190
- CZMQ_EXPORT void zsocket_set_tcp_keepalive_idle (void *zocket, int tcp_keepalive_idle);
191
- CZMQ_EXPORT void zsocket_set_tcp_keepalive_cnt (void *zocket, int tcp_keepalive_cnt);
192
- CZMQ_EXPORT void zsocket_set_tcp_keepalive_intvl (void *zocket, int tcp_keepalive_intvl);
193
- CZMQ_EXPORT void zsocket_set_tcp_accept_filter (void *zocket, const char * tcp_accept_filter);
194
- #endif
195
-
196
- #if (ZMQ_VERSION_MAJOR == 2)
197
- // Get socket options
198
- CZMQ_EXPORT int zsocket_hwm (void *zocket);
199
- CZMQ_EXPORT int zsocket_swap (void *zocket);
200
- CZMQ_EXPORT int zsocket_affinity (void *zocket);
201
- CZMQ_EXPORT char * zsocket_identity (void *zocket);
202
- CZMQ_EXPORT int zsocket_rate (void *zocket);
203
- CZMQ_EXPORT int zsocket_recovery_ivl (void *zocket);
204
- CZMQ_EXPORT int zsocket_recovery_ivl_msec (void *zocket);
205
- CZMQ_EXPORT int zsocket_mcast_loop (void *zocket);
206
- # if (ZMQ_VERSION_MINOR == 2)
207
- CZMQ_EXPORT int zsocket_rcvtimeo (void *zocket);
208
- # endif
209
- # if (ZMQ_VERSION_MINOR == 2)
210
- CZMQ_EXPORT int zsocket_sndtimeo (void *zocket);
211
- # endif
212
- CZMQ_EXPORT int zsocket_sndbuf (void *zocket);
213
- CZMQ_EXPORT int zsocket_rcvbuf (void *zocket);
214
- CZMQ_EXPORT int zsocket_linger (void *zocket);
215
- CZMQ_EXPORT int zsocket_reconnect_ivl (void *zocket);
216
- CZMQ_EXPORT int zsocket_reconnect_ivl_max (void *zocket);
217
- CZMQ_EXPORT int zsocket_backlog (void *zocket);
218
- CZMQ_EXPORT int zsocket_type (void *zocket);
219
- CZMQ_EXPORT int zsocket_rcvmore (void *zocket);
220
- CZMQ_EXPORT SOCKET zsocket_fd (void *zocket);
221
- CZMQ_EXPORT int zsocket_events (void *zocket);
222
-
223
- // Set socket options
224
- CZMQ_EXPORT void zsocket_set_hwm (void *zocket, int hwm);
225
- CZMQ_EXPORT void zsocket_set_swap (void *zocket, int swap);
226
- CZMQ_EXPORT void zsocket_set_affinity (void *zocket, int affinity);
227
- CZMQ_EXPORT void zsocket_set_identity (void *zocket, const char * identity);
228
- CZMQ_EXPORT void zsocket_set_rate (void *zocket, int rate);
229
- CZMQ_EXPORT void zsocket_set_recovery_ivl (void *zocket, int recovery_ivl);
230
- CZMQ_EXPORT void zsocket_set_recovery_ivl_msec (void *zocket, int recovery_ivl_msec);
231
- CZMQ_EXPORT void zsocket_set_mcast_loop (void *zocket, int mcast_loop);
232
- # if (ZMQ_VERSION_MINOR == 2)
233
- CZMQ_EXPORT void zsocket_set_rcvtimeo (void *zocket, int rcvtimeo);
234
- # endif
235
- # if (ZMQ_VERSION_MINOR == 2)
236
- CZMQ_EXPORT void zsocket_set_sndtimeo (void *zocket, int sndtimeo);
237
- # endif
238
- CZMQ_EXPORT void zsocket_set_sndbuf (void *zocket, int sndbuf);
239
- CZMQ_EXPORT void zsocket_set_rcvbuf (void *zocket, int rcvbuf);
240
- CZMQ_EXPORT void zsocket_set_linger (void *zocket, int linger);
241
- CZMQ_EXPORT void zsocket_set_reconnect_ivl (void *zocket, int reconnect_ivl);
242
- CZMQ_EXPORT void zsocket_set_reconnect_ivl_max (void *zocket, int reconnect_ivl_max);
243
- CZMQ_EXPORT void zsocket_set_backlog (void *zocket, int backlog);
244
- CZMQ_EXPORT void zsocket_set_subscribe (void *zocket, const char * subscribe);
245
- CZMQ_EXPORT void zsocket_set_unsubscribe (void *zocket, const char * unsubscribe);
246
- #endif
247
-
248
- // Self test of this class
249
- CZMQ_EXPORT void zsockopt_test (bool verbose);
250
- // @end
251
-
252
- #ifdef __cplusplus
253
- }
254
- #endif
255
-
256
- #endif
@@ -1,50 +0,0 @@
1
- /* =========================================================================
2
- zthread - working with system threads (deprecated)
3
-
4
- Copyright (c) the Contributors as noted in the AUTHORS file.
5
- This file is part of CZMQ, the high-level C binding for 0MQ:
6
- http://czmq.zeromq.org.
7
-
8
- This Source Code Form is subject to the terms of the Mozilla Public
9
- License, v. 2.0. If a copy of the MPL was not distributed with this
10
- file, You can obtain one at http://mozilla.org/MPL/2.0/.
11
- =========================================================================
12
- */
13
-
14
- #ifndef __ZTHREAD_H_INCLUDED__
15
- #define __ZTHREAD_H_INCLUDED__
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- // @interface
22
- // Detached threads follow POSIX pthreads API
23
- typedef void *(zthread_detached_fn) (void *args);
24
-
25
- // Attached threads get context and pipe from parent
26
- typedef void (zthread_attached_fn) (void *args, zctx_t *ctx, void *pipe);
27
-
28
- // Create a detached thread. A detached thread operates autonomously
29
- // and is used to simulate a separate process. It gets no ctx, and no
30
- // pipe.
31
- CZMQ_EXPORT int
32
- zthread_new (zthread_detached_fn *thread_fn, void *args);
33
-
34
- // Create an attached thread. An attached thread gets a ctx and a PAIR
35
- // pipe back to its parent. It must monitor its pipe, and exit if the
36
- // pipe becomes unreadable. Do not destroy the ctx, the thread does this
37
- // automatically when it ends.
38
- CZMQ_EXPORT void *
39
- zthread_fork (zctx_t *ctx, zthread_attached_fn *thread_fn, void *args);
40
-
41
- // Self test of this class
42
- CZMQ_EXPORT void
43
- zthread_test (bool verbose);
44
- // @end
45
-
46
- #ifdef __cplusplus
47
- }
48
- #endif
49
-
50
- #endif