Re: [Libevent-users] evhttp server on unix socket

2010-12-28 Thread Christophe ZBIERSKI
It's OK, I use evhttp_accept_socket. thank you, and Happy New Year Le 01/12/2010 16:48, Nick Mathewson a écrit : > On Wed, Dec 1, 2010 at 1:28 AM, Christophe Zbierski > wrote: > >> Hi, is it possible to bind an HTTP server on unix socket instead of addr

Re: [Libevent-users] evhttp server on unix socket

2010-11-30 Thread Christophe ZBIERSKI
Le 01/12/2010 07:47, Basile Starynkevitch a écrit : > I don't know fur sure, and I believe it should require some patch. > > However, I am interested to understand why you are asking that. > > In particular, at least under Linux, I know unfortunately no Web > browser (or other HTTP client) able to

[Libevent-users] evhttp server on unix socket

2010-11-30 Thread Christophe Zbierski
Hi, is it possible to bind an HTTP server on unix socket instead of address and port (int evhttp_bind_socket (struct evhttp *http, const char *address, u_short port) ). Thanks Christophe

Re: [Libevent-users] bufferevent and threads

2010-11-16 Thread Christophe ZBIERSKI
Hi, I found and solved my problem. I just added 'evthread_use_pthreads();' before 'event_base_dispatch(base);' and 'BEV_OPT_THREADSAFE' > bev = bufferevent_socket_new(base, newsock, BEV_OPT_CLOSE_ON_FREE|BEV_OPT_THREADSAFE); Bye. Le 04/11/2010 14:46, Christophe

[Libevent-users] bufferevent and threads

2010-11-04 Thread Christophe ZBIERSKI
Hello, I made a daemon that receives data from a socket, data is read from callback (readcb) : > bufferevent_setcb(bev, readcb, NULL, eventcb, conndata); then it is given to a thread (because the treatment can be long). Then this is the thread that writes the result of the treatment on the sock