write_graphite plugin: Improve Hostname / Port handling.
authorFlorian Forster <octo@collectd.org>
Thu, 2 Feb 2012 16:39:21 +0000 (17:39 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 2 Feb 2012 17:17:44 +0000 (18:17 +0100)
commit75754cebc8d16dc4246d83c61dc5adba610ddfa0
treeca9b90e9cd580453d0eb9f178464142a2ae96c17
parentbd5985aa3853e2e71cf03dda75a86f6703e521e2
write_graphite plugin: Improve Hostname / Port handling.

Use getaddrinfo(3) for hostname lookup -- this also adds IPv6 compatibility.
Switch the internal names to node / service, to follow the terminology used by
getaddrinfo(3). Use cf_util_get_string() rather than implementing our own.
Allow service names in addition to port numbers.
src/write_graphite.c