libevent
2.2.1
Event notification library
|
Go to the documentation of this file.
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
63 struct evhttp *
evhttp_start(
const char *address, ev_uint16_t port);
74 const char *address, ev_uint16_t port);
88 #define evhttp_request_uri evhttp_request_get_uri
Structure to hold information and state for a Libevent dispatch loop.
Definition: event.h:219
EVENT2_EXPORT_SYMBOL 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.
EVENT2_EXPORT_SYMBOL struct evhttp * evhttp_start(const char *address, ev_uint16_t port)
Start an HTTP server on the specified address and port.
EVENT2_EXPORT_SYMBOL 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...
Common convenience functions for cross-platform portability and related socket manipulations.