equal
deleted
inserted
replaced
|
1 #ifndef LIBQMSK_SOCK_H |
|
2 #define LIBQMSK_SOCK_H |
|
3 |
|
4 /** |
|
5 * @file |
|
6 * |
|
7 * Legacy sock_* interface for global state. |
|
8 * |
|
9 * XXX: replace with separate event_base per transport |
|
10 */ |
|
11 #include "error.h" |
|
12 #include <sys/types.h> |
|
13 #include <event2/event.h> |
|
14 |
|
15 /** |
|
16 * Initialize the socket module's global state. Call this before calling any other sock_* functions. |
|
17 * |
|
18 * The given \a ev_base is the libevent base to use for nonblocking operation. |
|
19 * |
|
20 * @param ev_base the libevent base to use for events |
|
21 * @param err returned error info |
|
22 */ |
|
23 err_t sock_init (struct event_base *ev_base, error_t *err); |
|
24 |
|
25 #endif |