![]() |
InternalResolveDNS() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: SpoofSocket.h |
static sockaddr_in InternalResolveDNS( const std::string& rAddress);
Reseolve DNS
//Convert it to the address sockaddr_in aAddr; memset(&aAddr,0,sizeof(aAddr)); try { //Resolve the DNS hostent* pData; pData=gethostbyname(rAddress.c_str()); //Check if this address exists if (pData) //Copy the data memcpy(&aAddr.sin_addr, pData->h_addr, pData->h_length); return aAddr; } ERROR_HANDLER_STATIC_RETURN(CSpoofSocket_LOGNAME,"InternalResolveDNS",aAddr)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |