Skip to content

Commit

Permalink
zsocket_bind no longer reuses dynamic ports
Browse files Browse the repository at this point in the history
  • Loading branch information
hintjens committed Oct 27, 2012
1 parent 8ecc6e4 commit 6dcb865
Show file tree
Hide file tree
Showing 15 changed files with 205 additions and 18 deletions.
4 changes: 3 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
CZMQ version 1.3.0 (stable), released on 2012/xx/xx
CZMQ version 1.3.1 (stable), released on 2012/10/27
===================================================

Changes
-------

* See git log.


CZMQ version 1.2.0 (stable), released on 2012/08/06
===================================================
Expand Down
1 change: 1 addition & 0 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ MAN7 = czmq.7 \
zlist.7 \
zloop.7 \
zmsg.7 \
zmutex.7 \
zsocket.7 \
zsockopt.7 \
zstr.7 \
Expand Down
2 changes: 1 addition & 1 deletion doc/zclock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CZMQ_EXPORT void

// Self test of this class
int
zclock_test (Bool verbose);
zclock_test (bool verbose);
----

DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion doc/zctx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ CZMQ_EXPORT void *

// Self test of this class
int
zctx_test (Bool verbose);
zctx_test (bool verbose);

// Global signal indicator, TRUE when user presses Ctrl-C or the process
// gets a SIGTERM signal.
Expand Down
2 changes: 1 addition & 1 deletion doc/zfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CZMQ_EXPORT ssize_t

// Self test of this class
int
zfile_test (Bool verbose);
zfile_test (bool verbose);
----

DESCRIPTION
Expand Down
6 changes: 3 additions & 3 deletions doc/zframe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CZMQ_EXPORT char *
zframe_strdup (zframe_t *self);

// Return TRUE if frame body is equal to string, excluding terminator
CZMQ_EXPORT Bool
CZMQ_EXPORT bool
zframe_streq (zframe_t *self, const char *string);

// Return frame zero copy indicator (1 or 0)
Expand All @@ -78,7 +78,7 @@ CZMQ_EXPORT int

// Return TRUE if two frames have identical size and data
// If either frame is NULL, equality is always false.
CZMQ_EXPORT Bool
CZMQ_EXPORT bool
zframe_eq (zframe_t *self, zframe_t *other);

// Print contents of frame to stderr
Expand All @@ -91,7 +91,7 @@ CZMQ_EXPORT void

// Self test of this class
int
zframe_test (Bool verbose);
zframe_test (bool verbose);
----

DESCRIPTION
Expand Down
6 changes: 5 additions & 1 deletion doc/zhash.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ CZMQ_EXPORT size_t
// Make copy of hash table
CZMQ_EXPORT zhash_t *
zhash_dup (zhash_t *self);

// Return keys for items in table
CZMQ_EXPORT zlist_t *
zhash_keys (zhash_t *self);

// Apply function to each item in the hash table. Items are iterated in no
// defined order. Stops if callback function returns non-zero and returns
Expand Down Expand Up @@ -149,7 +153,7 @@ EXAMPLE
// Check that the queue is robust against random usage
struct {
char name [100];
Bool exists;
bool exists;
} testset [200];
memset (testset, 0, sizeof (testset));
int testmax = 200, testnbr, iteration;
Expand Down
4 changes: 2 additions & 2 deletions doc/zloop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CZMQ_EXPORT int

// Set verbose tracing of reactor on/off
CZMQ_EXPORT void
zloop_set_verbose (zloop_t *self, Bool verbose);
zloop_set_verbose (zloop_t *self, bool verbose);

// Start the reactor. Takes control of the thread and returns when the 0MQ
// context is terminated or the process is interrupted, or any event handler
Expand All @@ -56,7 +56,7 @@ CZMQ_EXPORT int

// Self test of this class
int
zloop_test (Bool verbose);
zloop_test (bool verbose);
----

DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion doc/zmsg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ CZMQ_EXPORT void

// Self test of this class
int
zmsg_test (Bool verbose);
zmsg_test (bool verbose);
----

DESCRIPTION
Expand Down
54 changes: 54 additions & 0 deletions doc/zmutex.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
zmutex(7)
=========

NAME
----
zmutex - working with mutexes

SYNOPSIS
--------
----
// Create a new mutex container
CZMQ_EXPORT zmutex_t *
zmutex_new (void);

// Destroy a mutex container
CZMQ_EXPORT void
zmutex_destroy (zmutex_t **self_p);

// Lock mutex
CZMQ_EXPORT void
zmutex_lock (zmutex_t *self);

// Unlock mutex
CZMQ_EXPORT void
zmutex_unlock (zmutex_t *self);

// Self test of this class
int
zmutex_test (bool verbose);
----

DESCRIPTION
-----------

The zmutex class provides a portable wrapper for mutexes. Please do not
use this class to do multi-threading. It is for the rare case where you
absolutely need thread-safe global state. This should happen in system
code only. DO NOT USE THIS TO SHARE SOCKETS BETWEEN THREADS, OR DARK
THINGS WILL HAPPEN TO YOUR CODE.


EXAMPLE
-------
.From zmutex_test method
----
zmutex_t *mutex = zmutex_new ();
zmutex_lock (mutex);
zmutex_unlock (mutex);
zmutex_destroy (&mutex);
----

SEE ALSO
--------
linkczmq:czmq[7]
4 changes: 2 additions & 2 deletions doc/zsocket.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CZMQ_EXPORT int

// Poll for input events on the socket. Returns TRUE if there is input
// ready on the socket, else FALSE.
CZMQ_EXPORT Bool
CZMQ_EXPORT bool
zsocket_poll (void *socket, int msecs);

// Returns socket type as printable constant string
Expand All @@ -54,7 +54,7 @@ CZMQ_EXPORT char *

// Self test of this class
int
zsocket_test (Bool verbose);
zsocket_test (bool verbose);
----

DESCRIPTION
Expand Down
Loading

0 comments on commit 6dcb865

Please sign in to comment.