Ben Noordhuis
|
45d7bd88c9
|
unix: explain SO_REUSEADDR and SO_REUSEPORT
|
2012-01-31 16:52:27 +01:00 |
|
Ben Noordhuis
|
332b72e589
|
sunos: fix uv_udp_set_ttl and uv_udp_set_multicast_loop
It turns out that setsockopt(IP_TTL) *does* expect an int, whereas
setsockopt(IP_MULTICAST_LOOP) needs a char.
|
2012-01-28 01:19:49 +01:00 |
|
Ben Noordhuis
|
16124bb34e
|
sunos: fix uv_udp_set_ttl and uv_udp_multicast_ttl
The argument to setsockopt(IP_TTL|IP_MULTICAST_TTL) should be a char, not an int
like on other Unices.
|
2012-01-28 00:11:47 +01:00 |
|
Ben Noordhuis
|
9c76d0d742
|
unix: turn on SO_REUSEPORT for UDP sockets
Required on BSD-like systems for local UDP multicast. Without it, the bind()
call fails with EADDRINUSE.
|
2012-01-27 00:49:57 +01:00 |
|
Ben Noordhuis
|
b88bc43543
|
unix: implement uv_udp_set_multicast_loop()
|
2012-01-24 00:07:22 +01:00 |
|
Ben Noordhuis
|
e710fdb518
|
unix: implement uv_udp_set_ttl()
|
2012-01-24 00:07:22 +01:00 |
|
Dan VerWeire
|
497b1ecd00
|
unix: add uv_udp_set_broadcast() and uv_udp_set_multicast_ttl()
|
2012-01-21 03:06:47 +01:00 |
|
Dan VerWeire
|
b674187c38
|
unix: set SO_REUSEADDR before binding
|
2012-01-21 03:06:43 +01:00 |
|
Ben Noordhuis
|
0e6e4abedc
|
unix: fix udp recv_start refcount
Calling uv_udp_recv_start() should not bump the event loop's reference count.
Fixes failing test udp_ref2.
|
2012-01-14 01:44:27 +01:00 |
|
Ben Noordhuis
|
52fba1a38f
|
unix: fix compiler warning
|
2012-01-12 16:00:31 +01:00 |
|
Shigeki Ohtsu
|
ba52023ef3
|
Fix missing increments of loop->counters
|
2011-12-12 18:01:26 +01:00 |
|
Roman Shtylman
|
a3d1f6fd6f
|
add uv_udp_set_membership for unix multicast support
- test-udp-multicast-join tests that multicast packets can be received
- stub src/win/udp.c until support added
|
2011-10-11 21:25:20 +02:00 |
|
Erick Tryzelaar
|
4c329060ca
|
unix,win: Start unifying shared bind code.
|
2011-10-04 16:46:39 -07:00 |
|
Erick Tryzelaar
|
23796d208c
|
Fixes #76. Unify OS error reporting
As a nice fringe benefit, this also shaves a word
off of a windows TCP handle by replacing "uv_err_t
bind_error" with "int bind_error".
|
2011-09-27 19:05:33 -07:00 |
|
Erick Tryzelaar
|
1d7e61fafa
|
unix,win: Check bind receives right socket type
|
2011-09-27 19:05:33 -07:00 |
|
Ben Noordhuis
|
01441ab02f
|
unix: fix close() of potentially uninitialized fd
|
2011-09-25 02:49:21 +02:00 |
|
Bert Belder
|
360f4119e4
|
Make getsockname/getpeername handle uninitialized sockets better
|
2011-09-04 19:18:56 +02:00 |
|
Bert Belder
|
12b01e95f9
|
Specialize uv_xxx_getsockname, add uv_tcp_getpeername
|
2011-09-04 04:49:13 +02:00 |
|
Ryan Dahl
|
58461d5ae7
|
split out unix's udp source
|
2011-08-31 11:23:29 -07:00 |
|