[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Sending out TCP-Data as integer type

From: Simon Goldschmidt
Subject: Re: [lwip-users] Sending out TCP-Data as integer type
Date: Thu, 06 Dec 2012 08:51:37 +0100

"Firedog I." wrote:
> Thanks a lot to all of you for your answers. I changed it to
> int* data = 0xFF;
> tcp_write(pcb, &data,1,1);
> and now it works just perfect. I get a single byte as data in the TCP
> Packet with an ff.

Just my 2 cents on this: do read up on endianess! The code you posted above is 
*not* portable regarding endianess, although it might happen to work on your 
current platform.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]