Constantin Rack
589464ced9
Problem: comments still refer to deprecated zmq_term
.
...
Solution: replace with `zmq_ctx_term`
Also fix whitespace (tabs instead of spaces)
2016-02-01 21:51:54 +01:00
Constantin Rack
7da3ee138e
Problem: deprecated zmq_utils.h
is still included
...
Solution: remove all remaining references to `zmq_utils.h`
2016-02-01 11:34:36 +01:00
Pieter Hintjens
6f94af8cca
Problem: various errors in build scripts
...
- zmq_utils.h was removed
- udp_address.cpp and udp_engine.cpp were added
Solution: patch all affected build scripts
2016-02-01 11:18:08 +01:00
Constantin Rack
8dbda15e21
Merge pull request #1745 from somdoron/master
2016-01-30 22:23:35 +01:00
Min RK
cdec4dc9ee
allow underscores in domain names
...
Since they are allowed
(They are not, however, allowed in hostnames)
2016-01-30 21:30:30 +01:00
somdoron
389e853c6d
Fix compilation errors on windows
2016-01-30 13:29:41 +02:00
Doron Somech
add4e7675f
Merge pull request #1744 from jcfr/fix-gcc-warnings
...
Fix unused-parameter/unused-but-set-variable/missing-field-initializers warnings
2016-01-30 09:08:09 +01:00
Jean-Christophe Fillion-Robin
2cb8da3bfd
Style: Fix -Wmissing-field-initializers in socket_poller.cpp
...
This commit addresses the following warnings reported on gcc 5.2.1. In
the future, this will help reduce the "noise" and help catch warnings
revealing a serious problem.
It was originally introduce in the refactoring associated with
zeromq/libzmq@da2bc60 (Removing zmq_pollfd as it is replaced by zmq_poller).
8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
/path/to/libzmq/src/socket_poller.cpp: In member function ‘int zmq::socket_poller_t::add(zmq::socket_base_t*, void*, short int)’:
/path/to/libzmq/src/socket_poller.cpp:92:51: warning: missing initializer for member ‘zmq::socket_poller_t::item_t::pollfd_index’ [-Wmissing-field-initializers]
item_t item = {socket_, 0, user_data_, events_};
^
/path/to/libzmq/src/socket_poller.cpp: In member function ‘int zmq::socket_poller_t::add_fd(zmq::fd_t, void*, short int)’:
/path/to/libzmq/src/socket_poller.cpp:108:50: warning: missing initializer for member ‘zmq::socket_poller_t::item_t::pollfd_index’ [-Wmissing-field-initializers]
item_t item = {NULL, fd_, user_data_, events_};
^
8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
2016-01-30 02:56:03 -05:00
Jean-Christophe Fillion-Robin
f329252dcb
Style: Fix unused parameter compilation warnings
...
This commit addresses the following warnings reported on gcc 5.2.1. In
the future, this will help reduce the "noise" and help catch warnings
revealing a serious problem.
8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
/path/to/libzmq/src/options.cpp:1048:36: warning: unused parameter ‘option_’ [-Wunused-parameter]
bool zmq::options_t::is_valid (int option_) const
^
/path/to/libzmq/src/plain_client.cpp:146:30: warning: unused parameter ‘cmd_data’ [-Wunused-parameter]
const unsigned char *cmd_data, size_t data_size)
^
/path/to/libzmq/src/plain_client.cpp:146:30: warning: unused parameter ‘cmd_data’ [-Wunused-parameter]
const unsigned char *cmd_data, size_t data_size)
^
/path/to/libzmq/src/socket_base.cpp:1445:44: warning: unused parameter ‘group_’ [-Wunused-parameter]
int zmq::socket_base_t::xjoin (const char *group_)
^
/path/to/libzmq/src/socket_base.cpp:1451:45: warning: unused parameter ‘group_’ [-Wunused-parameter]
int zmq::socket_base_t::xleave (const char *group_)
^
/path/to/libzmq/src/radio.cpp:145:33: warning: unused parameter ‘msg_’ [-Wunused-parameter]
int zmq::radio_t::xrecv (msg_t *msg_)
^
/path/to/libzmq/src/dish.cpp:164:32: warning: unused parameter ‘msg_’ [-Wunused-parameter]
int zmq::dish_t::xsend (msg_t *msg_)
^
/path/to/libzmq/tests/test_msg_ffn.cpp:32:16: warning: unused parameter ‘data’ [-Wunused-parameter]
void ffn(void *data, void *hint) {
^
/path/to/libzmq/tests/test_timers.cpp:50:19: warning: unused parameter ‘timer_id’ [-Wunused-parameter]
void handler (int timer_id, void* arg)
^
8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
2016-01-30 02:56:03 -05:00
Joe Eli McIlvain
cf5c288dda
Rename udp_address::interface
to iface
for VS2015 build.
...
Resolves #1739 .
2016-01-29 19:50:04 -08:00
somdoron
5ebfd1728f
make udp support for radio-dish
2016-01-29 21:17:11 +02:00
somdoron
1960b4e8a9
Filtering messages on dish side
2016-01-29 10:53:47 +02:00
somdoron
c7d52ec260
radio-dish join/leave are ZMTP commands
2016-01-29 10:53:47 +02:00
somdoron
5054f2eb61
radio-dish is sending the group as first frame
2016-01-29 10:53:47 +02:00
somdoron
68675e23d9
adds group to zmq_msg
2016-01-29 10:53:42 +02:00
somdoron
b2718149e0
msg external storage is using content_t
2016-01-29 10:46:42 +02:00
somdoron
15ad6f8051
save some bytes in msg class
2016-01-28 18:53:35 +02:00
somdoron
dc945998a4
missing virtual modifier or session_base
2016-01-28 18:31:05 +02:00
Constantin Rack
a539b0c6e8
Problem: copyright year is still 2015
...
Solution: update to 2016
2016-01-28 15:07:31 +01:00
somdoron
b8425a25cf
radio-dish pattern
2016-01-27 18:22:48 +02:00
Constantin Rack
511d701de3
Merge pull request #1725 from GreatFruitOmsk/master
2016-01-22 16:00:33 +01:00
Ilya Kulakov
77f5344ff7
Fix VMCI compilation errors on Windows.
2016-01-22 20:34:23 +06:00
Min RK
f0dce000b2
stop previous monitor socket before starting new one
...
avoids leaking sockets due to multiple monitor calls on one socket
Alternative: raise error (not sure what errno; EADDRINUSE?) if collision detected; force manual stop.
2016-01-21 16:21:07 +01:00
Ilya Kulakov
6c9974770b
Family is not set when resolving NIC on android.
...
Make it ready to enable ipv6 for AIX or HP/UX
2016-01-21 19:53:35 +06:00
Ilya Kulakov
e7850410f8
Fix trailing spaces.
2016-01-21 13:44:15 +06:00
Ilya Kulakov
e5894d5197
Fix missing headers which makes compilation fail on Android.
2016-01-21 13:44:01 +06:00
Constantin Rack
924bce6478
Problem: build fails due to undefined INT_MAX
...
Solution: include climits
Fixes #1720
2016-01-20 19:16:54 +01:00
Min RK
5fe75f0e43
truncate rc to INT_MAX
...
to avoid overflow for large messages
send/recv still succeed for large messages,
but `zmq_msg_size` must be used to get the true size.
2016-01-20 13:43:51 +01:00
Constantin Rack
90f9f5ff91
Merge pull request #1718 from gcsideal/master
...
Last bits of Hurd support
2016-01-20 11:28:18 +01:00
Laszlo Boszormenyi (GCS)
be387d5e56
Last bits of Hurd support
2016-01-20 07:18:22 +01:00
Constantin Rack
e6edc4729e
Problem: typo
...
Solution: fix it
2016-01-19 21:23:42 +01:00
somdoron
669c5697c2
fixing a bug: client over inproc receives msg with routing id set
2016-01-19 20:18:04 +02:00
somdoron
4bfe2ec686
fix bug in condition variable using invalid timeout
2016-01-18 15:32:49 +02:00
Laszlo Boszormenyi (GCS)
be5ab6d5c9
GNU/Hurd support
2016-01-16 02:26:20 +01:00
somdoron
6bbca7cf4a
fix case when zmq_poller access a dead socket
2016-01-13 15:12:47 +02:00
Frederic Tregon
89417ddb9f
Fixed issue #1690 (ZMQ_REQ_RELAXED)
...
When using ZMQ_REQ_RELAXED and a 'send' is executed after another 'send' the
previous code would terminate the 'reply_pipe' if any.
This is incorrect as terminating the reply pipe also terminates the send pipe
as they are the same (a pipe associated with a socket is bidirectional).
Doing a terminate on the pipe sets an internal flag called out_active to false
and the pipe can no longer send messages.
Removing the 'terminate' solves the problem. Removing this call is not an issue
as the incorrect ordering of messages that could be incurred is taken care of
by the ZMQ_REQ_CORRELATE option if needed.
2016-01-01 19:19:33 +01:00
Pieter Hintjens
2566c02a9e
Problem: CLIENT and SERVER don't check SNDMORE
...
These sockets don't handle multipart data, so if callers send it,
they drop frames, and things break silently.
Solution: if the caller tries to use ZMQ_SNDMORE, return -1 and
set errno to EINVAL.
2015-12-29 17:00:06 +01:00
Pieter Hintjens
6665bffe11
Problem: MSVC projects don't include timers.cpp/hpp
...
Solution: add these
2015-12-21 11:09:11 +01:00
Pieter Hintjens
7893a6ac26
Problem: zmq poller API is not CLASS conformant
...
Solution: change zmq_poller_close(p) to zmq_poller_destroy(&p)
2015-12-21 11:01:16 +01:00
Pieter Hintjens
f8b9ca5f42
Problem: zmq timers API is not CLASS conformant
...
If we're going to add CLASS-like APIs we should use the proper
syntax; specifically 'destroy' instead of 'close', which is a
hangover from the 'ZeroMQ is like sockets' model we're slowly
moving away from.
Solution: change zmq_timers_close(p) to zmq_timers_destroy(&p)
2015-12-21 10:56:37 +01:00
Pieter Hintjens
97092d994d
Problem: Windows build gives warning on v2_decoder.cpp:130
...
Solution: add explicit cast
2015-12-20 19:13:49 +01:00
Constantin Rack
c19470ece1
Merge pull request #1675 from somdoron/Timers
...
Problem: no way to schedule timers with zmq_poll or zmq_poller
2015-12-18 11:34:39 +01:00
somdoron
aadaf99011
add timers API to libzmq
2015-12-18 12:23:22 +02:00
Ilya Kulakov
b76ccb8b1a
Add missing header for the if_nametoindex on Windows.
2015-12-18 15:54:18 +06:00
Constantin Rack
b67cdcfd0b
Merge pull request #1670 from hintjens/master
...
CI was broken by #54799c (reverted)
2015-12-18 09:06:12 +01:00
Brian Silverman
700b91d102
Fix alignment of initial chunk in yqueue
...
Clang's UndefinedBehaviorSanitizer catches this in the tests.
2015-12-17 14:28:15 -05:00
Pieter Hintjens
31c35498af
Revert "fixes #1565 : Allow session to flush commands on an engine error"
...
This reverts commit 54799c8c6fa605f7272e966912f6e93161f9d11d.
This change broke the tests/test_shutdown_stress testcase.
2015-12-17 16:20:48 +01:00
Ilya Kulakov
3caa637e1b
Add special interface to represent local VMCI context.
2015-12-14 19:20:27 +06:00
Sathish Yenna
7cfa93352e
Add missing support for IPv6 link local addresses (which include % followed by the interface name)
2015-12-09 16:26:34 -06:00
Ilya Kulakov
6ae70a9428
Remove unnecessray comment and unnecessary include.
2015-12-09 15:45:15 +06:00