Skip to content

Sending a file without reading it

A server sends a file over a socket. The naive version reads into a buffer then writes from it. A zero-copy call sends it directly.

What is saved?