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.
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users