Lnet LF terminated string lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- michoux · 2021-05-28 07:25 Hello I use Lnet to connect to server. Server sends a string from time to time. I read it with GetMessage String contains "lines" terminated  by LF - line feed In  TCPBlockSocket there is nice option "connection.RecvTerminated" which will brake string by lines so I can read it line by line and parse it. Is there such option in lnet? Regards Matija ---------------------------------------------------------------------- engkin · 2021-05-28 13:10 Use Split from SysUtils: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses ...SysUtils......var  s:String;  a:TStringArray;...  .....GetMessage(s)...  a:=s.Split(#$0A); ---------------------------------------------------------------------- MarkMLl · 2021-05-28 15:12 ...although that wouldn't handle the cases where one end of the streamed data or the other comprised an incomplete line. I've got two questions: (i) why is the protocol terminating on LF rather than on CRLF which is the Internet standard and (ii) is OP using the LNet implementation bundled (as a tool and unsupported) with FPC or the one from Github etc. which is really where questions should be directed? MarkMLl