|
-
December 1st, 2011, 09:28 PM
#3
Re: packet bit slips
#pragma pack, I had never heard of that. I will check and see if things are organized as I think they are.
I did make progress today. One obvious thing I realized is that the 32 bit Windows XP system Little Endian does not byte swap two bytes at a time. It byte reversed four bytes at a time. That and an error couting bytes got me two bytes off. There are a bunch of parameters that are small and with an offset of two and my Endian Swap error made my byte counting appear to be right, when it was not.
Geez, wait till I start seeing the native arangement of 64 bit code and complete reversal eight byte at a time.
First, in TCP, there is no such thing as a "packet".
That is puzzeling. I send my data in, lets call them chuncks, about 1500 bytes at a time. Each one is quite independent of the last and the next. (This is telemetry data) I don't want a stream at all. The vendor accepting the data has provided the layout that I must follow. To me it looks like "packaged data" and not a stream at all.
Thanks for the info about pragma pack.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|