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
@@ -223,6 +223,15 @@ CZMQ_EXPORT void
223
223
  CZMQ_EXPORT size_t
224
224
  zsys_socket_limit (void);
225
225
 
226
+ // Configure the maximum allowed size of a message sent.
227
+ // The default is INT_MAX.
228
+ CZMQ_EXPORT void
229
+ zsys_set_max_msgsz (int max_msgsz);
230
+
231
+ // Return maximum message size.
232
+ CZMQ_EXPORT int
233
+ zsys_max_msgsz (void);
234
+
226
235
  // Configure the default linger timeout in msecs for new zsock instances.
227
236
  // You can also set this separately on each zsock_t instance. The default
228
237
  // linger time is zero, i.e. any pending messages will be dropped. If the
Binary file
Binary file
@@ -10,12 +10,13 @@ includedir=${prefix}/include
10
10
 
11
11
  Name: libczmq
12
12
  Description: The high-level C binding for 0MQ
13
- Version: 3.0.3
13
+ Version: 4.0.0
14
14
 
15
15
  Requires:libzmq
16
16
 
17
17
  Libs: -L${libdir} -lczmq
18
18
  Cflags: -I${includedir}
19
+ Libs.private: -lzmq
19
20
 
20
21
  ################################################################################
21
22
  # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: czmq-ffi-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.12.0
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Patrik Wenger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-25 00:00:00.000000000 Z
11
+ date: 2016-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -149,15 +149,12 @@ files:
149
149
  - vendor/local/include/zactor.h
150
150
  - vendor/local/include/zarmour.h
151
151
  - vendor/local/include/zauth.h
152
- - vendor/local/include/zauth_v2.h
153
152
  - vendor/local/include/zbeacon.h
154
- - vendor/local/include/zbeacon_v2.h
155
153
  - vendor/local/include/zcert.h
156
154
  - vendor/local/include/zcertstore.h
157
155
  - vendor/local/include/zchunk.h
158
156
  - vendor/local/include/zclock.h
159
157
  - vendor/local/include/zconfig.h
160
- - vendor/local/include/zctx.h
161
158
  - vendor/local/include/zdigest.h
162
159
  - vendor/local/include/zdir.h
163
160
  - vendor/local/include/zdir_patch.h
@@ -174,22 +171,16 @@ files:
174
171
  - vendor/local/include/zlistx.h
175
172
  - vendor/local/include/zloop.h
176
173
  - vendor/local/include/zmonitor.h
177
- - vendor/local/include/zmonitor_v2.h
178
174
  - vendor/local/include/zmq.h
179
175
  - vendor/local/include/zmq_utils.h
180
176
  - vendor/local/include/zmsg.h
181
- - vendor/local/include/zmutex.h
182
177
  - vendor/local/include/zpoller.h
183
178
  - vendor/local/include/zproxy.h
184
- - vendor/local/include/zproxy_v2.h
185
179
  - vendor/local/include/zrex.h
186
180
  - vendor/local/include/zsock.h
187
181
  - vendor/local/include/zsock_option.inc
188
- - vendor/local/include/zsocket.h
189
- - vendor/local/include/zsockopt.h
190
182
  - vendor/local/include/zstr.h
191
183
  - vendor/local/include/zsys.h
192
- - vendor/local/include/zthread.h
193
184
  - vendor/local/include/zuuid.h
194
185
  - vendor/local/lib/libczmq.dll.a
195
186
  - vendor/local/lib/liblibzmq.dll.a
@@ -1,88 +0,0 @@
1
- /* =========================================================================
2
- zauth_v2 - authentication for ZeroMQ servers (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 __ZAUTH_V2_H_INCLUDED__
15
- #define __ZAUTH_V2_H_INCLUDED__
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- // @interface
22
- #ifndef CURVE_ALLOW_ANY
23
- # define CURVE_ALLOW_ANY "*"
24
- #endif
25
-
26
- // Constructor
27
- // Install authentication for the specified context. Returns a new zauth
28
- // object that you can use to configure authentication. Note that until you
29
- // add policies, all incoming NULL connections are allowed (classic ZeroMQ
30
- // behaviour), and all PLAIN and CURVE connections are denied. If there was
31
- // an error during initialization, returns NULL.
32
- CZMQ_EXPORT zauth_t *
33
- zauth_new (zctx_t *ctx);
34
-
35
- // Destructor
36
- CZMQ_EXPORT void
37
- zauth_destroy (zauth_t **self_p);
38
-
39
- // Allow (whitelist) a single IP address. For NULL, all clients from this
40
- // address will be accepted. For PLAIN and CURVE, they will be allowed to
41
- // continue with authentication. You can call this method multiple times
42
- // to whitelist multiple IP addresses. If you whitelist a single address,
43
- // any non-whitelisted addresses are treated as blacklisted.
44
- CZMQ_EXPORT void
45
- zauth_allow (zauth_t *self, const char *address);
46
-
47
- // Deny (blacklist) a single IP address. For all security mechanisms, this
48
- // rejects the connection without any further authentication. Use either a
49
- // whitelist, or a blacklist, not not both. If you define both a whitelist
50
- // and a blacklist, only the whitelist takes effect.
51
- CZMQ_EXPORT void
52
- zauth_deny (zauth_t *self, const char *address);
53
-
54
- // Configure PLAIN authentication for a given domain. PLAIN authentication
55
- // uses a plain-text password file. To cover all domains, use "*". You can
56
- // modify the password file at any time; it is reloaded automatically.
57
- CZMQ_EXPORT void
58
- zauth_configure_plain (zauth_t *self, const char *domain, const char *filename);
59
-
60
- // Configure CURVE authentication for a given domain. CURVE authentication
61
- // uses a directory that holds all public client certificates, i.e. their
62
- // public keys. The certificates must be in zcert_save () format. To cover
63
- // all domains, use "*". You can add and remove certificates in that
64
- // directory at any time. To allow all client keys without checking, specify
65
- // CURVE_ALLOW_ANY for the location.
66
- CZMQ_EXPORT void
67
- zauth_configure_curve (zauth_t *self, const char *domain, const char *location);
68
-
69
- // Configure GSSAPI authentication for a given domain. GSSAPI authentication
70
- // uses an underlying mechanism (usually Kerberos) to establish a secure
71
- // context and perform mutual authentication. To cover all domains, use "*".
72
- CZMQ_EXPORT void
73
- zauth_configure_gssapi (zauth_t *self, char *domain);
74
-
75
- // Enable verbose tracing of commands and activity
76
- CZMQ_EXPORT void
77
- zauth_set_verbose (zauth_t *self, bool verbose);
78
-
79
- // Selftest
80
- CZMQ_EXPORT void
81
- zauth_v2_test (bool verbose);
82
- // @end
83
-
84
- #ifdef __cplusplus
85
- }
86
- #endif
87
-
88
- #endif
@@ -1,75 +0,0 @@
1
- /* =========================================================================
2
- zbeacon - LAN discovery and presence (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 __ZBEACON_V2_H_INCLUDED__
15
- #define __ZBEACON_V2_H_INCLUDED__
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- // @interface
22
- // Create a new beacon on a certain UDP port. If the system does not
23
- // support UDP broadcasts (lacking a useful interface), returns NULL.
24
- // To force the beacon to operate on a given port, set the environment
25
- // variable ZSYS_INTERFACE, or call zsys_set_interface() beforehand.
26
- // If you are using the new zsock API then pass NULL as the ctx here.
27
- CZMQ_EXPORT zbeacon_t *
28
- zbeacon_new (zctx_t *ctx, int port_nbr);
29
-
30
- // Destroy a beacon
31
- CZMQ_EXPORT void
32
- zbeacon_destroy (zbeacon_t **self_p);
33
-
34
- // Return our own IP address as printable string
35
- CZMQ_EXPORT char *
36
- zbeacon_hostname (zbeacon_t *self);
37
-
38
- // Set broadcast interval in milliseconds (default is 1000 msec)
39
- CZMQ_EXPORT void
40
- zbeacon_set_interval (zbeacon_t *self, int interval);
41
-
42
- // Filter out any beacon that looks exactly like ours
43
- CZMQ_EXPORT void
44
- zbeacon_noecho (zbeacon_t *self);
45
-
46
- // Start broadcasting beacon to peers at the specified interval
47
- CZMQ_EXPORT void
48
- zbeacon_publish (zbeacon_t *self, byte *transmit, size_t size);
49
-
50
- // Stop broadcasting beacons
51
- CZMQ_EXPORT void
52
- zbeacon_silence (zbeacon_t *self);
53
-
54
- // Start listening to other peers; zero-sized filter means get everything
55
- CZMQ_EXPORT void
56
- zbeacon_subscribe (zbeacon_t *self, byte *filter, size_t size);
57
-
58
- // Stop listening to other peers
59
- CZMQ_EXPORT void
60
- zbeacon_unsubscribe (zbeacon_t *self);
61
-
62
- // Get beacon ZeroMQ socket, for polling or receiving messages
63
- CZMQ_EXPORT void *
64
- zbeacon_socket (zbeacon_t *self);
65
-
66
- // Self test of this class
67
- CZMQ_EXPORT void
68
- zbeacon_v2_test (bool verbose);
69
- // @end
70
-
71
- #ifdef __cplusplus
72
- }
73
- #endif
74
-
75
- #endif
@@ -1,107 +0,0 @@
1
- /* =========================================================================
2
- zctx - working with 0MQ contexts
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 __ZCTX_H_INCLUDED__
15
- #define __ZCTX_H_INCLUDED__
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
-
22
- // @interface
23
- // Create new context, returns context object, replaces zmq_init
24
- CZMQ_EXPORT zctx_t *
25
- zctx_new (void);
26
-
27
- // Destroy context and all sockets in it, replaces zmq_term
28
- CZMQ_EXPORT void
29
- zctx_destroy (zctx_t **self_p);
30
-
31
- // Create new shadow context, returns context object
32
- CZMQ_EXPORT zctx_t *
33
- zctx_shadow (zctx_t *self);
34
- // @end
35
-
36
- // Create a new context by shadowing a plain zmq context
37
- CZMQ_EXPORT zctx_t *
38
- zctx_shadow_zmq_ctx (void *zmqctx);
39
-
40
- // @interface
41
- // Raise default I/O threads from 1, for crazy heavy applications
42
- // The rule of thumb is one I/O thread per gigabyte of traffic in
43
- // or out. Call this method before creating any sockets on the context,
44
- // or calling zctx_shadow, or the setting will have no effect.
45
- CZMQ_EXPORT void
46
- zctx_set_iothreads (zctx_t *self, int iothreads);
47
-
48
- // Set msecs to flush sockets when closing them, see the ZMQ_LINGER
49
- // man page section for more details. By default, set to zero, so
50
- // any in-transit messages are discarded when you destroy a socket or
51
- // a context.
52
- CZMQ_EXPORT void
53
- zctx_set_linger (zctx_t *self, int linger);
54
-
55
- // Set initial high-water mark for inter-thread pipe sockets. Note that
56
- // this setting is separate from the default for normal sockets. You
57
- // should change the default for pipe sockets *with care*. Too low values
58
- // will cause blocked threads, and an infinite setting can cause memory
59
- // exhaustion. The default, no matter the underlying ZeroMQ version, is
60
- // 1,000.
61
- CZMQ_EXPORT void
62
- zctx_set_pipehwm (zctx_t *self, int pipehwm);
63
-
64
- // Set initial send HWM for all new normal sockets created in context.
65
- // You can set this per-socket after the socket is created.
66
- // The default, no matter the underlying ZeroMQ version, is 1,000.
67
- CZMQ_EXPORT void
68
- zctx_set_sndhwm (zctx_t *self, int sndhwm);
69
-
70
- // Set initial receive HWM for all new normal sockets created in context.
71
- // You can set this per-socket after the socket is created.
72
- // The default, no matter the underlying ZeroMQ version, is 1,000.
73
- CZMQ_EXPORT void
74
- zctx_set_rcvhwm (zctx_t *self, int rcvhwm);
75
-
76
- // Return low-level 0MQ context object, will be NULL before first socket
77
- // is created. Use with care.
78
- CZMQ_EXPORT void *
79
- zctx_underlying (zctx_t *self);
80
-
81
- // Self test of this class
82
- CZMQ_EXPORT void
83
- zctx_test (bool verbose);
84
- // @end
85
-
86
- // Create socket within this context, for CZMQ use only
87
- void *
88
- zctx__socket_new (zctx_t *self, int type);
89
-
90
- // Create pipe socket within this context, for CZMQ use only
91
- void *
92
- zctx__socket_pipe (zctx_t *self);
93
-
94
- // Destroy socket within this context, for CZMQ use only
95
- void
96
- zctx__socket_destroy (zctx_t *self, void *socket);
97
-
98
- // Initialize the low-level 0MQ context object, for CZMQ use only
99
- void
100
- zctx__initialize_underlying(zctx_t *self);
101
- // @end
102
-
103
- #ifdef __cplusplus
104
- }
105
- #endif
106
-
107
- #endif
@@ -1,56 +0,0 @@
1
- /* =========================================================================
2
- zmonitor_v2 - socket event monitor (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 __ZMONITOR_V2_H_INCLUDED__
15
- #define __ZMONITOR_V2_H_INCLUDED__
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- // @interface
22
- // This code needs backporting to work with ZMQ v3.2
23
- #if (ZMQ_VERSION_MAJOR == 4)
24
-
25
- // Create a new socket monitor
26
- CZMQ_EXPORT zmonitor_t *
27
- zmonitor_new (zctx_t *ctx, void *socket, int events);
28
-
29
- // Destroy a socket monitor
30
- CZMQ_EXPORT void
31
- zmonitor_destroy (zmonitor_t **self_p);
32
-
33
- // Receive a status message from the monitor; if no message arrives within
34
- // 500 msec, or the call was interrupted, returns NULL.
35
- CZMQ_EXPORT zmsg_t *
36
- zmonitor_recv (zmonitor_t *self);
37
-
38
- // Get the ZeroMQ socket, for polling
39
- CZMQ_EXPORT void *
40
- zmonitor_socket (zmonitor_t *self);
41
-
42
- // Enable verbose tracing of commands and activity
43
- CZMQ_EXPORT void
44
- zmonitor_set_verbose (zmonitor_t *self, bool verbose);
45
- #endif // ZeroMQ 4.0 or later
46
-
47
- // Self test of this class
48
- CZMQ_EXPORT void
49
- zmonitor_v2_test (bool verbose);
50
- // @end
51
-
52
- #ifdef __cplusplus
53
- }
54
- #endif
55
-
56
- #endif
@@ -1,55 +0,0 @@
1
- /* =========================================================================
2
- zmutex - working with mutexes
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 __ZMUTEX_H_INCLUDED__
15
- #define __ZMUTEX_H_INCLUDED__
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- // @interface
22
- // This is a deprecated class, and will be removed over time. It is
23
- // provided in stable builds to support old applications. You should
24
- // stop using this class, and migrate any code that is still using it.
25
-
26
- // Create a new mutex container
27
- CZMQ_EXPORT zmutex_t *
28
- zmutex_new (void);
29
-
30
- // Destroy a mutex container
31
- CZMQ_EXPORT void
32
- zmutex_destroy (zmutex_t **self_p);
33
-
34
- // Lock mutex
35
- CZMQ_EXPORT void
36
- zmutex_lock (zmutex_t *self);
37
-
38
- // Unlock mutex
39
- CZMQ_EXPORT void
40
- zmutex_unlock (zmutex_t *self);
41
-
42
- // Try to lock mutex
43
- CZMQ_EXPORT int
44
- zmutex_try_lock (zmutex_t *self);
45
-
46
- // Self test of this class.
47
- CZMQ_EXPORT void
48
- zmutex_test (bool verbose);
49
- // @end
50
-
51
- #ifdef __cplusplus
52
- }
53
- #endif
54
-
55
- #endif