|
To many doubts
Hi Perderabo
I am basically trying to read a radar message following ASTERIX format(which is bit oriented) which comes on HDLC(little Endian) line.Now I have to put the bit stream coming into standard structures as per protocol.This decoding has to been implemented on Compaq(little endian) and i have to implement rather port it on HP(big endian).Since there is relative difference in LSB and MSB bits(I mean zeroth bit and 7th bit) on two platforms ,will redefining bit pattern will be a good solution to solve the problem.
##########
Also i have one general query regarding TCP and endian.Suppose I transmit from my application one long integer(say 8 bytes size) which is ruuning on littel endian and at other end on big endian system read it directly,will this cause some error.
################
Which is the ideal way or recommended way to transmit integers on network.Should we convert them to chars(one byte) and transmit 4 chars for one integer and regenerate integer using program at other end.
############
The last two question's answer will help me in my general understanding of transmission on TCP/IP and other lines.
###############
hope Perderabo you will be again kind enough to share some more knowlege of yours with all of us.
################
What difference it makes when u say TCP transmits octet and not byte?
I guess thats too many questions in one query.
sorry for that.
Last edited by Shobhit; 03-21-2002 at 10:18 PM..
|