#include <ios>
#include <memory>
#include <event2/event.h>
#include <event2/http.h>
Go to the source code of this file.
◆ MAKE_RAII
#define MAKE_RAII |
( |
|
type | ) |
|
Value: \
struct type##_deleter { \
void operator()(struct type *ob) { \
type##_free(ob); \
} \
}; \
\
typedef std::unique_ptr<struct type, type##_deleter> raii_##type
Definition at line 14 of file events.h.
◆ MAKE_RAII() [1/5]
◆ MAKE_RAII() [2/5]
◆ MAKE_RAII() [3/5]
◆ MAKE_RAII() [4/5]
MAKE_RAII |
( |
evhttp_connection |
| ) |
|
◆ MAKE_RAII() [5/5]
MAKE_RAII |
( |
evhttp_request |
| ) |
|
◆ obtain_event()
raii_event obtain_event |
( |
struct event_base * |
base, |
|
|
evutil_socket_t |
s, |
|
|
short |
events, |
|
|
event_callback_fn |
cb, |
|
|
void * |
arg |
|
) |
| |
|
inline |
◆ obtain_event_base()
raii_event_base obtain_event_base |
( |
| ) |
|
|
inline |
◆ obtain_evhttp()
raii_evhttp obtain_evhttp |
( |
struct event_base * |
base | ) |
|
|
inline |
◆ obtain_evhttp_connection_base()
raii_evhttp_connection obtain_evhttp_connection_base |
( |
struct event_base * |
base, |
|
|
std::string |
host, |
|
|
uint16_t |
port |
|
) |
| |
|
inline |
◆ obtain_evhttp_request()
raii_evhttp_request obtain_evhttp_request |
( |
void(*)(struct evhttp_request *, void *) |
cb, |
|
|
void * |
arg |
|
) |
| |
|
inline |