27 #ifndef _EVENT2_HTTP_COMPAT_H_ 28 #define _EVENT2_HTTP_COMPAT_H_ 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,
unsigned short port);
71 const char *address,
unsigned short port);
84 #define evhttp_request_uri evhttp_request_get_uri struct evhttp_connection * evhttp_connection_new(const char *address, unsigned short port)
A connection object that can be used to for making HTTP requests.
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 * evhttp_start(const char *address, unsigned short port)
Start an HTTP server on the specified address and port.
Common convenience functions for cross-platform portability and related socket manipulations.
Structure to hold information and state for a Libevent dispatch loop.
Definition: event.h:213