summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/dns.h3
-rw-r--r--include/socket.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/include/dns.h b/include/dns.h
index 9b477e98f..5417d3c61 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -59,16 +59,13 @@ private:
int myfd;
void dns_init_2(const char* dnsserver);
insp_inaddr *dns_aton4(const char * const ipstring);
- char *dns_ntoa4(const insp_inaddr * const ip);
int dns_getip4(const char * const name);
int dns_getip4list(const char * const name);
int dns_getname4(const insp_inaddr * const ip);
char *dns_getresult(const int fd);
insp_inaddr *dns_aton4_s(const char * const ipstring, insp_inaddr * const ip);
- char *dns_ntoa4_s(const insp_inaddr * const ip, char * const result);
char *dns_getresult_s(const int fd, char * const result);
insp_inaddr *dns_aton4_r(const char * const ipstring);
- char *dns_ntoa4_r(const insp_inaddr * const ip);
char *dns_getresult_r(const int fd);
public:
/** The default constructor uses dns addresses read from /etc/resolv.conf.
diff --git a/include/socket.h b/include/socket.h
index 01005305b..254d23f46 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -47,6 +47,9 @@ typedef struct in_addr insp_inaddr;
#endif
+const char* insp_ntoa(insp_inaddr n);
+int insp_aton(const char* a, insp_inaddr* n);
+
int OpenTCPSocket();
bool BindSocket(int sockfd, insp_sockaddr client, insp_sockaddr server, int port, char* addr);
int BindPorts(bool bail);