summaryrefslogtreecommitdiff
path: root/src/node_net.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove net_legacy timers_legacyRyan Dahl2011-10-111-1781/+0
|
* net: fix multicast on sunosBen Noordhuis2011-08-241-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.hBen Noordhuis2011-08-241-2/+0
|
* net: fix incorrect sizeof()Tom Hughes2011-08-091-1/+1
|
* Complete eio upgradeRyan Dahl2011-08-061-2/+1
|
* Remove platform_win32_winsockBert Belder2011-08-021-1/+0
|
* SendTo and SendMsg expect a buffer only, not a string; fix the error ↵Joe Shaw2011-07-061-2/+2
| | | | message. Closes #1239.
* Revert "Add support for file descriptor type detection."Ryan Dahl2011-06-291-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 Ennis2011-03-171-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 headersRyan Dahl2011-03-141-0/+21
|
* Windows: child process fixesBert Belder2011-02-081-6/+6
|
* Fix mingw buildBert Belder2011-02-041-0/+8
|
* Revert "Workaround for libev handle caching bug on windows"Bert Belder2011-02-031-4/+0
| | | | This reverts commit 25d0e38048592eccf15e73c26191395eb0ba85cf.
* dgram: setMulticastTTL, setMulticastLoopback and addMembership.Joe Walnes2011-02-011-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 windowsRyan Dahl2011-01-281-6/+0
|
* Windows: better net supportBert Belder2011-01-241-48/+140
|
* Workaround for libev handle caching bug on windowsBert Belder2011-01-241-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 errorsBert Belder2011-01-181-2/+2
|
* Misc. cleanupsBert Belder2011-01-181-1/+1
| | | | casts, unused vars, function ordering, /* within comment, etc.
* Clean up the way windows headers are includedBert Belder2011-01-181-11/+11
| | | | Plus make inclusion order a little more consistent in general
* Merge remote branch 'origin/master'Bert Belder2011-01-021-44/+67
|\ | | | | | | | | | | Conflicts: src/node_net.cc src/node_os.cc
| * Fix memory corruption with unnamed AF_UNIX sockets.Tom Hughes2010-12-221-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 Schlossnagle2010-12-211-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 socketsBert Belder2010-12-201-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 socketerrorBert Belder2010-12-201-5/+10
| |
* | Fix connect bugBert Belder2010-12-201-1/+1
| |
* | Fix whitespace errors introduced by porting effortsBert Belder2010-12-201-1/+6
| |
* | node_net: IsIP and CreateErrnoException just workBert Belder2010-12-201-3/+3
| |
* | Bugfixes, more consistency in node_net error handlingBert Belder2010-12-201-14/+27
| |
* | Make node_net Connect workBert Belder2010-12-201-7/+11
| |
* | Make node_net Shutdown work on windowsBert Belder2010-12-201-3/+15
| |
* | Fix error reporting and EAGAIN handling bug in net WriteBert Belder2010-12-201-5/+7
| | | | | | | | Clarify some comments as well
* | Don't break the linux buildBert Belder2010-12-201-4/+4
| |
* | Make Read and Write in node_net.cc actually work on socketsBert Belder2010-12-201-0/+30
| |
* | Make Socket, Bind, Listen, Accept work for windowsBert Belder2010-12-201-6/+79
| |
* | Make SetNonBlock and SetSockFlags work on FDs instead of socketsBert Belder2010-12-201-2/+3
| | | | | | | | However, don't use _get_osfhandle in Close()
* | Use the c-ares pton/ntop hack in node_net.cc as wellBert Belder2010-12-201-0/+15
| |
* | Most of node_net is not yet available on windowsBert Belder2010-12-201-1/+27
| |
* | Make SetNonBlock and SetSockFlags work on mingwBert Belder2010-12-201-0/+11
| |
* | Fix headers for node_net.ccBert Belder2010-12-201-7/+12
|/
* Fix ErrnoExceptions that have the wrong syscall nameWade Simmons2010-11-231-2/+2
|
* Revert "Merge branch 'writev'"Ryan Dahl2010-11-201-1/+1
| | | | | | | This reverts commit cd9515efd99dfa6510e72342a2621bb4b291a89c, reversing changes made to df46c8e698b9400abaabd77ec836c7cdadf9735c. Too slow. Needs more work.
* IOWatcher::Dump(), writevRyan Dahl2010-11-181-1/+1
|
* Update node_net.cc to make us of node_constants.ccMicheil Smith2010-10-251-9/+0
| | | | also affects dgram which uses a constant from node_net.cc
* Work to get C++ fast buffers. incompleteRyan Dahl2010-09-091-26/+38
|
* Get away uint/int comparision warning.Herbert Vojčík2010-08-161-1/+1
|
* Added support for multiple listeners to DNS multicast datagrams.Rasmus Andersson2010-08-111-0/+22
| | | | Some platforms require SO_REUSEPORT to be set for the socket.
* Fix addrlen for unix_dgram socketsBenjamin Kramer2010-07-261-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, overrideRyan Dahl2010-07-171-6/+5
|
* Set SO_REUSEADDR on all socketsRyan Dahl2010-07-171-0/+2
|