Commit Graph

404 Commits

Author SHA1 Message Date
Martin Sustrik
2f219d7c28 ZMQ_TBC renamed to ZMQ_MORE 2010-03-27 21:25:40 +01:00
Martin Sustrik
842b4dd2e4 muti-part message functionality available via API 2010-03-27 14:57:56 +01:00
Martin Sustrik
8d8e0857be as advertised, zmq_flush and ZMQ_NOFLUSH were removed 2010-03-27 14:50:35 +01:00
Martin Sustrik
06538fc117 multi-part messages work with REQ/REP sockets 2010-03-27 14:24:57 +01:00
Martin Sustrik
bbfac783f9 multi-part message work with UPSTREAM/DOWNSTREAM 2010-03-27 09:43:49 +01:00
Martin Sustrik
ed291b0251 multi-part messages work with PUB/SUB 2010-03-27 09:24:38 +01:00
Martin Sustrik
0a53ff7b9f Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-03-20 19:51:29 +01:00
Martin Sustrik
93bdb792a9 PUB socket was blocking occassionally - fixed 2010-03-20 19:50:36 +01:00
Martin Sustrik
f031677100 rollback of half-processed messages in case of disconnection 2010-03-20 15:04:30 +01:00
Martin Sustrik
dfdaff5eba XREP-style prefixing/trimming messages removed 2010-03-20 10:58:59 +01:00
Martin Sustrik
cbaf10978a fixes for building with Sun CC 2010-03-19 09:14:26 +01:00
Martin Sustrik
61ad236e95 ZMQ_NOFLUSH and zmq_flush obsoleted 2010-03-13 14:40:10 +01:00
Martin Sustrik
c42343d3f0 pipe_t::rollback removes only unfinished message from the pipe rather than all unflushed messages 2010-03-13 12:34:55 +01:00
Martin Sustrik
66b67fbdf2 devices are built unconditionally 2010-03-12 18:58:29 +01:00
Martin Hurton
6badd204d5 Implement flow control for ZMQ_REP sockets 2010-03-12 11:07:39 +01:00
Martin Hurton
923609b092 Implement flow control for ZMQ_REQ sockets 2010-03-12 11:07:39 +01:00
Martin Hurton
42e575cb6b Implement flow control fox ZMQ_XREP sockets 2010-03-12 11:07:39 +01:00
Martin Hurton
e34184acc3 Implement flow control for ZMQ_XREQ sockets 2010-03-12 11:07:38 +01:00
Martin Hurton
06d7a44737 Implement flow control for ZMQ_PUB sockets 2010-03-12 11:07:38 +01:00
Martin Hurton
f9c84a1a68 Implement flow control for ZMQ_DOWNSTREAM sockets 2010-03-12 11:07:38 +01:00
Martin Hurton
5d4f6b18cd Implement flow control for ZMQ_P2P sockets 2010-03-12 11:07:38 +01:00
Martin Hurton
f9521c6b6a PGM: implement flow control 2010-03-12 11:07:38 +01:00
Martin Hurton
61ee6fae53 Implement flow control
This commit introduces the necessary changes necessary
for implementing flow control. None of the socket types
implements the flow control yet. The code will crash when
the flow control is enabled and the thw lwm is reached.

The following commits will add flow-control support for
individual socket types.
2010-03-12 11:07:38 +01:00
Martin Lucina
27e2d08449 Restructure language bindings
C and C++ headers moved from bindings/ to include/, bindings/ removed
--with-c and --with-cpp options to configure removed, C and C++ now built
and installed by default
2010-03-11 20:33:27 +01:00
Martin Sustrik
d790940fd0 udp transport renamed to epgm 2010-03-09 18:14:49 +01:00
Martin Sustrik
5a776f5597 PGM late joiners would start receiving a complete message rather than a message part 2010-03-09 17:34:28 +01:00
Martin Sustrik
0f891e091c message flags from the wire are written to zmq_msg_t and vice versa 2010-03-09 17:24:42 +01:00
Martin Sustrik
531c6af0d4 message flags added to zmq_msg_t strcuture 2010-03-09 16:56:53 +01:00
Martin Sustrik
96ccc1c5fc 'flags' fields added to the wire format 2010-03-09 15:10:44 +01:00
Martin Sustrik
e04e2cdbba rollback functionality added to pipe 2010-03-09 08:43:20 +01:00
Martin Sustrik
9481c69b0f problem with NIC name resolution on OSX fixed 2010-03-06 16:32:19 +01:00
Martin Lucina
26b0aea24f Win32 build fixes 2010-03-03 17:01:08 +01:00
unknown
352da8ae87 type mismatch in tcp_listener (win version) fixed 2010-03-03 15:47:21 +01:00
Martin Hurton
14054ecce7 Fix typo: zmq_close -> zmq_msg_close 2010-03-03 09:58:37 +01:00
Martin Hurton
708298d798 Fix possible lockups when reading from ZMQ_REP sockets 2010-03-03 08:00:30 +01:00
unknown
157a66fc42 polling on POSIX sockets returns POLLERR (win32) 2010-03-01 18:33:16 +01:00
Martin Sustrik
4e7158b67d return POLLERR from polling on POSIX sockets (linux version) 2010-03-01 17:40:39 +01:00
Martin Lucina
efefa069b2 Cygwin support 2010-02-26 20:03:58 +01:00
Martin Sustrik
ed8fe68383 handle invalid PGM connection string decently 2010-02-24 17:27:31 +01:00
Martin Sustrik
be51cfa419 Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-02-24 16:19:53 +01:00
Martin Sustrik
0b4172b868 minor cast issues on cygwin fixed 2010-02-24 16:19:14 +01:00
unknown
b7f01f9071 chat example removed from win build; missing fd_signaler_t::poll on win added 2010-02-24 15:33:03 +01:00
Martin Sustrik
476ebde628 use binary UUIDs instead of string representation to save some bytes 2010-02-24 13:02:29 +01:00
Martin Lucina
bba36e6ee6 Disable IPv6 support
The current IPv6 support is half-assed and breaks for too many people.
Revert back to IPv4 only for now.
2010-02-24 12:07:24 +01:00
Martin Sustrik
2441ef11a2 zmq_errno helper function added 2010-02-23 23:28:25 +01:00
Martin Sustrik
2dd55605ea recv fails after polling for IN on REQ socket 2010-02-23 22:13:56 +01:00
Martin Sustrik
f24955519a zmq_poll doesn't exit when infinite timeout is set and interrupt occurs 2010-02-22 18:19:26 +01:00
Martin Sustrik
8b86dcf81c build on cygwin enabled 2010-02-19 17:50:47 +01:00
Martin Sustrik
727054547f don't check for identity, if the connection is anonymous 2010-02-19 17:02:07 +01:00
Martin Sustrik
aff1f6621a Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-02-19 15:25:05 +01:00
Martin Sustrik
75f571c884 Multi-hop REQ/REP, part XII., generate unique identities for anonymous connections 2010-02-19 15:24:43 +01:00
Martin Lucina
2a79a943de Add NetBSD support 2010-02-18 19:38:15 +01:00
Martin Sustrik
d008637bc4 one more attempt to fix the previous win32 problem 2010-02-17 21:16:59 +01:00
Martin Sustrik
e385319e5a recv returning -1 while errno=0 fixed 2010-02-17 20:33:00 +01:00
Martin Sustrik
9d8623b28f ZMQII-76: Bug in how replies are handled when the REQ endpoint goes away 2010-02-17 08:30:27 +01:00
Martin Sustrik
b9caa319e2 Multi-hop REQ/REP, part XI., finalise the XREQ/XREP functionality 2010-02-16 18:30:38 +01:00
Martin Sustrik
2ddce20535 Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-02-16 18:03:41 +01:00
Martin Lucina
80c820d758 Cleaning up more PGM cruft 2010-02-15 23:51:05 +01:00
Martin Sustrik
5041b0bc0b fixing the previous commit :( 2010-02-15 20:35:00 +01:00
Martin Sustrik
7778010d76 care taken of the fact that AI_NUMERICSERV is not defined on OSX 10.5 2010-02-15 19:58:47 +01:00
Martin Sustrik
43620b3d35 Multi-hop REQ/REP, part X., optional delayed creation of pipes during connect 2010-02-14 13:34:48 +01:00
Martin Sustrik
4405250d93 Multi-hop REQ/REP, part IX., pass the peer identity as far as socket_base_t 2010-02-13 15:30:03 +01:00
Martin Sustrik
f5ce81f289 Multi-hop REQ/REP, part VIII., new blob_t type used for holding identity 2010-02-13 14:07:30 +01:00
Martin Sustrik
cdc2efe9b5 Multi-hop REQ/REP, part VII., identity-related algorithms rewritten 2010-02-13 13:07:33 +01:00
Martin Sustrik
923eacd28a Multi-hop REQ/REP, part VI., session 'name' renamed to 'peer_identity' 2010-02-13 09:09:40 +01:00
Martin Sustrik
2e78e48503 Multi-hop REQ/REP, part V., peer identity is passed from init object to session 2010-02-12 20:49:00 +01:00
Martin Sustrik
d8430f4b9a Multi-hop REQ/REP, part IV., add command deallocation mechanism 2010-02-12 20:03:02 +01:00
Martin Sustrik
313b5dfadd Multi-hop REQ/REP, part III., change 'type' in options to simple 'traceroute' flag 2010-02-12 19:42:35 +01:00
Martin Sustrik
96e0442332 Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-02-12 15:58:22 +01:00
Martin Sustrik
36a576370c Multi-hop REQ/REP, part I., tracerouting switched on on XREP socket 2010-02-12 15:57:54 +01:00
Martin Hurton
dc8f4b1b76 Fix memory leak in bind() 2010-02-12 15:20:43 +01:00
Martin Sustrik
7b4cf2a4d0 Multi-hop REQ/REP, part I., socket type is known to all associated objects 2010-02-12 13:33:50 +01:00
Martin Hurton
cd7300fd4f Resolve command starvation in recv() 2010-02-12 12:53:19 +01:00
Martin Lucina
30b967e2a4 Integrate version numbering into autoconf
configure.in is now the master source for the package version number,
this propagates to src/platform.hpp (for zmq_version) and doc/Makefile.am
(for documentation generation) automagically.
2010-02-11 17:49:40 +01:00
Martin Sustrik
bd9213e712 ZMQII-72: Add zmq_version function 2010-02-11 10:29:33 +01:00
Martin Hurton
7cab423fc2 Merge branch 'master' of github.com:sustrik/zeromq2 2010-02-10 17:14:21 +01:00
Martin Hurton
bc9b7f1f54 lb: bugfix - never skip active pipe when sending msg 2010-02-10 17:12:54 +01:00
Martin Hurton
6b3c1798e7 fq: bugfix - don't read msg from inactive pipe 2010-02-10 16:59:17 +01:00
Martin Sustrik
2d44bf3644 ZMQII-69: Make 0MQ build on HP-UX 2010-02-10 11:04:28 +01:00
Martin Sustrik
8c25bab31d ZMQII-70: zmq_poll on win32 fails with EINVAL 2010-02-10 10:42:54 +01:00
Martin Sustrik
8f86cac2f6 ZMQII-69: Make 0MQ build on HP-UX 2010-02-09 19:23:15 +01:00
Martin Sustrik
4c870ede7f ZMQII-57: Shutdown OpenPGM library 2010-02-09 09:08:37 +01:00
Martin Sustrik
01533a5aef ZMQII-65: Two OS threads are mapped to the same app_thread_t 2010-02-08 18:37:48 +01:00
Martin Sustrik
7593d815ac ZMQII-64: First message stuck in 0MQ in case of immediate disconnection 2010-02-08 10:34:12 +01:00
Martin Sustrik
427bc3276a minor code cleanup 2010-02-07 16:24:14 +01:00
Martin Sustrik
b0ee6b0c8a ZMQII-62: zmq_close after sending message via P2P socket fails 2010-02-07 11:31:05 +01:00
Martin Sustrik
bbaa494fb5 ZMQII-59: TCP server crashes sometimes when message is send and socket is closed immediately 2010-02-07 09:14:43 +01:00
Martin Sustrik
d21bf21a36 allow async connect on Win32 return WSAECONNABORTED 2010-02-05 13:00:49 +01:00
Martin Sustrik
0888fcd06f yqueue_t uses malloc/free instead of new/delete 2010-02-04 23:58:41 +01:00
Martin Sustrik
30076c4f7a ZMQII-58: TCP connecting asserts on Win32 (same fix for POSIX) 2010-02-04 17:46:47 +01:00
unknown
c46b7ed197 ZMQII-58: TCP connecting asserts on Win32 2010-02-04 17:40:04 +01:00
Martin Sustrik
bc90231227 contrain interface name resolving in OpenPGM to IPv4 interfaces 2010-02-04 09:39:57 +01:00
Martin Sustrik
0f697fe2b4 ZMQII-56: Avoid allocation of chunk in yqueue.hpp by keeping a spare one 2010-02-03 20:04:44 +01:00
Martin Lucina
72bbc92b70 Merge branch 'master' of github.com:sustrik/zeromq2 2010-02-03 15:54:39 +01:00
Martin Lucina
6502c16a7f Update OpenPGM to 2.0.23rc8 2010-02-03 15:52:11 +01:00
Martin Sustrik
7c25feb51b ZMQII-55: At most one PGM/UDP transport can be opened 2010-02-03 13:06:34 +01:00
Martin Sustrik
9cee8f9c3e problem with PGM messages larger than 1 MTU fixed 2010-02-02 15:11:25 +01:00
Martin Sustrik
27e47bdcc0 ZMQII-54: Affinity isn't honoured 2010-02-02 13:29:31 +01:00
Martin Sustrik
5d16070ffc ZMQII-53: Memory leak when using invalid socket type 2010-02-02 08:46:35 +01:00
Martin Sustrik
a1e70f2957 ZMQII-52: Asserion during reconnection 2010-02-02 08:27:38 +01:00
Martin Sustrik
00b9a5dede ZMQII-51: Implement O(1) topic matching 2010-01-31 20:14:30 +01:00
Martin Sustrik
70ea8e9d4b ZMQII-48: Implement P2P socket type 2010-01-30 13:40:50 +01:00
malosek
e5ff617c4e fixed OpenPGM compilation on mingw32 2010-01-27 20:58:40 +01:00
malosek
8f57ff4634 fixed OpenPGM compilation on mingw32 2010-01-27 20:45:43 +01:00
malosek
0b97e7a4f2 libpgm updated to 2.6.21rc6 2010-01-27 11:30:22 +01:00
Martin Sustrik
943125bd12 Hard-wired constant on OpenVMS replaced by symbolic constant 2010-01-27 08:47:01 +01:00
unknown
aa27034db5 IPv6 patch - part V. (win32) 2010-01-24 08:38:18 +01:00
Martin Sustrik
adc5d7693d IPv6 patch - part IV. 2010-01-24 08:19:02 +01:00
Martin Sustrik
fca9a2159a Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-01-23 11:14:53 +01:00
Martin Sustrik
079d327670 IPv6 patch - part III. 2010-01-23 11:14:30 +01:00
unknown
454f43a45b IP address resolving on Win32 fixed 2010-01-23 09:08:31 +01:00
Martin Sustrik
2634934999 IPv6 patch part 2/2 2010-01-23 08:19:30 +01:00
Martin Sustrik
6aaf095dd2 IPv6 support -part II. 2010-01-22 16:32:48 +01:00
Martin Sustrik
34d65e22c5 Tero Marttila's Ipv6 patch - part I. 2010-01-22 13:13:52 +01:00
unknown
d1e09578b2 Hardcoded loopback address removed from fd_signaler 2010-01-22 07:54:16 +01:00
Martin Sustrik
f0757c003e ZMQII-43: Race condition when writing to pipe 2010-01-21 09:58:49 +01:00
Martin Sustrik
6a46ca75e5 ZMQ-42: Building with ICC fails 2010-01-20 09:22:41 +01:00
Martin Sustrik
bddff50271 ZMQII-40: wrong return code from recolve_ip_interface 2010-01-18 11:01:41 +01:00
Martin Sustrik
51e012c446 Solaris build fixed 2010-01-16 09:39:44 +01:00
unknown
a507d16e13 Win32 build fixed 2010-01-15 14:21:20 +01:00
Martin Sustrik
2bb57ac57a ZMQII-39: Implement IPC transport 2010-01-15 14:11:39 +01:00
unknown
b9b0124d55 ZMQII-34: ensure that poll won't return POLLIN event when the message will be filtered out anyway (Win32) 2010-01-14 15:50:12 +01:00
Martin Sustrik
067ba3b9f7 ZMQII-34: ensure that poll won't return POLLIN event when the message will be filtered out anyway (POSIX) 2010-01-13 19:21:23 +01:00
Martin Sustrik
20a8edcf5c ZMQII-38: Compiler complains about missing virtual constructors 2010-01-13 13:24:29 +01:00
Martin Sustrik
bcd278a5a5 ZMQII-37: SIGSEGV when polling on REQ socket 2010-01-12 08:14:55 +01:00
Martin Sustrik
bd07baf028 ZMQII-33: zmq_poll may exceed timeout if signal interrupts the waiting 2010-01-09 22:24:59 +01:00
Martin Sustrik
e806615dd1 ZMQII-31: memory leak in zmq_poll (on timeout) 2010-01-08 15:44:51 +01:00
Martin Sustrik
ddf5f75549 zmq.cpp build probelm on non-linux platforms fixed 2010-01-07 14:44:43 +01:00
malosek
e21b33e9cf forced WINVER to 0x0501 for mingv32 build 2010-01-05 18:34:27 +01:00
Martin Sustrik
ef049efe2e perf tests modified to reflect change in subscription format 2010-01-05 14:45:10 +01:00
malosek
11fec367d1 added pending event fd handling by the pgm_sender 2010-01-05 11:22:14 +01:00
Martin Sustrik
4f6baf4dde Copyrights transferred from FastMQ to iMatix 2010-01-05 08:29:35 +01:00
Martin Sustrik
f2b235db16 ZMQII-29: Add timeout to zmq_poll function 2010-01-04 15:46:20 +01:00
malosek
1b90e5f6f5 added missing likely.hpp file into the dist 2009-12-31 16:53:00 +01:00
malosek
9bda63cd63 fixed minor gcc warning in src/pgm_receiver.cpp 2009-12-31 16:35:04 +01:00
malosek
9fadf0b218 fixed minor gcc warning in src/pgm_socket.cpp 2009-12-31 16:18:45 +01:00
Martin Sustrik
23e5c3b342 polling on SUB socket fixed 2009-12-29 07:53:33 +01:00
Martin Sustrik
72161fb075 format of subscriptions changed (no * needed anymore) 2009-12-28 21:29:31 +01:00
unknown
c97967ed4b MSVC build fixed 2009-12-28 16:20:21 +01:00
Martin Sustrik
5852db451a PGM code cleanup 2009-12-28 11:51:06 +01:00
Martin Sustrik
aebff623f3 ZMQII-28: Bidirectional introduction on TCP connection establishment 2009-12-23 19:37:56 +01:00
Martin Sustrik
b3bd4c15fe OpenPGM error handling fixed 2009-12-22 09:01:01 +01:00
Martin Sustrik
7cf18a2aec minor fixes 2009-12-21 20:45:52 +01:00
Martin Sustrik
5a0674dfec OpenPGM error handling improved 2009-12-21 18:50:24 +01:00
Martin Sustrik
86d68cbcbd memory leaks related to OpenPGM errors fixed 2009-12-18 14:19:28 +01:00
Martin Sustrik
ab5abf6c7e hint parameter added to zmq_free function 2009-12-16 15:08:37 +01:00
Martin Sustrik
7479871cde Merge branch 'master' of git@github.com:sustrik/zeromq2 2009-12-15 23:50:32 +01:00
Martin Sustrik
8aa0908635 all news converted to nothrow variant 2009-12-15 23:49:55 +01:00
unknown
3e64083667 win32 build fixed 2009-12-15 18:00:00 +01:00
Martin Sustrik
2cef05d869 reconnection mechanism added to tcp transport 2009-12-15 17:49:40 +01:00