What is sizeof(int) ?
Regards Hugh From: lwip-users-bounces+hugh=courtyard.co...@nongnu.org [mailto:lwip-users-bounces+hugh=courtyard.co...@nongnu.org] On Behalf Of Firedog I. Sent: 05 December 2012 14:38 To: lwip-users@nongnu.org Subject: [lwip-users] Sending out TCP-Data as integer type Hi everyone, I got a little problem over here. I can send simple TCP-Data like string and char, but I cant send data as integer type. Im using lwIP v1.36 with RAW API. Example: /*Connection to Client established */ int data = 0xFF; //or int data = 255; tcp_write(pcb, data, 1, 1); tcp_output(pcb); When sending this Packet out, I receive a 00 as data in Wireshark. Ive tried sending out the equal ASCII-char to 255, a ÿ (see extended ASCII), and this one works. When sending out this char, Wireshark shows a TCP-Packet with 1 byte length and a "ff" as data. Thats exactly what I want, but I dont want to convert integer vars into extended ascii and then send the converted data out. Any suggestions how to solve the problem? Thanks.
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users