Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
idtcpclient EOL Customize
#1
Hi, can idtcpclient End of line be customized ?

currently its #13#10 

is there any property to modify that ?
Reply
#2
(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);

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)