c++ builder TClientWinSocket simbol substitution

Posted by Vlad on Stack Overflow See other posts from Stack Overflow or by Vlad
Published on 2012-08-31T09:16:16Z Indexed on 2012/09/11 9:38 UTC
Read the original article Hit count: 242

Filed under:

I have the following problem. I have to send a text telegram over tcp/ip to a host device. Telegram should be terminated using 0x1A (CTRL-Z) character. But when I send it, host told me that there is a wrong symbol in the telegram. When I terminate a telegram with 32 (0x20) everything is ok. I look the transfered data using WireShark and I see that when I send 0x1A it is substituted with 0x16, when I send 32 (0x20) as a terminator it is somehow substituted with 0x1A.

Can you explain it please.

P.S. I am working on windows 7, using c++builder xe2.

Thanks, Vladimir

© Stack Overflow or respective owner

Related posts about winsockets