Sergey KHripchenko
4b303402a7
more flexible keepalive options detection + awful options documentation
2012-04-06 20:04:35 +04:00
Sergey KHripchenko
0c3d917926
initial implementation of tuning TCP keep-alives for TCP socket
...
currently not fully cross-platform
work on linux
possibly work in *bsd
and could be enhanced to work on windows
2012-04-05 19:39:53 +04:00
Martin Sustrik
8e21d64c97
Copyright dates adjusted to reflect reality
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-11-01 18:06:11 +01:00
Martin Sustrik
ac7717b7b3
250bpm copyrights added
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-10-31 16:20:30 +01:00
Mikko Koppanen
6c1b50cfab
Added compile-time test for SOCK_CLOEXEC
...
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-10-26 11:26:00 +02:00
Martin Sustrik
8b7ac4c2a9
Close file descriptors on exec (issue 218)
...
When exec is executed to start a different process image old
0MQ file descriptors could stay open, thus blocking TCP ports
and alike. This patch should solve the problem.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-09-02 15:34:12 +02:00
Martin Sustrik
f0c7edbc9c
Missing include added to ip.cpp
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-18 21:16:22 +02:00
Martin Sustrik
b6ecb00d23
TCP address related functionality moved to tcp_address_t
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-18 17:40:42 +02:00
Martin Sustrik
b01a8e1751
IPC address related functionality refactored into ipc_address_t class
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-18 11:08:22 +02:00
Ghislain Putois
85851d3127
Preliminary Android support
...
Some small changes to prepare a cross-compilation for the Android platform
Signed-off-by: Ghislain Putois <ghpu@infonie.fr>
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-15 19:39:21 +02:00
Steven McCoy
57440b86e2
Add IPv6 support to tcp_listener
...
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-15 08:56:00 +02:00
Martin Sustrik
9380098534
Compilation error on HP-UX and AIX fixed
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-14 14:06:42 +02:00
Martin Sustrik
6dc3b2a657
Compilation error on FreeBSD fixed
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-14 13:48:28 +02:00
Steven McCoy
c27b9ac7de
Update resolve_ip_interface and resolve_ip_hostname with ipv4only parameter.
...
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-08 15:23:46 +02:00
Steven McCoy
9184a54f64
Update resolve_nic_name to take more generic sockaddr parameter.
...
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2011-08-08 12:39:13 +02:00
Martin Sustrik
d5f3628ad0
Different connecters simplified
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-29 09:37:43 +02:00
Martin Sustrik
b45fec337a
Tuning of TCP sockets is done at a single place
...
Instead of being spread throughout the codebase, the tuning
is done in tune_tcp_socket() function.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-28 15:13:04 +02:00
Andrew Thompson
4f4cc73280
Use strrchr to ensure we split off the last colon for the service port
...
IPv6 addresses have colons and will produce invalid data for the getaddrinfo lookup.
Signed-off-by: Andrew Thompson <andy@fud.org.nz>
2011-06-29 23:48:19 +02:00
Paul Colomiets
38e5f8699c
Better handling of memory error in resolve_ip_hostname
...
Signed-off-by: Paul Colomiets <pc@gafol.net>
2011-05-17 10:12:27 +02:00
Martin Sustrik
49df2f416c
Fixes warning when compiling with MSVC on Win64
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-05-15 13:12:09 +02:00
Martin Sustrik
e0246e32d7
Message-related functionality factored out into msg_t class.
...
This patch addresses serveral issues:
1. It gathers message related functionality scattered over whole
codebase into a single class.
2. It makes zmq_msg_t an opaque datatype. Internals of the class
don't pollute zmq.h header file.
3. zmq_msg_t size decreases from 48 to 32 bytes. That saves ~33%
of memory in scenarios with large amount of small messages.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-04-21 22:27:48 +02:00
Martin Sustrik
7b95c5920c
Windows build fixed
...
Compilation of ip.cpp have failed because EPROTONOSUPPORT
was undefined. Including zmq.h should help as the error
code is defined there.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-09 16:34:37 +01:00
Brett Cameron
b00be2651c
Different fixed to make OpenVMS port work.
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-08 14:39:52 +01:00
Martin Sustrik
18b9ebea32
The copyrights in file headers updated.
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-02 16:30:40 +01:00
Martin Sustrik
43e8868875
Added explicit error message in case of memory exhaustion
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-22 16:23:36 +01:00
Martin Sustrik
b358df9fff
Name of "GNU Lesser Public License" corrected.
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-30 15:08:28 +02:00
Martin Lucina
5b1a6a4bea
Issue 42 - getaddrinfo() fails
2010-07-21 17:33:40 +02:00
Martin Sustrik
9481c69b0f
problem with NIC name resolution on OSX fixed
2010-03-06 16:32:19 +01:00
Martin Sustrik
0b4172b868
minor cast issues on cygwin fixed
2010-02-24 16:19:14 +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 Lucina
2a79a943de
Add NetBSD support
2010-02-18 19:38:15 +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
8f86cac2f6
ZMQII-69: Make 0MQ build on HP-UX
2010-02-09 19:23:15 +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
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
Martin Sustrik
2bb57ac57a
ZMQII-39: Implement IPC transport
2010-01-15 14:11:39 +01:00
Martin Sustrik
4f6baf4dde
Copyrights transferred from FastMQ to iMatix
2010-01-05 08:29:35 +01:00
Martin Sustrik
6996ef6f1a
improved error handling
2009-08-29 09:41:50 +02:00
Martin Sustrik
cc3755a16f
renamed from zs to zmq
2009-08-03 11:30:13 +02:00
Martin Sustrik
4ed70a9302
initial commit
2009-07-29 12:07:54 +02:00