Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MX_INCLUDE_HEADER
- #define MX_INCLUDE_HEADER
- struct MX_Information
- {
- std::string name;
- int prefernce;
- // bool operator==(const std::string & str) { return Function == str; }
- bool operator<(const MX_Information& a) { return prefernce < a.prefernce; }
- };
- bool GetOwnMXServers(std::vector<MX_Information>& results);
- bool GetMXServers(std::string server, std::vector<MX_Information>& results);
- static bool MXLookup(const char* name, std::vector<MX_Information>& results);
- static bool PtrLookup(const char* name, char* result);
- static void GenerateReverseLookupIP(const char* ip, char* result);
- static char* Get2LevelDomain(char* domain);
- #define NOT_A_IP 0xFFFFFFFF
- #define PTR_NAME_LENGTH 256
- static bool SortMxRecords(MX_Information const& lhs, MX_Information const& rhs);
- #endif // MX_INCLUDE_HEADER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement