Martin Hurton
700e08c3c2
tcp_address: make port number conversion more robust
...
This still rejects 00 as port number.
2012-03-27 07:44:10 +02:00
Martin Hurton
c428f6aece
tcp_address: check address length before manipulating it
2012-03-27 07:37:28 +02:00
Martin Hurton
c2e9997a3c
Don't set the AI_V4MAPPED flag on FreeBSD
...
The problem is that even though the AI_V4MAPPED flag is defined
on FreeBSD, the getaddrinfo function does not support it and
returns EAI_BADFLAGS.
The patch also sets the flag on Windows if it is defined there.
This is true for Windows Vista and later.
Fixes issue #331 .
2012-03-26 00:14:17 +02:00
Staffan Gimåker
b9fb48f47b
Resolve addresses in the calling thread on connect.
...
This allows us to actually report an error to the caller on resolve
failure, rather than asserting later on in the io thread.
Signed-off-by: Staffan Gimåker <staffan@spotify.com>
2012-02-16 14:42:55 +01:00
Ian Barber
770f84331f
Allowing value 0, and moving code to get_address functions based on feedback
2012-02-11 15:09:03 +00:00
Ian Barber
7b32c9cb51
Adding ZMQ_LAST_ENDPOINT for wildcard support on TCP and IPC sockets
2012-02-08 22:06:46 +00:00
Martin Sustrik
83975c1b21
Missing "defined" tokens added
...
The missing tokens broke the build if you used -Werror -Wundef
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-11-15 08:40:46 +01:00
Brett Cameron
de1d32daae
Fix getaddrinfo calls to work on OpenVMS
...
Signed-off by: Brett Cameron <Brett.Cameron@hp.com>
2011-11-04 14:15:06 +01: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
Martin Sustrik
193fa1c079
Accept square brackets around IPv6 address
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-09-03 10:19:08 +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
80a5f60e33
NIC name resolution moved to tcp_address_t
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-19 12:34:31 +02:00
Martin Sustrik
898ee99dc1
Windows build fixed
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-18 17:58:46 +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