- 27 May, 2018 2 commits
-
-
Simon Giesecke authored
Solution: replace by static_cast/reinterpret_cast
-
Simon Giesecke authored
Problem: inconsistent naming style for private data members, conflicts with naming of local variables and member functions Solution: apply and check _lower_case naming style for private data members
-
- 23 May, 2018 2 commits
-
-
Simon Giesecke authored
Solution: extracted make_socket_noninheritable function
-
Simon Giesecke authored
Solution: make error handling consistent and use retired_fd to remove code duplication
-
- 18 May, 2018 1 commit
-
-
Simon Giesecke authored
Solution: replace by C++-style casts
-
- 19 Apr, 2018 1 commit
-
-
Maks Naumov authored
event_accepted() already accepts fd_t type and there is no reason to cast it to int type Moreover, on Windows x64 this leads to truncation memsize -> int
-
- 12 Mar, 2018 1 commit
-
-
Sergey Kachanovskiy authored
* Fixes issue 2963, ref stream_engine.cpp:981 * Fixes issue 2963, ref socks_connecter.cpp:158 * Fixes issue 2963, ref tcp_listener.cpp:144 * Fixes issue 2963, ref tcp_connecter.cpp:423 * Fixes issue 2963, ref socks_connecter.cpp:436 * Fixes issue 2963, ref tcp_listener.cpp:179 * Fixes issue 2963, ref tcp_listener.cpp:268 * Fixes issue 2963, ref tcp_connecter.cpp:160
-
- 10 Mar, 2018 1 commit
-
-
Manuel Segura authored
* Problem: Still need to port over more files to VxWorks 6.x Solution: Port more files to VxWorks 6.x * Problem: Need to port over remaining files to VxWorks 6.x. Also remove POSIX thread dependency for VxWorks (because of priority inversion problem in POSIX mutexes with VxWorks 6.x processes) Solution: Port over remaining files to VxWorks 6.x. Also removed POSIX thread dependency for VxWorks * Problem: Needed to modify TCP, UDP, TIPC classes with #ifdefs to be compatible with VxWorks 6.x. Solution: Modify TCP, UDP, TIPC classes with #ifdefs to be compatible with VxWorks 6.x
-
- 09 Feb, 2018 1 commit
-
-
Simon Giesecke authored
Solution: add socket option
-
- 08 Feb, 2018 1 commit
-
-
Simon Giesecke authored
tcp_connecter and tcp_listener Solution: remove duplication and redundant member, align handling of handle in tcp_connecter and tcp_listener
-
- 02 Feb, 2018 1 commit
-
-
sigiesec authored
Solution: applied clang-format
-
- 18 Nov, 2017 1 commit
-
-
Luca Boccassi authored
Solution: check for availability in CMake and autoconf before using it
-
- 31 Jul, 2017 1 commit
-
-
Brian Russell authored
Linux now supports Virtual Routing and Forwarding (VRF) as per: https://www.kernel.org/doc/Documentation/networking/vrf.txt In order for an application to bind or connect to a socket with an address in a VRF, they need to first bind the socket to the VRF device: setsockopt(sd, SOL_SOCKET, SO_BINDTODEVICE, dev, strlen(dev)+1); Note "dev" is the VRF device, eg. VRF "blue", rather than an interface enslaved to the VRF. Add a new socket option, ZMQ_BINDTODEVICE, to bind a socket to a device. In general, if a socket is bound to a device, eg. an interface, only packets received from that particular device are processed by the socket. If device is a VRF device, then subsequent binds/connects to that socket use addresses in the VRF routing table.
-
- 04 Apr, 2017 2 commits
-
-
Jake Cobb authored
* Prevent DOS by asserts in TCP tuning -Propagates socket option errors from the tuning functions to the callers. -Asserts a subset of error conditions during tuning, excluding external network causes. -Checks tuning results in 3 call sites and treats them like failures to connect, accept, etc. * Fix variable name * Remove lambda requiring C++11
-
bbdb68 authored
* add define for windows/UWP * prevent issue with COM references * gettickcount not available on uwp * add compiler definitions * add convenitnece cmake file * brute force uwp compilation * fix compiler version * cosmetics
-
- 04 Jan, 2017 1 commit
-
-
Luca Boccassi authored
Solution: setsockopt returns EINVAL if the connection was closed by the peer after the accept returned a valid socket. This is a valid network error and should not cause an assert. To handle this we have to extract the setsockopt from the stream engine, as there's no clean way to return an error from the constructor. Instead, try to set this option before creating the engine in the callers, and return immediately as if the accept had failed to avoid churn. Do the same for the connect calls by setting the option in open_socket, so that the option for that case is set even before connecting, so there's no possible race condition. Since this has to be done in 4 places (tcp/ipc listener, socks connecter and open_socket) add an utility function in ip.cpp. Fixes #1442
-
- 17 Sep, 2016 1 commit
-
-
Constantin Rack authored
Solution: replace tabes with spaces
-
- 30 Jul, 2016 1 commit
-
-
Peter J. Holzer authored
Linux provides accept4(2) which will return a socket with FD_CLOEXEC set when called with the SOCK_CLOEXEC flag. So call this when available and fall back to fcntl(..., FD_CLOEXEC) if not.
-
- 01 Jun, 2016 1 commit
-
-
Yann Diorcet authored
-
- 14 May, 2016 1 commit
-
-
evoskuil authored
-
- 08 May, 2016 1 commit
-
-
KIU Shueng Chuan authored
-
- 04 May, 2016 1 commit
-
-
Doron Somech authored
-
- 01 May, 2016 1 commit
-
-
hitstergtd authored
Solution: fix it
-
- 07 Apr, 2016 2 commits
-
-
Luca Boccassi authored
Solution: in the Windows-specific ifdef in tcp_listener set_address, check for error and set errno only after the IPv4 fallback has failed too, to avoid setting errno when the socket creation succeeds through the fallback.
-
Luca Boccassi authored
Solution: if opening an IPv6 TCP socket fails because IPv6 is not available, try to open an IPv4 socket instead when creating and binding a TCP endpoint.
-
- 21 Feb, 2016 2 commits
-
-
Luca Boccassi authored
Solution: fix it
-
Osiris authored
Solution: The Coverity Static Code Analyzer was used on libzmq code and found many issues with uninitialized member variables, some redefinition of variables hidding previous instances of same variable name and a couple of functions where return values were not checked, even though all other occurrences were checked (e.g. init_size() return).
-
- 18 Feb, 2016 1 commit
-
-
Osiris authored
Solution: Phase I - make precompiled.hpp be first file included in every source file
-
- 09 Feb, 2016 2 commits
-
-
Pieter Hintjens authored
Solution: rename to ZMQ_MAXRT This is the option name used on Windows, so easier to use and remember.
-
Luca Boccassi authored
Solution: rename socket option (and variables and files) from usefd to use_fd.
-
- 08 Feb, 2016 1 commit
-
-
Luca Boccassi authored
Solution: rename socket option (and variables and files) from pre_allocated_fd to usefd.
-
- 04 Feb, 2016 1 commit
-
-
Luca Boccassi authored
Solution: parse the value set by the ZMQ_PRE_ALLOCATED_FD sockopt when creating a new TCP socket and use it if valid. Add new tests/test_pre_allocated_fd_tcp.cpp unit test.
-
- 28 Jan, 2016 1 commit
-
-
Constantin Rack authored
Solution: update to 2016
-
- 14 Aug, 2015 2 commits
-
-
reza.ebrahimi authored
-
reza.ebrahimi authored
-
- 06 Aug, 2015 1 commit
-
-
KIU Shueng Chuan authored
-
- 08 Jul, 2015 1 commit
-
-
Juha Reunanen authored
LIBZMQ-195 allow explicitly setting sndbuf and rcvbuf to 0 (see https://support.microsoft.com/en-us/kb/201213)
-
- 02 Jun, 2015 1 commit
-
-
Pieter Hintjens authored
Of course people still "can" distributed the sources under the LGPLv3. However we provide COPYING.LESSER with additional grants. Solution: specify these grants in the header of each source file.
-
- 22 Apr, 2015 1 commit
-
-
evoskuil authored
-
- 22 Jan, 2015 1 commit
-
-
Pieter Hintjens authored
Solution: update for 2015 Fixes #1320
-