blob: 6b31ff48dfff97f17fff579b98eb414ba4fc9330 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef __ASYNC_RESOLVER_H__
#define __ASYNC_RESOLVER_H__
#include <netdb.h>
typedef void (*async_resolve_callback)(int ecode, struct addrinfo* ai, void* arg);
int async_resolver_init();
void async_resolver_uninit();
void async_resolver_queue(const char* hostname, const char* servname,
async_resolve_callback cb, void* arg);
#endif /* __ASYNC_RESOLVER_H__ */
|