Yes, you do want to keep state across calls as the data will be given to
you incrementally as it arrives over the network.
You can use the "*con_cls" storage location to store connection-specific
data.

Some example code is here:
http://www.git.taler.net/?p=mint.git;a=blob;f=src/mint/taler-mint-httpd_parsing.c;h=15c7215eae0be7d86c8501848199c982579f0a87;hb=HEAD

(the function you want is TMH_PARSE_post_json).

Happy hacking!

Christian

On 06/24/2015 03:41 PM, Harish Indla wrote:
>
> Hi Christian,
>
> Thanks for your reply.
>
> I have a doubt, my data is recieved to*answer**_**to**_**connection*in
> upload_data.
>
> I want to remember the data when it isreceivedthrough multiple iterations.
>
> What can I do instead of storing in global variable(because  I am
> using use_thread_per_connection).
>
> Thanks & Regards
>
> Harish
>


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to