iob_new man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

iob_new(3)							    iob_new(3)

NAME
       iob_new - create new I/O batch

SYNTAX
       #include <iob.h>

       io_batch* iob_new(int hint_entries);

DESCRIPTION
       iob_new	creates	 a  new	 I/O  batch  with  enough  space allocated for
       hint_entries entries (buffers or files).	 This is purely a  performance
       hint, if you are unsure just pass 1.

       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).

RETURN VALUE
       iob_new returns a pointer to an I/O batch data structure.  If there was
       a memory allocation error, it returns NULL instead.

SEE ALSO
       iob_reset(3),	 iob_send(3),	  iob_addbuf(3),     iob_adds_free(3),
       iob_addfile(3)

								    iob_new(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net