From e0c9404a62238b06c7c2bc259a83e68ffce77dca Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Sat, 15 Dec 2012 05:15:41 +0100 Subject: TODO++, write email about libevent doc mistake --- doc/TODO.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/TODO.txt b/doc/TODO.txt index c647895..3a019fa 100644 --- a/doc/TODO.txt +++ b/doc/TODO.txt @@ -1,6 +1,23 @@ TODO ==== +=============================================================================== +EMAIL libevent doc mistake ? +To: nickm@alum.mit.edu Cc: provos@citi.umich.edu + +http://www.wangafu.net/~nickm/libevent-book/Ref9_dns.html +The addresses argument to the callback is NULL in the event of an error. For a PTR record, it’s a NUL-terminated string. For IPv4 records, it is an array of four-byte values in network order. For IPv6 records, it is an array of 16-byte records in network order. (Note that the number of addresses can be 0 even if there was no error. This can happen when the name exists, but it has no records of the requested type.) +=> +The addresses argument to the callback is NULL in the event of an error. For a PTR record, it’s pointer to a NUL-terminated string. For IPv4 records, it is an array of four-byte values in network order. For IPv6 records, it is an array of 16-byte records in network order. (Note that the number of addresses can be 0 even if there was no error. This can happen when the name exists, but it has no records of the requested type.) + +http://www.wangafu.net/~nickm/libevent-2.0/doxygen/html/dns_8h.html +addresses needs to be cast according to type. It will be an array of 4-byte sequences for ipv4, or an array of 16-byte sequences for ipv6, or a nul-terminated string for PTR. +=> +addresses needs to be cast according to type. It will be an array of 4-byte sequences for ipv4, or an array of 16-byte sequences for ipv6, or a pointer to a nul-terminated string for PTR. +=============================================================================== + + + gg_map: minimal version using evas, efx and elementary and igraph - http://igraph.sourceforge.net/index.html -- cgit v1.2.3-59-g8ed1b