Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdHTTP Lightstreamer Client
#5
(05-13-2019, 01:50 PM)rsiw2000 Wrote: I'd like to know if there's any better approach to do this or even if it's possible to write a class to replace the receive buffer (of course, the goal is no buffering).

I already told you one way:

Quote:Otherwise, you may have to resort to using TIdTCPClient instead, manually implementing enough of the HTTP protocol to get the streaming started, and then you can read the data however you want.

As I said earlier, TIdHTTP simply is not designed for live streaming, and it seems the server data you are receiving does not follow any of the formats that TIdHTTP does provide workarounds for.

I suggest manually implementing a minimal HTTP client using TIdTCPClient directly so you have full control over the reading, then you can use the TIdIOHandler.ReadLn() method in a loop, since you say the server data is CRLF delimited. Then you don't need a custom TStream descendant at all.

Reply


Messages In This Thread
TIdHTTP Lightstreamer Client - by rsiw2000 - 05-03-2019, 11:55 AM
RE: TIdHTTP Lightstreamer Client - by rlebeau - 05-03-2019, 06:37 PM
RE: TIdHTTP Lightstreamer Client - by rsiw2000 - 05-13-2019, 01:50 PM
RE: TIdHTTP Lightstreamer Client - by rlebeau - 05-14-2019, 08:37 AM
RE: TIdHTTP Lightstreamer Client - by rsiw2000 - 05-14-2019, 01:42 PM
RE: TIdHTTP Lightstreamer Client - by rsiw2000 - 05-03-2019, 09:57 PM
RE: TIdHTTP Lightstreamer Client - by rsiw2000 - 05-16-2019, 03:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)