Just use an event loop and http callbacks in your server code. That's
what the whole point of libevent is, i think. I can show you an
example libevent based http page http://mappinghell.net:2 it
refreshes some data each 2 seconds in the web page using ajax. You'll
need to manually set some http
On Thu, Nov 11, 2010 at 11:16 PM, Kevin Bowling
wrote:
>
>
> On Thu, Nov 11, 2010 at 9:00 PM, Nick Mathewson wrote:
>>
>> On Thu, Nov 11, 2010 at 10:42 PM, Kevin Bowling
>> wrote:
>> > Hi,
>> >
>> > I've seen a few mails talking about evbuffer_peek, but no solid usage of
>> > it. The doxygen on
On Thu, Nov 11, 2010 at 9:00 PM, Nick Mathewson wrote:
> On Thu, Nov 11, 2010 at 10:42 PM, Kevin Bowling
> wrote:
> > Hi,
> >
> > I've seen a few mails talking about evbuffer_peek, but no solid usage of
> > it. The doxygen on the libevent page doesn't cover it generating my own
> > from 2.0.8 h
On Thu, Nov 11, 2010 at 10:42 PM, Kevin Bowling
wrote:
> Hi,
>
> I've seen a few mails talking about evbuffer_peek, but no solid usage of
> it. The doxygen on the libevent page doesn't cover it generating my own
> from 2.0.8 has shed little light on its use to me.
There's an example at
http://ww
Hi,
I've seen a few mails talking about evbuffer_peek, but no solid usage of
it. The doxygen on the libevent page doesn't cover it generating my own
from 2.0.8 has shed little light on its use to me.
Basically, for my test case I have two bytes in network order that make up a
short. These are o
On Thu, Nov 11, 2010 at 8:00 PM, Ralph Castain wrote:
> Afraid I am hitting a brick wall, Nick. I can't make the threaded code work.
> Perhaps you have some further advice?
>
> I have attached my test code. Basically, it initializes the event lib, calls
> use_threads, creates a new base, and the
Afraid I am hitting a brick wall, Nick. I can't make the threaded code work.
Perhaps you have some further advice?
I have attached my test code. Basically, it initializes the event lib, calls
use_threads, creates a new base, and then spawns a progress thread that calls
event_loop (you'll see th
Hello
(I'm using the usual libevent 1.4 package on Debian/Sid/AMD64, but
could compile & use libevent 2.0 if asked)
I am developping a multi-threaded application using libevent -
currently an experiment [the goal would be to develop a high-level
programming language which is wiki-like and used th