David Siegel
81ad8106dc
Add UDP broadcast support
15 years ago
Paul Querna
02da5ed4a1
Implement datagram sockets
- Adds new dgram module, for all data-gram type transports
- Supports both UDP client and servers
- Supports Unix Daemon sockets in DGRAM mode too (think syslog)
- Uses a shared Buffer and slices that as needed to be reasonably
performant.
- One supplied test program so far, test-dgram-pingpong
- Passes test cases on osx 10.6 and ubuntu 9.10u
15 years ago
Peter Griess
8f0b4e9111
Send and receive file descriptors through net.Stream.
a) create a layer of indirection in net.Stream to allow swapping in
different read/write implementations and
b) emit an 'fd' event when file descriptors are received over a UNIX pipe,
as finally as a tangential benefit
c) remove a bunch of conditionals from the primary codepaths for
ease-of-reading.
15 years ago
Ryan Dahl
78e49f1c88
Rename node_net2.cc to node_net.cc
15 years ago
Brian White
ab5c0dd63e
Port to OpenBSD
15 years ago
Ryan Dahl
8e5b91c79b
Revert "Check for strings.h"
This reverts commit 032f651824
.
15 years ago
Ryan Dahl
032f651824
Check for strings.h
15 years ago
Peter Griess
d9882395e2
Fix SEGV by setting msg_controllen earlier.
- Some implementations of CMSG_FIRSTHDR() rely on msg_controllen being
set correctly, else it returns NULL: see <linux/socket.h>.
15 years ago
Ryan Dahl
9926dacd14
Remove getaddrinfo from net2.cc
15 years ago
Ryan Dahl
c72967d335
Remove http_old tcp_old
15 years ago
Ryan Dahl
c9e27b11c5
Unify ErrnoException creation
15 years ago
Herbert Vojčík
4badb227cf
Fix TCP_KEEPIDLE build failure in FreeBSD.
15 years ago
Julian Lamb
5f8f561d61
add setKeepAlive function, which enables and sets the TCP keep-alive timer
15 years ago
Ryan Dahl
9331218449
Servers shouldn't die on EMFILE
15 years ago
Ryan Dahl
ae805f1057
Emit 'error' on tcp connection DNS error
15 years ago
Ryan Dahl
b9106b0ecd
Use AF_INET sockets instead of always AF_INET6
You can get AF_INET6 still, it's just not the only choice.
15 years ago
Ryan Dahl
3197cf291d
Better flushing
Lost Utf8 support. Waiting for http://codereview.chromium.org/1539013
15 years ago
Ryan Dahl
aec80d47bb
Better check for FDs in net2 bindings
15 years ago
Herbert Vojcik
9e97e185ad
EAI_NODATA deprecated, patch to use EAI_NONAME if missing (it is in FreeBSD)
15 years ago
Ryan Dahl
b6edae5671
Expose errno exception creation
15 years ago
Ryan Dahl
263813ae3e
Whitespace for node_net2.cc
15 years ago
Ryan Dahl
8fdb39a4ae
Add errno symbol to error messages
15 years ago
Ryan Dahl
bf803f478b
Reimplment Buffers
15 years ago
Ryan Dahl
df59f06734
recvMsg shouldn't return array for efficiency.
15 years ago
David Sklar
a876df6c71
Initial take on passing FDs between processes
15 years ago
Ryan Dahl
8d0f756158
[net2] delete unix sockfile on server start and shutdown
15 years ago
Ryan Dahl
0d31e9875f
[net2] socket.setNoDelay
15 years ago
David Sklar
de9bfdea8e
[net2] toRead() for non-linux (SIOCINQ -> FIONREAD)
15 years ago
Ryan Dahl
2582560f91
[net2] Do hostname lookups in connect and listen
15 years ago
Ryan Dahl
8330316014
Fix errors in getaddrinfo
15 years ago
Ryan Dahl
07333a4ab0
[net2] Set FD_CLOEXEC on created socket fds.
15 years ago
Ryan Dahl
25700e65ee
[net2] Better EOF marking, rename events
15 years ago
Ryan Dahl
6e5abf4551
implement getaddrinfo
15 years ago
Ryan Dahl
0618f02f6f
Implement half-closed streams
15 years ago
Ryan Dahl
bddd6e9ca3
Implement stream.send()
15 years ago
Ryan Dahl
1da15d623e
Fix buffer bug, implement tcp recv
15 years ago
Ryan Dahl
0ecd0fa598
IOWatcher callback isn't internal, fix bug in Accept
15 years ago
Ryan Dahl
469e2648e5
More bindings, beginning tcp server code in js
15 years ago
Ryan Dahl
c819abccb6
Start on net2
15 years ago