Re: libasr/libevent question

2018-02-16 Thread Klemens Nanni
On Fri, Feb 16, 2018 at 08:52:13AM -0600, ed...@pettijohn-web.com wrote: > Perhaps a doc bug then. Or an interpretation bug on my part. >From event_init(3)'s DESCRIPTION: The event API needs to be initialized with event_init() before it can be used. > > The event_asr_run() functi

Re: libasr/libevent question

2018-02-16 Thread edgar
Perhaps a doc bug then. Or an interpretation bug on my part. The event_asr_run() function is used to schedule the asynchronous resolver query aq to run within a libevent event loop, and call the fn callback when the result is available. The extra arg parameter is passed to the callback. The use

Re: libasr/libevent question

2018-02-16 Thread Eric Faurot
On Thu, Feb 15, 2018 at 07:41:55PM -0600, Edgar Pettijohn wrote: > I have this trivial program that I keep getting a segfault trying to use > event_asr_run(). I have #if 0'd working code to show my progression from > getaddrinfo() to event_asr_run(). It is hopefully something trivial that I'm > ove

libasr/libevent question

2018-02-15 Thread Edgar Pettijohn
I have this trivial program that I keep getting a segfault trying to use event_asr_run(). I have #if 0'd working code to show my progression from getaddrinfo() to event_asr_run(). It is hopefully something trivial that I'm overlooking. Anyway I compiled like so: cc -g -o test test.c -levent