Hi Paul,

thank you very much for your patch.  Unfortunately, something very
similar is already present in trunk:

/** Create a new HTTP server
 *
 * @param base (optional) the event base to receive the HTTP events
 * @return a pointer to a newly initialized evhttp server structure
 */
struct evhttp *evhttp_new(struct event_base *base);

/**
 * Start an HTTP server on the specified address and port.
 *
 * Can be called multiple times to bind the same http server
 * to multiple different ports.
 *
 * @param address a string containing the IP address to listen(2) on
 * @param port the port number to listen on
 * @return a newly allocated evhttp struct
 * @see evhttp_free()
 */
int evhttp_bind_socket(struct evhttp *http, const char *address, u_short port);


Niels.

On 11/3/07, Paul Fisher <[EMAIL PROTECTED]> wrote:
>
>
>
> The attached patch allows an evhttp server to properly operate on an
> alternative event_base that is set via a new interface evhttp_base_start(),
> which is also added by this patch. Basically this makes the http.c
> implementation apply the event_base present in the struct evhttp instance
> associated with the evhttp_connection/evhttp_request
> whenever an event is scheduled via event_set/event_add.
>
>  A separate patch will need to handle the evhttp clients.
>
>
>  --
>
>  paul
>
> _______________________________________________
> Libevent-users mailing list
> Libevent-users@monkey.org
> http://monkey.org/mailman/listinfo/libevent-users
>
>
>
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to