Is writing to a socket an arbitrary limitation of the sendfile() syscall?
- by Sufian
Prelude
sendfile() is an extremely useful syscall for two reasons:
First, it's less code than a read()/write() (or recv()/send() if you prefer that jive) loop.
Second, it's faster (less syscalls, implementation may copy between devices without buffer, etc...) than the aforementioned methods.
Less code. More efficient. Awesome.
In UNIX,…