Skip to content

Commit 8a86530

Browse files
authored
Merge pull request #684 from sappo/master
Regen and release preperation
2 parents e08c307 + 0ee139f commit 8a86530

File tree

4 files changed

+200
-3
lines changed

4 files changed

+200
-3
lines changed

NEWS

+27-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
1-
Zyre version 2.0.1 stable, released on 20xx/xx/xx
1+
Zyre version 2.0.1 stable, released on 2021/01/22
22
=================================================
33

4+
* New features in DRAFT state
5+
6+
- Leader election, allows to elect a group leader between participating peers
7+
8+
* The following new APIs have been added to the Zyre class:
9+
10+
- zyre_set_silent_timeout (zyre_t *self, int interval)
11+
12+
* The following new DRAFT APIs have been added to the Zyre class:
13+
14+
- zyre_set_beacon_peer_port (zyre_t *self, int port_nbr)
15+
- zyre_set_contest_in_group (zyre_t *self, const char *group)
16+
- zyre_set_advertised_endpoint (zyre_t *self, const char *group)
17+
- zyre_set_zcert (zyre_t *self, zcert_t *zcert_t)
18+
- zyre_set_zap_domain (zyre_t *self, const char *domain)
19+
- zyre_gossip_connect_curve (zyre_t *self, const)
20+
- zyre_gossip_unpublish (zyre_t *self, const char *node)
21+
- zyre_require_peer (zyre_t *self, const char *uuid, const char *endpoint, const char *public_key)
22+
- zyre_socket_zmq (zyre_t *self)
23+
24+
* The following new DRAFT symbols have been added:
25+
26+
- #define ZAP_DOMAIN_DEFAULT "global" # Default ZAP domain (auth)
27+
28+
* Many bug fixes. See git log on https://github.com/zeromq/zyre/commits/master
29+
for more information.
430

531
Zyre version 2.0.0 stable, released on 2017/01/20
632
=================================================

bindings/python_cffi/zyre_cffi/cdefs.py

+121-2
Original file line numberDiff line numberDiff line change
@@ -2769,6 +2769,26 @@
27692769
bool
27702770
zsock_has_in (void *self);
27712771
2772+
// Get socket option `priority`.
2773+
// Available from libzmq 4.3.0.
2774+
int
2775+
zsock_priority (void *self);
2776+
2777+
// Set socket option `priority`.
2778+
// Available from libzmq 4.3.0.
2779+
void
2780+
zsock_set_priority (void *self, int priority);
2781+
2782+
// Get socket option `reconnect_stop`.
2783+
// Available from libzmq 4.3.0.
2784+
int
2785+
zsock_reconnect_stop (void *self);
2786+
2787+
// Set socket option `reconnect_stop`.
2788+
// Available from libzmq 4.3.0.
2789+
void
2790+
zsock_set_reconnect_stop (void *self, int reconnect_stop);
2791+
27722792
// Set socket option `only_first_subscribe`.
27732793
// Available from libzmq 4.3.0.
27742794
void
@@ -3832,7 +3852,7 @@
38323852
38333853
// Format a string using printf formatting, returning a freshly allocated
38343854
// buffer. If there was insufficient memory, returns NULL. Free the returned
3835-
// string using zstr_free(). The hinted version allows to optimize by using
3855+
// string using zstr_free(). The hinted version allows one to optimize by using
38363856
// a larger starting buffer size (known to/assumed by the developer) and so
38373857
// avoid reallocations.
38383858
char *
@@ -3944,6 +3964,18 @@
39443964
int
39453965
zsys_thread_name_prefix (void);
39463966
3967+
// Configure the numeric prefix to each thread created for the internal
3968+
// context's thread pool. This option is only supported on Linux.
3969+
// If the environment variable ZSYS_THREAD_NAME_PREFIX_STR is defined, that
3970+
// provides the default.
3971+
// Note that this method is valid only before any socket is created.
3972+
void
3973+
zsys_set_thread_name_prefix_str (const char *prefix);
3974+
3975+
// Return thread name prefix.
3976+
const char *
3977+
zsys_thread_name_prefix_str (void);
3978+
39473979
// Adds a specific CPU to the affinity list of the ZMQ context thread pool.
39483980
// This option is only supported on Linux.
39493981
// Note that this method is valid only before any socket is created.
@@ -4670,6 +4702,27 @@
46704702
const char *
46714703
zosc_format (zosc_t *self);
46724704
4705+
// Append data to the osc message. The format describes the data that
4706+
// needs to be appended in the message. This essentially relocates all
4707+
// data!
4708+
// The format type tags are as follows:
4709+
// i - 32bit integer
4710+
// h - 64bit integer
4711+
// f - 32bit floating point number (IEEE)
4712+
// d - 64bit (double) floating point number
4713+
// s - string (NULL terminated)
4714+
// t = timetag: an OSC timetag in NTP format (uint64_t)
4715+
// S - symbol
4716+
// c - char
4717+
// m - 4 byte midi packet (8 digits hexadecimal)
4718+
// T - TRUE (no value required)
4719+
// F - FALSE (no value required)
4720+
// N - NIL (no value required)
4721+
// I - Impulse (for triggers) or INFINITUM (no value required)
4722+
// b - binary blob
4723+
int
4724+
zosc_append (zosc_t *self, const char *format, ...);
4725+
46734726
// Retrieve the values provided by the given format. Note that zosc_retr
46744727
// creates the objects and the caller must destroy them when finished.
46754728
// The supplied pointers do not need to be initialized. Returns 0 if
@@ -4699,14 +4752,80 @@
46994752
zosc_t *
47004753
zosc_unpack (zframe_t *frame);
47014754
4702-
// Dump OSC message to stderr, for debugging and tracing.
4755+
// Dump OSC message to stdout, for debugging and tracing.
47034756
void
47044757
zosc_print (zosc_t *self);
47054758
47064759
// Probe the supplied object, and report if it looks like a zosc_t.
47074760
bool
47084761
zosc_is (void *self);
47094762
4763+
// Return a pointer to the item at the head of the OSC data.
4764+
// Sets the given char argument to the type tag of the data.
4765+
// If the message is empty, returns NULL and the sets the
4766+
// given char to NULL.
4767+
const void *
4768+
zosc_first (zosc_t *self, char *type);
4769+
4770+
// Return the next item of the OSC message. If the list is empty, returns
4771+
// NULL. To move to the start of the OSC message call zosc_first ().
4772+
const void *
4773+
zosc_next (zosc_t *self, char *type);
4774+
4775+
// Return a pointer to the item at the tail of the OSC message.
4776+
// Sets the given char argument to the type tag of the data. If
4777+
// the message is empty, returns NULL.
4778+
const void *
4779+
zosc_last (zosc_t *self, char *type);
4780+
4781+
// Set the provided 32 bit integer from value at the current cursor position in the message.
4782+
// If the type tag at the current position does not correspond it will fail and
4783+
// return -1. Returns 0 on success.
4784+
int
4785+
zosc_pop_int32 (zosc_t *self, int *val);
4786+
4787+
// Set the provided 64 bit integer from the value at the current cursor position in the message.
4788+
// If the type tag at the current position does not correspond it will fail and
4789+
// return -1. Returns 0 on success.
4790+
int
4791+
zosc_pop_int64 (zosc_t *self, int64_t *val);
4792+
4793+
// Set the provided float from the value at the current cursor position in the message.
4794+
// If the type tag at the current position does not correspond it will fail and
4795+
// return -1. Returns 0 on success.
4796+
int
4797+
zosc_pop_float (zosc_t *self, float *val);
4798+
4799+
// Set the provided double from the value at the current cursor position in the message.
4800+
// If the type tag at the current position does not correspond it will fail and
4801+
// return -1. Returns 0 on success.
4802+
int
4803+
zosc_pop_double (zosc_t *self, double *val);
4804+
4805+
// Set the provided string from the value at the current cursor position in the message.
4806+
// If the type tag at the current position does not correspond it will fail and
4807+
// return -1. Returns 0 on success. Caller owns the string!
4808+
int
4809+
zosc_pop_string (zosc_t *self, char **val);
4810+
4811+
// Set the provided char from the value at the current cursor position in the message.
4812+
// If the type tag at the current position does not correspond it will fail and
4813+
// return -1. Returns 0 on success.
4814+
int
4815+
zosc_pop_char (zosc_t *self, char *val);
4816+
4817+
// Set the provided boolean from the type tag in the message. Booleans are not represented
4818+
// in the data in the message, only in the type tag. If the type tag at the current
4819+
// position does not correspond it will fail and return -1. Returns 0 on success.
4820+
int
4821+
zosc_pop_bool (zosc_t *self, bool *val);
4822+
4823+
// Set the provided 4 bytes (unsigned 32bit int) from the value at the current
4824+
// cursor position in the message. If the type tag at the current position does
4825+
// not correspond it will fail and return -1. Returns 0 on success.
4826+
int
4827+
zosc_pop_midi (zosc_t *self, uint32_t *val);
4828+
47104829
// Self test of this class.
47114830
void
47124831
zosc_test (bool verbose);

bindings/qt/src/qzsock.cpp

+36
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,42 @@ bool QZsock::hasIn ()
463463
return rv;
464464
}
465465

466+
///
467+
// Get socket option `priority`.
468+
// Available from libzmq 4.3.0.
469+
int QZsock::priority ()
470+
{
471+
int rv = zsock_priority (self);
472+
return rv;
473+
}
474+
475+
///
476+
// Set socket option `priority`.
477+
// Available from libzmq 4.3.0.
478+
void QZsock::setPriority (int priority)
479+
{
480+
zsock_set_priority (self, priority);
481+
482+
}
483+
484+
///
485+
// Get socket option `reconnect_stop`.
486+
// Available from libzmq 4.3.0.
487+
int QZsock::reconnectStop ()
488+
{
489+
int rv = zsock_reconnect_stop (self);
490+
return rv;
491+
}
492+
493+
///
494+
// Set socket option `reconnect_stop`.
495+
// Available from libzmq 4.3.0.
496+
void QZsock::setReconnectStop (int reconnectStop)
497+
{
498+
zsock_set_reconnect_stop (self, reconnectStop);
499+
500+
}
501+
466502
///
467503
// Set socket option `only_first_subscribe`.
468504
// Available from libzmq 4.3.0.

bindings/qt/src/qzsock.h

+16
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,22 @@ class QT_ZYRE_EXPORT QZsock : public QObject
265265
// Check whether the socket has available message to read.
266266
bool hasIn ();
267267

268+
// Get socket option `priority`.
269+
// Available from libzmq 4.3.0.
270+
int priority ();
271+
272+
// Set socket option `priority`.
273+
// Available from libzmq 4.3.0.
274+
void setPriority (int priority);
275+
276+
// Get socket option `reconnect_stop`.
277+
// Available from libzmq 4.3.0.
278+
int reconnectStop ();
279+
280+
// Set socket option `reconnect_stop`.
281+
// Available from libzmq 4.3.0.
282+
void setReconnectStop (int reconnectStop);
283+
268284
// Set socket option `only_first_subscribe`.
269285
// Available from libzmq 4.3.0.
270286
void setOnlyFirstSubscribe (int onlyFirstSubscribe);

0 commit comments

Comments
 (0)