Martin Sustrik
f78d9b6bfc
Session class separated into socket-type-specific sessions
...
This is a preliminary patch allowing for socket-type-specific
functionality in the I/O thread. For example, message format
can be checked asynchronously and misbehaved connections dropped
straight away.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-09-15 10:00:23 +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
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
b3bac17607
tcp_engine renamed to stream engine
...
The engine was not used exclusively for TCP connections.
Rather it was used to handle any socket with SOCK_STREAM
semantics. The class was renamed to reflect its true function.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-16 12:44:34 +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
3c3c0bfd1f
Minor problems in MSVC build fixed
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-15 08:02:36 +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
Martin Sustrik
be48970977
MSVC build brought up-to-date
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-04 07:44:35 +02:00
Martin Sustrik
f63db009a1
Different listener implementations simplified
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-28 16:32:08 +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
Martin Sustrik
46b053b8d6
Dead code removed from TCP and IPC transports
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-28 13:46:16 +02:00
Martin Sustrik
5ac63140b0
Implementations of TCP and IPC transports separated
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-28 13:19:55 +02:00
Martin Sustrik
ce7a9a58e3
Setting TCP socket options moved to tcp_engine_t
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-28 08:06:21 +02:00
Martin Sustrik
279302c5f5
Experimental VTCP listener added
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-26 18:35:40 +02:00
Martin Sustrik
9119b4fd7b
TCP transport classes simplified
...
zmq_engine and tcp_socket merged into tcp_engine
zmq_connecter and tcp_connecter merged into tcp_connecter
zmq_listener and tcp_listener merged into tcp_listener
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-26 00:43:57 +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
590ad2510b
Error handling for accept on Cygwin fixed
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-04-15 07:59:28 +02:00
Martin Sustrik
f5015f4c93
Incorrect errno reported from tcp_listener_t::set_address
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-16 13:48:40 +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
Dhammika Pathirana
22b2b9a2b6
fix overwriting errno on bind failure
...
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
2010-12-13 14:18:47 +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 Sustrik
a780833683
ZMQ_BACKLOG socket option added.
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-17 10:23:58 +02:00
Pieter Hintjens
0ab6532419
Prevent socket reuse by second bind, on win32
2010-06-29 21:08:41 +02:00
Brett Cameron
714a8d50a0
fixes for OpenVMS
2010-05-12 12:45:12 +02:00
Martin Sustrik
cbaf10978a
fixes for building with Sun CC
2010-03-19 09:14:26 +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
unknown
352da8ae87
type mismatch in tcp_listener (win version) fixed
2010-03-03 15:47:21 +01:00
Martin Lucina
2a79a943de
Add NetBSD support
2010-02-18 19:38:15 +01:00
Martin Sustrik
2634934999
IPv6 patch part 2/2
2010-01-23 08:19:30 +01:00
Martin Sustrik
34d65e22c5
Tero Marttila's Ipv6 patch - part I.
2010-01-22 13:13:52 +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
Martin Sustrik
4f6baf4dde
Copyrights transferred from FastMQ to iMatix
2010-01-05 08:29:35 +01:00
Martin Sustrik
8aa0908635
all news converted to nothrow variant
2009-12-15 23:49:55 +01:00
unknown
49a9ef5fcb
windows error handling improved
2009-10-01 13:48:04 +02:00
unknown
ec6822a477
win port for c and cpp perf tests
2009-09-08 11:30:49 +02:00
unknown
f895426c18
initial changes for win port
2009-09-07 15:41:43 +02:00
Martin Sustrik
6996ef6f1a
improved error handling
2009-08-29 09:41:50 +02:00
Martin Sustrik
bde396f156
fix to 3-thread synchronisation algorithm
2009-08-09 11:21:47 +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