In Linux, using sendfile you can directly transfer file out to a socket.
But let's say we have two server socket, we want to the output of the first one to go out to the second one.
How to do that? Instead of
data=sock1.read()
sock2.write(data)
In Linux, using sendfile you can directly transfer file out to a socket.
But let's say we have two server socket, we want to the output of the first one to go out to the second one.
How to do that? Instead of
data=sock1.read()
sock2.write(data)