INitial commit.

This commit is contained in:
Ian Gulliver
2016-03-01 19:47:50 -08:00
parent ff01d7392e
commit ed338b9835
3 changed files with 144 additions and 1 deletions

8
asyncaddrinfo.h Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
struct addrinfo;
void asyncaddrinfo_init(size_t threads);
void asyncaddrinfo_cleanup(void);
int asyncaddrinfo_resolve(const char *node, const char *service, struct addrinfo *hints);
int asyncaddrinfo_result(int fd, struct addrinfo **addrs);