Re: Zero Padding Culprit



Hi Jon,

Thanks for helping me.

I'm sure I didn't explain my problem very well.
If I had, you probably wouldn't want to see any of my code because I think
it is irrelevant.

I have a Windows Forms application (C#) that uses UdpClient to send bytes to
the network.

Machine A: WinXP SP1, .Net Framework 1.1
Machine B WinXP SP2, .Net Framework 1.1 SP 1

Suppose I send a 5 byte message from my application on Machine A.
Using a packet sniffer, I can see my 5 byte payload on the network.
Life is good.
However, the same .exe running on Machine B acts differently.
Using a packet sniffer, I can see my 5 bytes plus 3 bytes of zero padding.

Why the zero padding, or 32-bit alignment?

Thanks, Jeff


.