TCP socket data fowarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux