diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-22 05:29:06 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-22 05:29:06 +0000 |
commit | cf17d0d29c9526a0e9b6631693eb2bf0479e655c (patch) | |
tree | f2da64c5808b3120b5422d6e4948f73775976f92 /src/common/compat.h | |
parent | 036384fd8eaf83354ed59abec1c9816abd82528c (diff) | |
download | tor-cf17d0d29c9526a0e9b6631693eb2bf0479e655c.tar.gz tor-cf17d0d29c9526a0e9b6631693eb2bf0479e655c.zip |
move network_init from or/main to common/compat
call network_init in tor-resolve.c too
move tor_lookup_hostname from common/util to common/compat
svn:r3203
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 48163a95fc..dafd1339a5 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -117,8 +117,10 @@ int replace_file(const char *from, const char *to); struct in_addr; int tor_inet_aton(const char *cp, struct in_addr *addr); +int tor_lookup_hostname(const char *name, uint32_t *addr); void set_socket_nonblocking(int socket); int tor_socketpair(int family, int type, int protocol, int fd[2]); +int network_init(void); /* For stupid historical reasons, windows sockets have an independent * set of errnos, and an independent way to get them. Also, you can't * always believe WSAEWOULDBLOCK. Use the macros below to compare |