From e6dc439b3a3fa2a64f9e938ac4e5810025c04242 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 31 Oct 2003 09:31:46 +0000 Subject: Rework wget, the xconnect interface, and its various clients in order to fix the problems with round robin DNS reported by Andrew Flegg: http://busybox.net/lists/busybox/2003-October/009579.html This removes the ipv6 specific xconnect dns lookups. I do not see why that would need to be special cased for ipv6 as was done, but that will just have to be tested. So IPV6 people -- please test this change! -Erik --- include/libbb.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 7587a407c..53062de4d 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -109,9 +109,9 @@ extern int is_directory(const char *name, int followLinks, struct stat *statBuf) extern int remove_file(const char *path, int flags); extern int copy_file(const char *source, const char *dest, int flags); extern ssize_t safe_read(int fd, void *buf, size_t count); -extern ssize_t safe_write(int fd, void *buf, size_t count); -extern ssize_t bb_full_write(int fd, const void *buf, size_t len); extern ssize_t bb_full_read(int fd, void *buf, size_t len); +extern ssize_t safe_write(int fd, const void *buf, size_t count); +extern ssize_t bb_full_write(int fd, const void *buf, size_t len); extern int recursive_action(const char *fileName, int recurse, int followLinks, int depthFirst, int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData), @@ -294,7 +294,9 @@ extern struct hostent *xgethostbyname(const char *name); extern struct hostent *xgethostbyname2(const char *name, int af); extern int create_icmp_socket(void); extern int create_icmp6_socket(void); -extern int xconnect(const char *host, const char *port); +extern int xconnect(struct sockaddr_in *s_addr); +extern int bb_getport(char *port); +extern void bb_lookup_host(struct sockaddr_in *s_in, char *host, char *port); //#warning wrap this? char *dirname (char *path); -- cgit v1.2.3