문제

Is there something like the sendfile-syscall that works with multiple target file descriptors (i.e. instead of copying from one FD to another FD, it could should copy to, say, 4 FDs)?

I know that when talking about asynchronous IO, this is known as gather/scatter, but I could not find anything in the Linux AIO documentation.

도움이 되었습니까?

해결책

I am not aware of anything. I think the closest you are going to get to this is, assuming you are dealing with pipes, is to fashion something out of tee(2), vmsplice(2) and splice(2).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top