lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Encoding problem for received packet?


From: Sergio R. Caprile
Subject: Re: [lwip-users] Encoding problem for received packet?
Date: Wed, 18 Jun 2014 10:02:42 -0300
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Mike:
What you say is a bit confusing, I suggest you see bytes and check bytes
instead of who knows what.
I mean, \365 looks like octal, so maybe you are taking something from
somewhere and displaying in someotherwhere by doing someotherthing in
between, and maybe you are scrambling something in between and don't
realize.
There si no encoding nor the concept of that, either on lwip or on
TCP/IP today. You send bytes, you get bytes, so try to use a debugger
and watch memory first. (Words may have endianness issues, but lets
leave it on bytes for now since this is ASCII text).
If Wireshark shows the packet is correct (at the byte level), then you
should get your TCP payload out of the tcp_recv receiving function,
inside a pbuf p, at p->payload.




reply via email to

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