src/Common/TcpIp/Dns.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace AppSecInc
00004 {
00005         namespace TcpIp
00006         {
00007                 namespace DNS
00008                 {
00010                         std::wstring GetHostByAddress(const std::wstring& ip_addr, int family = AF_INET);
00012                         std::string GetHostByAddress(const std::string& ip_addr, int family = AF_INET);
00014                         std::wstring GetHostByName(const std::wstring& name, int family = AF_INET);
00016                         std::string GetHostByName(const std::string& name, int family = AF_INET);
00018                         bool IsIpAddress(const std::wstring& name, int family = AF_INET);
00020                         bool IsIpAddress(const std::string& name, int family = AF_INET);
00022                         std::vector<std::wstring> GetHostIpAddresses(const std::wstring& name, int family = AF_INET);
00024                         std::vector<std::string> GetHostIpAddresses(const std::string& name, int family = AF_INET);
00026                         void GetHostInfo(const std::wstring& name, std::wstring& hostname, std::vector<std::wstring>& aliases, std::vector<std::wstring>& ipaddresses, int family = AF_INET);
00028                         void GetHostInfo(const std::string& name, std::string& hostname, std::vector<std::string>& aliases, std::vector<std::string>& ipaddresses, int family = AF_INET);
00030             std::wstring GetHostNameW(const std::wstring& defaultvalue = L"localhost");
00032             std::string GetHostNameA(const std::string& defaultvalue = "localhost");
00033                 }
00034         }
00035 }


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com