using irc::sockets::insp_ntoa;
using irc::sockets::insp_aton;
using irc::sockets::OpenTCPSocket;
+using irc::sockets::NonBlocking;
/** Masks to mask off the responses we get from the DNSRequest methods
*/
/* Initialize mastersocket */
int s = OpenTCPSocket(ServerInstance->Config->DNSServer, SOCK_DGRAM);
this->SetFd(s);
+ NonBlocking(s);
/* Have we got a socket and is it nonblocking? */
if (this->GetFd() != -1)
#endif
const char* ipaddr_from;
unsigned short int port_from = 0;
+
+ void* m_readEvent = NULL;
+ GetExt("windows_readevent", m_readEvent);
+
int length = _recvfrom(this->GetFd(),(char*)buffer,sizeof(DNSHeader),0,from,&x);
/* Did we get the whole header? */