27 #ifndef EVENT2_HTTP_COMPAT_H_INCLUDED_ 28 #define EVENT2_HTTP_COMPAT_H_INCLUDED_ 41 #include <event2/event-config.h> 42 #ifdef EVENT__HAVE_SYS_TYPES_H 43 #include <sys/types.h> 45 #ifdef EVENT__HAVE_SYS_TIME_H 61 struct evhttp *
evhttp_start(
const char *address, ev_uint16_t port);
71 const char *address, ev_uint16_t port);
84 #define evhttp_request_uri evhttp_request_get_uri void evhttp_connection_set_base(struct evhttp_connection *evcon, struct event_base *base)
Associates an event base with the connection - can only be called on a freshly created connection obj...
struct evhttp_connection * evhttp_connection_new(const char *address, ev_uint16_t port)
A connection object that can be used to for making HTTP requests.
Common convenience functions for cross-platform portability and related socket manipulations.
struct evhttp * evhttp_start(const char *address, ev_uint16_t port)
Start an HTTP server on the specified address and port.
Structure to hold information and state for a Libevent dispatch loop.
Definition: event.h:217