sendfile() copies data between one file descriptor and another. Because this copying is done within the kernel, sendfile() is more
efficient than the combination of read(2) and write(2), which would require transferring data to and from user space.
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |