From 227909e2cf0039737dc52872651837fe5f1702b5 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 17 Sep 2010 19:20:07 -0400 Subject: Rejig of some of the socket stuff. Fixed marking sockets as nonblocking on Windows. Added in a LastError function to keep having to use strerror/GetLastError everywhere. --- include/dns.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dns.h') diff --git a/include/dns.h b/include/dns.h index 51960b0f4..4f61ef909 100644 --- a/include/dns.h +++ b/include/dns.h @@ -134,7 +134,7 @@ class DNSSocket : public ClientSocket int SendTo(const unsigned char *buf, size_t len) const; int RecvFrom(char *buf, size_t size, sockaddrs &addrs) const; public: - DNSSocket(const Anope::string &nTargetHost, int nPort); + DNSSocket(const Anope::string &nTargetHost, int Port); virtual ~DNSSocket(); bool ProcessRead(); -- cgit