Unix and Linux Discussions Tagged with batch |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
3,123 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
18,736 |
Windows & DOS: Issues & Discussions |
|
|
|
6 |
3,206 |
Shell Programming and Scripting |
|
|
|
2 |
2,304 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
11,434 |
Windows & DOS: Issues & Discussions |
|
|
|
3 |
2,090 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,931 |
Shell Programming and Scripting |
|
|
|
0 |
1,338 |
Shell Programming and Scripting |
|
|
|
3 |
2,409 |
Shell Programming and Scripting |
|
|
|
5 |
21,362 |
Shell Programming and Scripting |
|
|
|
4 |
6,861 |
Shell Programming and Scripting |
|
|
|
10 |
4,527 |
HP-UX |
|
|
|
7 |
6,726 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
4,437 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,625 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
11,617 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
15,402 |
Shell Programming and Scripting |
|
|
|
4 |
5,956 |
Windows & DOS: Issues & Discussions |
|
|
|
3 |
6,372 |
Shell Programming and Scripting |
|
|
|
4 |
35,170 |
Shell Programming and Scripting |
|
|
|
1 |
4,368 |
Shell Programming and Scripting |
|
|
|
3 |
5,848 |
Shell Programming and Scripting |
|
|
|
8 |
19,391 |
Windows & DOS: Issues & Discussions |
|
|
|
1 |
10,782 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,571 |
Shell Programming and Scripting |
|
|
|
4 |
6,545 |
AIX |
|
|
|
1 |
3,144 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,363 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
10,506 |
Windows & DOS: Issues & Discussions |
|
|
|
4 |
2,748 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
32,586 |
Gentoo |
|
|
|
0 |
2,111 |
UNIX and Linux RSS News |
|
|
|
10 |
20,121 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
6,194 |
Windows & DOS: Issues & Discussions |
|
|
|
0 |
3,545 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,558 |
Shell Programming and Scripting |
|
|
|
5 |
11,110 |
Shell Programming and Scripting |
|
|
|
3 |
9,492 |
Shell Programming and Scripting |
|
|
|
1 |
11,854 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,292 |
UNIX and Linux RSS News |
iob_new(3) Library Functions Manual 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)