cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Asynchronous

From: Ramprakash Jelari thinakaran <jelari_at_gmail.com>
Date: Mon, 10 Mar 2008 14:15:05 +0530

HI Alan,

Problem is with that only!.. We never knew how much size the client will
send.
For the whole life of one connection any time he can use sentTo() API and
pass the data to
us. Any other solution for such kind of problem in libcurl?

Regards
-Ramprakash Jelari -

On 3/10/08, Alan Wolfe <alan.wolfe_at_gmail.com> wrote:
>
> Hi Ramprakash,
>
> Hopefully I'm not oversimplifying the problem, but as you receive data
> could you store that in a file and when that file got over a certain
> size or when you knew you werent going to get any more data then it
> could post the contents of the file to the server?
>
>
> On Sun, Mar 9, 2008 at 10:46 PM, Ramprakash Jelari thinakaran
> <jelari_at_gmail.com> wrote:
> >
> >
> > HI all,
> >
> > Is there any possibility to avoid multiple post?...
> >
> > Facing some problem with Following Approach.
> >
> > Client application is sending some chunk of data to me very frequently.
> > Let's say with an API,
> > SendTo(data);.
> >
> > for(i=0; i<100; i++)
> > {
> > create data
> > sendto(data);
> > }
> >
> >
> > sendto(data)
> > {
> > set the data for POST
> > do curl_easy_perform ()
> > }
> >
> > each time i get the data, i do curl_easy_perform which will do the HTTP
> > post?..
> > what i don't want to do is the HTTP POST for each sendTo(data), instead,
> i
> > would like to
> > make the client buffer available into the ReadCallback function, so that
> it
> > keeps on sending the data to the server as long as the client provided
> the
> > data?. Ultimate goal is to avoid the multiple post, but with the single
> post
> > multiple data.
> >
> > So, is there any asynchronous operation that can be performed in the
> > libcurl?
> >
> > Kindly guide me.
> >
> >
> >
> >
> > ----
> > Ramprakash Jelari.
> >
>

-- 
Well Wisher,
Ramprakash Jelari.
"Yet to Findout Who am I ?"
Received on 2008-03-10