iob_new(3) - Linux man page
Name
iob_new - create new I/O batchSyntax
#include <iob.h>io_batch* iob_new(int hint_entries);
Description
You can add buffers, strings and files to an I/O batch and then send it all at once using iob_send.
The benefit of the I/O batch API is that it exploits platform specific APIs like FreeBSD's sendfile. The file contents will always be sent in a way that allows the operating systems to perform zero copy TCP, and the buffers will always be sent using as few syscalls as possible and avoiding unnecessary copying (using writev).