Hi all.
Suppose I've got two sockets, A and B, and I'd like to make it so all
data that arrives on B gets sent to A. My program does not care about
the transferred data (and never will), and should handle roughly 5000
such A/B socket pairs.
I think it's possible to use a combination of tee()/split() to get the
(non-)buffering done in the kernel, but it seems that my program's
level of indifference towards the data admits an even higher-level
mechanism of forwarding the data from B to A.
How can this be done without explicitly copying the data in my program?
Thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html