I tried this sendfile
example:
https://github.com/pijewski/sendfile-example/blob/master/sendfile.c
I noticed, I can use sendfile
with normal files and it works as expected.
I thought, on Linux, it can be used only if destination is network socket?
How it works? Do copy is done with read
/ write
loop, just inside the kernel.