Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove net_legacy timers_legacy | Ryan Dahl | 2011-10-11 | 1 | -1781/+0 |
| | |||||
* | net: fix multicast on sunos | Ben Noordhuis | 2011-08-24 | 1 | -3/+14 |
| | | | | | | | | setsockopt(IP_MULTICAST_TTL|IP_MULTICAST_LOOP) takes an unsigned char as its argument on sunos. Partially fixes simple/test-dgram-multicast: test hangs after socket close but it no longer throws EINVAL exceptions. | ||||
* | Move ARRAY_SIZE macro to node.h | Ben Noordhuis | 2011-08-24 | 1 | -2/+0 |
| | |||||
* | net: fix incorrect sizeof() | Tom Hughes | 2011-08-09 | 1 | -1/+1 |
| | |||||
* | Complete eio upgrade | Ryan Dahl | 2011-08-06 | 1 | -2/+1 |
| | |||||
* | Remove platform_win32_winsock | Bert Belder | 2011-08-02 | 1 | -1/+0 |
| | |||||
* | SendTo and SendMsg expect a buffer only, not a string; fix the error ↵ | Joe Shaw | 2011-07-06 | 1 | -2/+2 |
| | | | | message. Closes #1239. | ||||
* | Revert "Add support for file descriptor type detection." | Ryan Dahl | 2011-06-29 | 1 | -72/+0 |
| | | | | | | | This reverts commit 911cbd0cef02c93f821c0c80a3d5dbad2b692c42. This patch is broken on Linux and I don't want to think about the functionality during the Windows port. We can reconsider it after v0.6. | ||||
* | Add support for file descriptor type detection. | Daniel Ennis | 2011-03-17 | 1 | -0/+72 |
| | | | | | | setImplementationMethods checks the type of a socket and defines different behavior based on the type, so auto detect it if type not implicitly specified. | ||||
* | Update copyright headers | Ryan Dahl | 2011-03-14 | 1 | -0/+21 |
| | |||||
* | Windows: child process fixes | Bert Belder | 2011-02-08 | 1 | -6/+6 |
| | |||||
* | Fix mingw build | Bert Belder | 2011-02-04 | 1 | -0/+8 |
| | |||||
* | Revert "Workaround for libev handle caching bug on windows" | Bert Belder | 2011-02-03 | 1 | -4/+0 |
| | | | | This reverts commit 25d0e38048592eccf15e73c26191395eb0ba85cf. | ||||
* | dgram: setMulticastTTL, setMulticastLoopback and addMembership. | Joe Walnes | 2011-02-01 | 1 | -3/+108 |
| | | | | | | | | | | These are options needed for real-world multicasting. Implementation notes: - POSIX only. - IPv4 only (IPv6 multicast is a tricky beast). - Didn't update tests, because it can't effectively be demonstrated on localhost only. | ||||
* | getaddrinfo exists on windows | Ryan Dahl | 2011-01-28 | 1 | -6/+0 |
| | |||||
* | Windows: better net support | Bert Belder | 2011-01-24 | 1 | -48/+140 |
| | |||||
* | Workaround for libev handle caching bug on windows | Bert Belder | 2011-01-24 | 1 | -0/+4 |
| | | | | | | | | | | | | The windows socket api uses handles, not fds. Libev caches the handle associated with an fd, and uses this handle when updating the (also cached) handle set that goes into select(). When an fd is closed and subsequently re-used before the event loop returns to libev, libev fails to detect properly that the handle changed. And even if it does, the cached handle of the closed socket is overwritten by the new handle, so by the time libev tries to update the select fdset it has forgotten which handle to remove from it. This is solved by a simple hook ev_fd_closed that makes it clear its caches before the fd is re-used. | ||||
* | Fix detection of socket errors | Bert Belder | 2011-01-18 | 1 | -2/+2 |
| | |||||
* | Misc. cleanups | Bert Belder | 2011-01-18 | 1 | -1/+1 |
| | | | | casts, unused vars, function ordering, /* within comment, etc. | ||||
* | Clean up the way windows headers are included | Bert Belder | 2011-01-18 | 1 | -11/+11 |
| | | | | Plus make inclusion order a little more consistent in general | ||||
* | Merge remote branch 'origin/master' | Bert Belder | 2011-01-02 | 1 | -44/+67 |
|\ | | | | | | | | | | | Conflicts: src/node_net.cc src/node_os.cc | ||||
| * | Fix memory corruption with unnamed AF_UNIX sockets. | Tom Hughes | 2010-12-22 | 1 | -26/+44 |
| | | | | | | | | | | | | AF_UNIX sockets can have a pathname, be unnamed, or abstract (Linux only). If an unnamed socket is returned by getsockname, getpeername, or accept, sun_path should not be inspected. | ||||
| * | The following error can be thrown from accept on ECONNABORT. Instead, it ↵ | Theo Schlossnagle | 2010-12-21 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | should be ignored. net:1100 if (e.errno != EMFILE) throw e; ^ Error: ECONNABORTED, Software caused connection abort at IOWatcher.callback (net:1098:24) at node.js:773:9 | ||||
* | | Support for non-overlapped sockets | Bert Belder | 2010-12-20 | 1 | -10/+4 |
| | | | | | | | | | | | | By default windows creates sockets with the WSA_FLAG_OVERLAPPED flag set. Because child processes don't expect to have overlapped stdio (it never happens) it won't work with them. | ||||
* | | Port socketerror | Bert Belder | 2010-12-20 | 1 | -5/+10 |
| | | |||||
* | | Fix connect bug | Bert Belder | 2010-12-20 | 1 | -1/+1 |
| | | |||||
* | | Fix whitespace errors introduced by porting efforts | Bert Belder | 2010-12-20 | 1 | -1/+6 |
| | | |||||
* | | node_net: IsIP and CreateErrnoException just work | Bert Belder | 2010-12-20 | 1 | -3/+3 |
| | | |||||
* | | Bugfixes, more consistency in node_net error handling | Bert Belder | 2010-12-20 | 1 | -14/+27 |
| | | |||||
* | | Make node_net Connect work | Bert Belder | 2010-12-20 | 1 | -7/+11 |
| | | |||||
* | | Make node_net Shutdown work on windows | Bert Belder | 2010-12-20 | 1 | -3/+15 |
| | | |||||
* | | Fix error reporting and EAGAIN handling bug in net Write | Bert Belder | 2010-12-20 | 1 | -5/+7 |
| | | | | | | | | Clarify some comments as well | ||||
* | | Don't break the linux build | Bert Belder | 2010-12-20 | 1 | -4/+4 |
| | | |||||
* | | Make Read and Write in node_net.cc actually work on sockets | Bert Belder | 2010-12-20 | 1 | -0/+30 |
| | | |||||
* | | Make Socket, Bind, Listen, Accept work for windows | Bert Belder | 2010-12-20 | 1 | -6/+79 |
| | | |||||
* | | Make SetNonBlock and SetSockFlags work on FDs instead of sockets | Bert Belder | 2010-12-20 | 1 | -2/+3 |
| | | | | | | | | However, don't use _get_osfhandle in Close() | ||||
* | | Use the c-ares pton/ntop hack in node_net.cc as well | Bert Belder | 2010-12-20 | 1 | -0/+15 |
| | | |||||
* | | Most of node_net is not yet available on windows | Bert Belder | 2010-12-20 | 1 | -1/+27 |
| | | |||||
* | | Make SetNonBlock and SetSockFlags work on mingw | Bert Belder | 2010-12-20 | 1 | -0/+11 |
| | | |||||
* | | Fix headers for node_net.cc | Bert Belder | 2010-12-20 | 1 | -7/+12 |
|/ | |||||
* | Fix ErrnoExceptions that have the wrong syscall name | Wade Simmons | 2010-11-23 | 1 | -2/+2 |
| | |||||
* | Revert "Merge branch 'writev'" | Ryan Dahl | 2010-11-20 | 1 | -1/+1 |
| | | | | | | | This reverts commit cd9515efd99dfa6510e72342a2621bb4b291a89c, reversing changes made to df46c8e698b9400abaabd77ec836c7cdadf9735c. Too slow. Needs more work. | ||||
* | IOWatcher::Dump(), writev | Ryan Dahl | 2010-11-18 | 1 | -1/+1 |
| | |||||
* | Update node_net.cc to make us of node_constants.cc | Micheil Smith | 2010-10-25 | 1 | -9/+0 |
| | | | | also affects dgram which uses a constant from node_net.cc | ||||
* | Work to get C++ fast buffers. incomplete | Ryan Dahl | 2010-09-09 | 1 | -26/+38 |
| | |||||
* | Get away uint/int comparision warning. | Herbert Vojčík | 2010-08-16 | 1 | -1/+1 |
| | |||||
* | Added support for multiple listeners to DNS multicast datagrams. | Rasmus Andersson | 2010-08-11 | 1 | -0/+22 |
| | | | | Some platforms require SO_REUSEPORT to be set for the socket. | ||||
* | Fix addrlen for unix_dgram sockets | Benjamin Kramer | 2010-07-26 | 1 | -17/+5 |
| | | | | | The old definition was off by one byte on BSD. Also simplify ADDRESS_TO_JS because sun_path is always zero-terminated now. | ||||
* | Apple's SUN_LEN is broken, override | Ryan Dahl | 2010-07-17 | 1 | -6/+5 |
| | |||||
* | Set SO_REUSEADDR on all sockets | Ryan Dahl | 2010-07-17 | 1 | -0/+2 |
| |