The net control flow in my program is roughly like this:

1. Connect to machine A (thus obtaining socket A)
2. Accept some connection from (any) machine B (thus obtaining socket B)
3. Transfer data from B to A until close or similar.

The program is supposed to be a load balancer that accepts connections from WAN and distributes them to a bunch of machines on a LAN. This is why it doesn't actually care about the data. It only needs to accept connections from a WAN and connect them with some machines on the LAN. I think that doing the data transfer manually in the load balancer isn't a very good idea, from a robustness and throughput point of view.

Let me know if I need to clarify more.

Thanks.

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to