If the server continuously sends content to the client (keeping connection open) till it reaches max content-length - LightStreamer does that, can Casablanca properly sync the body() of the response?
So if I simply call read_line() in a loop will this work properly or is a callback missing in the SDK? It seems more reasonable if we can receive a callback when there is more data to read instead of doing the above in a loop.
while(!done)
{
response.body().read_line(data).get()
//process data here
}
One more questions:
will read_line() consume the body from the actually response so that as the data come I can keep consuming the new content or is there other things I need to do so body() is in sync with the the data being received? I know the SDK already handles WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE just not if it's properly synching the body() with a consumer provider buffer.
Thanks
So if I simply call read_line() in a loop will this work properly or is a callback missing in the SDK? It seems more reasonable if we can receive a callback when there is more data to read instead of doing the above in a loop.
while(!done)
{
response.body().read_line(data).get()
//process data here
}
One more questions:
will read_line() consume the body from the actually response so that as the data come I can keep consuming the new content or is there other things I need to do so body() is in sync with the the data being received? I know the SDK already handles WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE just not if it's properly synching the body() with a consumer provider buffer.
Thanks