[ECOS] tcp_sink/source/echo byte ordering
Mon Apr 10 11:30:00 GMT 2000
Grant Edwards <firstname.lastname@example.org> writes:
> The three network programs tcp_echo, tcp_sink, and tcp_source
> will only inter-operate if all three hosts have the same byte
> order. Adding a few htonl() and ntohl() macros when
> manipulating the "params" struct fixes things.
> Attached are my fixed sources for the three. (I also fixed
> some gcc warnings in source/sink).
Thanks for those, I have merged them into the eCos trunk, so they should
re-emerge into the light when next the anoncvs world is updated. (Actually
only tcp_echo required some merging of the surrounding stuff, the others
> Next time I'll send patches instead of entire files, but it's
> Monday, I don't have the original source tree around, and I
> have to leave right now and go waste my lunch hour to renew my
> driver's license...
You can't be 70 already! Oh sorry, license with an 'S', my mistake ;-)
The 20th Century brought unprecedented increases in worldwide numeracy and
literacy and incredible advances in technology, science and mathematics.
It was also the only century in the past or in any reasonable predictable
future apparently to contain only 99 years.
More information about the Ecos-discuss