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