2 * Acess2 Networking Toolkit
3 * By John Hodge (thePowersGang)
6 * - DNS Protocol Interface
30 CLASS_CH = 3, // "Chaos"
35 * \brief Handler for a DNS record obtained by DNS_Query
36 * \param info Value passed as the last argument to DNS_Query
37 * \param name NUL-terminated name associated with the returned record
38 * \param type Record type (may not be equal to requested)
39 * \param class Record class (may not be equal to requested)
40 * \param rdlength Length of data pointed to by 'rdata'
41 * \param rdata Record data
43 typedef void handle_record_t(void *info, const char *name, enum eTypes type, enum eClass class, unsigned int ttl, size_t rdlength, const void *rdata);
45 int DNS_Query(int ServerAType, const void *ServerAddr, const char *name, enum eTypes type, enum eClass class, handle_record_t* handle_record, void *info);