Am 31.08.2010 um 09:07 schrieb Axel Dörfler:
andreas.faerber@xxxxxx wrote:Some corner cases like wrapping sequence numbers may cause a timeout.src/add-ons/kernel/network/protocols/tcp/tcp.h contains a nice and simple tcp_sequence C++ implementation that you may want to reuse.
There seemed to be zero reuse apart from remote disk. Will check, thanks for the hint!
Since TCP has limited use, can you please make it optional, that is addthe possibility to not compile it in via defines when it's not wanted? I could imagine that we will only enable it for certain platforms and uses.
There is no prior art there, and I don't see why TCP would have less use than UDP.
It's not just about compiling them in but also about NetStack initialization. What I could come up with was making TCP.cpp conditional on $ (TARGET_ARCH) = ppc in the Jamfile and using #ifdef __POWERPC__ in NetStack.cpp; that would work for me, but I don't consider it a good move. Do you have a more general suggestion we could apply to UDP, too?