Atozed Forums
idtcpclient EOL Customize - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Indy (https://www.atozed.com/forums/forum-8.html)
+--- Forum: Indy General Discussion (https://www.atozed.com/forums/forum-9.html)
+--- Thread: idtcpclient EOL Customize (/thread-1779.html)



idtcpclient EOL Customize - Madammar - 07-05-2020

Hi, can idtcpclient End of line be customized ?

currently its #13#10 

is there any property to modify that ?


RE: idtcpclient EOL Customize - rlebeau - 07-06-2020

(07-05-2020, 03:24 PM)Madammar Wrote: Hi, can idtcpclient End of line be customized ?

currently its #13#10 

is there any property to modify that ?

No, it is hard-coded, as most line-based Internet protocols use CRLF. However, you don't have to use WriteLn(), you can use Write() instead, then you can use whatever terminator you want, eg:

Code:
const
  MyTerminator = #10; // or whatever you want

IdTCPClient1.IOHandler.Write('some text' + MyTerminator);