[mailto:address@hidden On Behalf
Of Mark Lakata
Sent: Wednesday, December 05, 2012 5:16 PM
Subject: Re: [lwip-users] Sending out TCP-Data as integer type
*I* need to read up on paying attention... sorry, I retract my comment. There
are 2 bugs in the original posting, first the data buffer size (should be
sizeof(int) and not 1) and second (which I missed) that he is not passing a
pointer. It has nothing to do with Endianness .
Maybe not a
typo – depends what the OP wants to do. If he wants to send a 0 to 255
as a byte (which is implied with a length of 1) then sizeof(int) isn’t
right – that sends (probably 4) bytes. You do need the address of data and
being a pointer to an int which is sent as bytes it might be affected by
endianess if the other end differs in endianess.