czmq-ffi-gen 0.13.0-x64-mingw32 → 0.14.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +13 -0
  3. data/lib/czmq-ffi-gen/czmq/ffi.rb +224 -698
  4. data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +40 -7
  5. data/lib/czmq-ffi-gen/czmq/ffi/zargs.rb +259 -0
  6. data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +3 -3
  7. data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +15 -6
  8. data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +25 -11
  9. data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +18 -18
  10. data/lib/czmq-ffi-gen/czmq/ffi/zclock.rb +6 -6
  11. data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +27 -17
  12. data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +4 -4
  13. data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +36 -36
  14. data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +1 -1
  15. data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +27 -19
  16. data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +22 -21
  17. data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +54 -54
  18. data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +82 -80
  19. data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +30 -0
  20. data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +30 -30
  21. data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +44 -44
  22. data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +39 -39
  23. data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +46 -46
  24. data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +16 -16
  25. data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +237 -34
  26. data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +1201 -973
  27. data/lib/czmq-ffi-gen/czmq/ffi/zstr.rb +58 -19
  28. data/lib/czmq-ffi-gen/czmq/ffi/zsys.rb +836 -0
  29. data/lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb +6 -6
  30. data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +10 -10
  31. data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +4 -4
  32. data/lib/czmq-ffi-gen/gem_version.rb +1 -1
  33. data/lib/czmq-ffi-gen/vendor.rb +9 -1
  34. data/vendor/local/bin/inproc_lat.exe +0 -0
  35. data/vendor/local/bin/inproc_thr.exe +0 -0
  36. data/vendor/local/bin/libczmq.dll +0 -0
  37. data/vendor/local/bin/libzmq.dll +0 -0
  38. data/vendor/local/bin/local_lat.exe +0 -0
  39. data/vendor/local/bin/local_thr.exe +0 -0
  40. data/vendor/local/bin/remote_lat.exe +0 -0
  41. data/vendor/local/bin/remote_thr.exe +0 -0
  42. data/vendor/local/bin/zmakecert.exe +0 -0
  43. data/vendor/local/include/czmq_library.h +18 -9
  44. data/vendor/local/include/czmq_prelude.h +104 -16
  45. data/vendor/local/include/zactor.h +25 -7
  46. data/vendor/local/include/zarmour.h +3 -3
  47. data/vendor/local/include/zcert.h +11 -6
  48. data/vendor/local/include/zcertstore.h +18 -9
  49. data/vendor/local/include/zchunk.h +18 -18
  50. data/vendor/local/include/zclock.h +6 -6
  51. data/vendor/local/include/zconfig.h +25 -16
  52. data/vendor/local/include/zdigest.h +4 -4
  53. data/vendor/local/include/zdir.h +36 -36
  54. data/vendor/local/include/zdir_patch.h +1 -1
  55. data/vendor/local/include/zfile.h +27 -19
  56. data/vendor/local/include/zframe.h +22 -21
  57. data/vendor/local/include/zgossip.h +5 -5
  58. data/vendor/local/include/zgossip_engine.inc +103 -22
  59. data/vendor/local/include/zgossip_msg.h +28 -30
  60. data/vendor/local/include/zhash.h +53 -53
  61. data/vendor/local/include/zhashx.h +75 -73
  62. data/vendor/local/include/ziflist.h +22 -1
  63. data/vendor/local/include/zlist.h +28 -28
  64. data/vendor/local/include/zlistx.h +41 -41
  65. data/vendor/local/include/zloop.h +36 -36
  66. data/vendor/local/include/zmsg.h +46 -46
  67. data/vendor/local/include/zpoller.h +16 -16
  68. data/vendor/local/include/zsock.h +414 -364
  69. data/vendor/local/include/zsock_option.inc +234 -1062
  70. data/vendor/local/include/zstr.h +44 -19
  71. data/vendor/local/include/zsys.h +63 -19
  72. data/vendor/local/include/zuuid.h +4 -4
  73. data/vendor/local/lib/libczmq.dll.a +0 -0
  74. data/vendor/local/lib/liblibzmq.dll.a +0 -0
  75. data/vendor/local/lib/pkgconfig/libczmq.pc +1 -1
  76. metadata +6 -3
@@ -26,53 +26,53 @@ extern "C" {
26
26
  // This class has draft methods, which may change over time. They are not
27
27
  // in stable releases, by default. Use --enable-drafts to enable.
28
28
  // Receive C string from socket. Caller must free returned string using
29
- // zstr_free(). Returns NULL if the context is being terminated or the
30
- // process was interrupted.
29
+ // zstr_free(). Returns NULL if the context is being terminated or the
30
+ // process was interrupted.
31
31
  // Caller owns return value and must destroy it when done.
32
32
  CZMQ_EXPORT char *
33
33
  zstr_recv (void *source);
34
34
 
35
- // Receive a series of strings (until NULL) from multipart data.
36
- // Each string is allocated and filled with string data; if there
37
- // are not enough frames, unallocated strings are set to NULL.
38
- // Returns -1 if the message could not be read, else returns the
35
+ // Receive a series of strings (until NULL) from multipart data.
36
+ // Each string is allocated and filled with string data; if there
37
+ // are not enough frames, unallocated strings are set to NULL.
38
+ // Returns -1 if the message could not be read, else returns the
39
39
  // number of strings filled, zero or more. Free each returned string
40
- // using zstr_free(). If not enough strings are provided, remaining
41
- // multipart frames in the message are dropped.
40
+ // using zstr_free(). If not enough strings are provided, remaining
41
+ // multipart frames in the message are dropped.
42
42
  CZMQ_EXPORT int
43
43
  zstr_recvx (void *source, char **string_p, ...);
44
44
 
45
- // Send a C string to a socket, as a frame. The string is sent without
45
+ // Send a C string to a socket, as a frame. The string is sent without
46
46
  // trailing null byte; to read this you can use zstr_recv, or a similar
47
- // method that adds a null terminator on the received string. String
48
- // may be NULL, which is sent as "".
47
+ // method that adds a null terminator on the received string. String
48
+ // may be NULL, which is sent as "".
49
49
  CZMQ_EXPORT int
50
50
  zstr_send (void *dest, const char *string);
51
51
 
52
52
  // Send a C string to a socket, as zstr_send(), with a MORE flag, so that
53
- // you can send further strings in the same multi-part message.
53
+ // you can send further strings in the same multi-part message.
54
54
  CZMQ_EXPORT int
55
55
  zstr_sendm (void *dest, const char *string);
56
56
 
57
57
  // Send a formatted string to a socket. Note that you should NOT use
58
- // user-supplied strings in the format (they may contain '%' which
59
- // will create security holes).
58
+ // user-supplied strings in the format (they may contain '%' which
59
+ // will create security holes).
60
60
  CZMQ_EXPORT int
61
61
  zstr_sendf (void *dest, const char *format, ...) CHECK_PRINTF (2);
62
62
 
63
- // Send a formatted string to a socket, as for zstr_sendf(), with a
63
+ // Send a formatted string to a socket, as for zstr_sendf(), with a
64
64
  // MORE flag, so that you can send further strings in the same multi-part
65
- // message.
65
+ // message.
66
66
  CZMQ_EXPORT int
67
67
  zstr_sendfm (void *dest, const char *format, ...) CHECK_PRINTF (2);
68
68
 
69
- // Send a series of strings (until NULL) as multipart data
69
+ // Send a series of strings (until NULL) as multipart data
70
70
  // Returns 0 if the strings could be sent OK, or -1 on error.
71
71
  CZMQ_EXPORT int
72
72
  zstr_sendx (void *dest, const char *string, ...);
73
73
 
74
74
  // Free a provided string, and nullify the parent pointer. Safe to call on
75
- // a null pointer.
75
+ // a null pointer.
76
76
  CZMQ_EXPORT void
77
77
  zstr_free (char **string_p);
78
78
 
@@ -81,9 +81,34 @@ CZMQ_EXPORT void
81
81
  zstr_test (bool verbose);
82
82
 
83
83
  #ifdef CZMQ_BUILD_DRAFT_API
84
+ // *** Draft method, for development use, may change without warning ***
85
+ // De-compress and receive C string from socket, received as a message
86
+ // with two frames: size of the uncompressed string, and the string itself.
87
+ // Caller must free returned string using zstr_free(). Returns NULL if the
88
+ // context is being terminated or the process was interrupted.
89
+ // Caller owns return value and must destroy it when done.
90
+ CZMQ_EXPORT char *
91
+ zstr_recv_compress (void *source);
92
+
93
+ // *** Draft method, for development use, may change without warning ***
94
+ // Compress and send a C string to a socket, as a message with two frames:
95
+ // size of the uncompressed string, and the string itself. The string is
96
+ // sent without trailing null byte; to read this you can use
97
+ // zstr_recv_compress, or a similar method that de-compresses and adds a
98
+ // null terminator on the received string.
99
+ CZMQ_EXPORT int
100
+ zstr_send_compress (void *dest, const char *string);
101
+
102
+ // *** Draft method, for development use, may change without warning ***
103
+ // Compress and send a C string to a socket, as zstr_send_compress(),
104
+ // with a MORE flag, so that you can send further strings in the same
105
+ // multi-part message.
106
+ CZMQ_EXPORT int
107
+ zstr_sendm_compress (void *dest, const char *string);
108
+
84
109
  // *** Draft method, for development use, may change without warning ***
85
110
  // Accepts a void pointer and returns a fresh character string. If source
86
- // is null, returns an empty string.
111
+ // is null, returns an empty string.
87
112
  // Caller owns return value and must destroy it when done.
88
113
  CZMQ_EXPORT char *
89
114
  zstr_str (void *source);
@@ -18,11 +18,18 @@
18
18
  extern "C" {
19
19
  #endif
20
20
 
21
- // @interface
22
21
  #define UDP_FRAME_MAX 255 // Max size of UDP frame
23
22
 
24
- // Callback for interrupt signal handler
25
- typedef void (zsys_handler_fn) (int signal_value);
23
+ // @warning THE FOLLOWING @INTERFACE BLOCK IS AUTO-GENERATED BY ZPROJECT
24
+ // @warning Please edit the model at "api/zsys.api" to make changes.
25
+ // @interface
26
+ // This is a stable class, and may not change except for emergencies. It
27
+ // is provided in stable builds.
28
+ // This class has draft methods, which may change over time. They are not
29
+ // in stable releases, by default. Use --enable-drafts to enable.
30
+ // Callback for interrupt signal handler
31
+ typedef void (zsys_handler_fn) (
32
+ int signal_value);
26
33
 
27
34
  // Initialize CZMQ zsys layer; this happens automatically when you create
28
35
  // a socket or an actor; however this call lets you force initialization
@@ -57,13 +64,13 @@ CZMQ_EXPORT int
57
64
  // *** This is for CZMQ internal use only and may change arbitrarily ***
58
65
  CZMQ_EXPORT char *
59
66
  zsys_sockname (int socktype);
60
-
67
+
61
68
  // Create a pipe, which consists of two PAIR sockets connected over inproc.
62
69
  // The pipe is configured to use the zsys_pipehwm setting. Returns the
63
70
  // frontend socket successful, NULL if failed.
64
71
  CZMQ_EXPORT zsock_t *
65
72
  zsys_create_pipe (zsock_t **backend_p);
66
-
73
+
67
74
  // Set interrupt handler; this saves the default handlers so that a
68
75
  // zsys_handler_reset () can restore them. If you call this multiple times
69
76
  // then the last handler will take affect. If handler_fn is NULL, disables
@@ -77,6 +84,7 @@ CZMQ_EXPORT void
77
84
 
78
85
  // Set default interrupt handler, so Ctrl-C or SIGTERM will set
79
86
  // zsys_interrupted. Idempotent; safe to call multiple times.
87
+ // Can be supressed by ZSYS_SIGHANDLER=false
80
88
  // *** This is for CZMQ internal use only and may change arbitrarily ***
81
89
  CZMQ_EXPORT void
82
90
  zsys_catch_interrupts (void);
@@ -85,10 +93,6 @@ CZMQ_EXPORT void
85
93
  CZMQ_EXPORT bool
86
94
  zsys_file_exists (const char *filename);
87
95
 
88
- // Return size of file, or -1 if not found
89
- CZMQ_EXPORT ssize_t
90
- zsys_file_size (const char *filename);
91
-
92
96
  // Return file modification time. Returns 0 if the file does not exist.
93
97
  CZMQ_EXPORT time_t
94
98
  zsys_file_modified (const char *filename);
@@ -107,7 +111,7 @@ CZMQ_EXPORT int
107
111
  CZMQ_EXPORT bool
108
112
  zsys_file_stable (const char *filename);
109
113
 
110
- // Create a file path if it doesn't exist. The file path is treated as a
114
+ // Create a file path if it doesn't exist. The file path is treated as
111
115
  // printf format.
112
116
  CZMQ_EXPORT int
113
117
  zsys_dir_create (const char *pathname, ...);
@@ -166,7 +170,8 @@ CZMQ_EXPORT int
166
170
  zsys_udp_send (SOCKET udpsock, zframe_t *frame, inaddr_t *address, int addrlen);
167
171
 
168
172
  // Receive zframe from UDP socket, and set address of peer that sent it
169
- // The peername must be a char [INET_ADDRSTRLEN] array.
173
+ // The peername must be a char [INET_ADDRSTRLEN] array if IPv6 is disabled or
174
+ // NI_MAXHOST if it's enabled. Returns NULL when failing to get peer address.
170
175
  // *** This is for CZMQ internal use only and may change arbitrarily ***
171
176
  CZMQ_EXPORT zframe_t *
172
177
  zsys_udp_recv (SOCKET udpsock, char *peername, int peerlen);
@@ -212,6 +217,22 @@ CZMQ_EXPORT bool
212
217
  CZMQ_EXPORT void
213
218
  zsys_set_io_threads (size_t io_threads);
214
219
 
220
+ // Configure the scheduling policy of the ZMQ context thread pool.
221
+ // Not available on Windows. See the sched_setscheduler man page or sched.h
222
+ // for more information. If the environment variable ZSYS_THREAD_SCHED_POLICY
223
+ // is defined, that provides the default.
224
+ // Note that this method is valid only before any socket is created.
225
+ CZMQ_EXPORT void
226
+ zsys_set_thread_sched_policy (int policy);
227
+
228
+ // Configure the scheduling priority of the ZMQ context thread pool.
229
+ // Not available on Windows. See the sched_setscheduler man page or sched.h
230
+ // for more information. If the environment variable ZSYS_THREAD_PRIORITY is
231
+ // defined, that provides the default.
232
+ // Note that this method is valid only before any socket is created.
233
+ CZMQ_EXPORT void
234
+ zsys_set_thread_priority (int priority);
235
+
215
236
  // Configure the number of sockets that ZeroMQ will allow. The default
216
237
  // is 1024. The actual limit depends on the system, and you can query it
217
238
  // by using zsys_socket_limit (). A value of zero means "maximum".
@@ -341,7 +362,7 @@ CZMQ_EXPORT void
341
362
  // traffic (it may still be sent to the system facility).
342
363
  CZMQ_EXPORT void
343
364
  zsys_set_logstream (FILE *stream);
344
-
365
+
345
366
  // Sends log output to a PUB socket bound to the specified endpoint. To
346
367
  // collect such log output, create a SUB socket, subscribe to the traffic
347
368
  // you care about, and connect to the endpoint. Log traffic is sent as a
@@ -356,7 +377,7 @@ CZMQ_EXPORT void
356
377
  // event log on Windows). By default this is disabled.
357
378
  CZMQ_EXPORT void
358
379
  zsys_set_logsystem (bool logsystem);
359
-
380
+
360
381
  // Log error condition - highest priority
361
382
  CZMQ_EXPORT void
362
383
  zsys_error (const char *format, ...);
@@ -364,29 +385,52 @@ CZMQ_EXPORT void
364
385
  // Log warning condition - high priority
365
386
  CZMQ_EXPORT void
366
387
  zsys_warning (const char *format, ...);
367
-
388
+
368
389
  // Log normal, but significant, condition - normal priority
369
390
  CZMQ_EXPORT void
370
391
  zsys_notice (const char *format, ...);
371
-
392
+
372
393
  // Log informational message - low priority
373
394
  CZMQ_EXPORT void
374
395
  zsys_info (const char *format, ...);
375
-
396
+
376
397
  // Log debug-level message - lowest priority
377
398
  CZMQ_EXPORT void
378
399
  zsys_debug (const char *format, ...);
379
400
 
380
- // Self test of this class
401
+ // Self test of this class.
381
402
  CZMQ_EXPORT void
382
403
  zsys_test (bool verbose);
383
-
404
+
405
+ #ifdef CZMQ_BUILD_DRAFT_API
406
+ // *** Draft method, for development use, may change without warning ***
407
+ // Configure the threshold value of filesystem object age per st_mtime
408
+ // that should elapse until we consider that object "stable" at the
409
+ // current zclock_time() moment.
410
+ // The default is S_DEFAULT_ZSYS_FILE_STABLE_AGE_MSEC defined in zsys.c
411
+ // which generally depends on host OS, with fallback value of 5000.
412
+ CZMQ_EXPORT void
413
+ zsys_set_file_stable_age_msec (int64_t file_stable_age_msec);
414
+
415
+ // *** Draft method, for development use, may change without warning ***
416
+ // Return current threshold value of file stable age in msec.
417
+ // This can be used in code that chooses to wait for this timeout
418
+ // before testing if a filesystem object is "stable" or not.
419
+ CZMQ_EXPORT int64_t
420
+ zsys_file_stable_age_msec (void);
421
+
422
+ #endif // CZMQ_BUILD_DRAFT_API
423
+ // @end
424
+
425
+ // Return size of file, or -1 if not found
426
+ CZMQ_EXPORT ssize_t
427
+ zsys_file_size (const char *filename);
428
+
384
429
  // Global signal indicator, TRUE when user presses Ctrl-C or the process
385
430
  // gets a SIGTERM signal.
386
431
  CZMQ_EXPORT extern volatile int zsys_interrupted;
387
432
  // Deprecated name for this variable
388
433
  CZMQ_EXPORT extern volatile int zctx_interrupted;
389
- // @end
390
434
 
391
435
  #ifdef __cplusplus
392
436
  }
@@ -43,7 +43,7 @@ CZMQ_EXPORT void
43
43
  zuuid_set (zuuid_t *self, const byte *source);
44
44
 
45
45
  // Set UUID to new supplied string value skipping '-' and '{' '}'
46
- // optional delimiters. Return 0 if OK, else returns -1.
46
+ // optional delimiters. Return 0 if OK, else returns -1.
47
47
  CZMQ_EXPORT int
48
48
  zuuid_set_str (zuuid_t *self, const char *source);
49
49
 
@@ -60,8 +60,8 @@ CZMQ_EXPORT const char *
60
60
  zuuid_str (zuuid_t *self);
61
61
 
62
62
  // Return UUID in the canonical string format: 8-4-4-4-12, in lower
63
- // case. Caller does not modify or free returned value. See
64
- // http://en.wikipedia.org/wiki/Universally_unique_identifier
63
+ // case. Caller does not modify or free returned value. See
64
+ // http://en.wikipedia.org/wiki/Universally_unique_identifier
65
65
  CZMQ_EXPORT const char *
66
66
  zuuid_str_canonical (zuuid_t *self);
67
67
 
@@ -78,7 +78,7 @@ CZMQ_EXPORT bool
78
78
  zuuid_neq (zuuid_t *self, const byte *compare);
79
79
 
80
80
  // Make copy of UUID object; if uuid is null, or memory was exhausted,
81
- // returns null.
81
+ // returns null.
82
82
  CZMQ_EXPORT zuuid_t *
83
83
  zuuid_dup (zuuid_t *self);
84
84
 
@@ -12,7 +12,7 @@ Name: libczmq
12
12
  Description: The high-level C binding for 0MQ
13
13
  Version: 4.0.3
14
14
 
15
- Requires:libzmq
15
+ Requires:
16
16
 
17
17
  Libs: -L${libdir} -lczmq
18
18
  Cflags: -I${includedir}
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.13.0
4
+ version: 0.14.1
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: 2017-01-01 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -96,6 +96,7 @@ files:
96
96
  - lib/czmq-ffi-gen/czmq/ffi.rb
97
97
  - lib/czmq-ffi-gen/czmq/ffi/version.rb
98
98
  - lib/czmq-ffi-gen/czmq/ffi/zactor.rb
99
+ - lib/czmq-ffi-gen/czmq/ffi/zargs.rb
99
100
  - lib/czmq-ffi-gen/czmq/ffi/zarmour.rb
100
101
  - lib/czmq-ffi-gen/czmq/ffi/zcert.rb
101
102
  - lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb
@@ -118,6 +119,7 @@ files:
118
119
  - lib/czmq-ffi-gen/czmq/ffi/zproc.rb
119
120
  - lib/czmq-ffi-gen/czmq/ffi/zsock.rb
120
121
  - lib/czmq-ffi-gen/czmq/ffi/zstr.rb
122
+ - lib/czmq-ffi-gen/czmq/ffi/zsys.rb
121
123
  - lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb
122
124
  - lib/czmq-ffi-gen/czmq/ffi/ztrie.rb
123
125
  - lib/czmq-ffi-gen/czmq/ffi/zuuid.rb
@@ -138,6 +140,7 @@ files:
138
140
  - vendor/local/bin/local_thr.exe
139
141
  - vendor/local/bin/remote_lat.exe
140
142
  - vendor/local/bin/remote_thr.exe
143
+ - vendor/local/bin/zmakecert.exe
141
144
  - vendor/local/include/czmq.h
142
145
  - vendor/local/include/czmq_library.h
143
146
  - vendor/local/include/czmq_prelude.h
@@ -211,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
214
  version: '0'
212
215
  requirements: []
213
216
  rubyforge_project:
214
- rubygems_version: 2.5.1
217
+ rubygems_version: 2.6.8
215
218
  signing_key:
216
219
  specification_version: 4
217
220
  summary: The low-level Ruby binding for CZMQ (generated using zproject)