On Wed, 18 May 2016, smruti kumari wrote:

Let's consider I have two enpoints E1, E2 and one server. E1 send a request to server and server forward to E2. E2 gives two responses to E1 via server.If these two response come together(one after another) then how can I separte it these two response since it's a stream?

You have two transfers. E1 and E2. Then send and receive data. When the write callback is invoked by libcurl, they get the pointer set with CURLOPT_WRITEDATA passed to it as well. You can use that to pass in whatever data you want to help your function figure out which transfer the data belongs to.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html

Reply via email to