7 topics in this chapter
How bytes leave a Node process through libuv, OS sockets, addresses, ports, routing, link-layer resolution, and packet boundaries.
42 min read
How Node turns hostnames into addresses through the OS resolver, c-ares, recursive DNS, records, TTLs, caches, and address-family ordering.
41 min read
How TCP connections move through handshake, ordered delivery, flow control, shutdown, and the error codes Node reports when the transport breaks.
43 min read
How Node's net.Server and net.Socket wrap OS socket state, libuv TCP handles, connection events, writes, shutdown, timeouts, and local IPC endpoints.
41 min read
How UDP datagrams move through Node's dgram API, libuv UDP handles, OS socket state, broadcast, multicast, connected UDP, and failure paths.
43 min read
How Node exposes socket options for binding, keep-alive probes, Nagle behavior, buffer sizing, backlog pressure, and IPv4/IPv6 bind behavior.
39 min read
Trace a Node connection from hostname lookup through routing, TCP connect, accept queues, libuv readiness, JavaScript callbacks, and the boundary before HTTP.
43 min read