From f564507e655cda523b8b1fbd4967e06973b5d693 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 8 Aug 2009 20:46:30 +0200 Subject: Added some documentation --- src/host.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/host.c') diff --git a/src/host.c b/src/host.c index 1da33b7..848e26d 100644 --- a/src/host.c +++ b/src/host.c @@ -10,6 +10,15 @@ #include #include +/** + * \brief convert addrinfo to simple IP address + * + * \param address addrinfo struct containing the IP + * \param ip string for the resulting IP + * \param length length of ip + * \return 0 on failure, 1 on success + */ + static inline int addr_to_ip(const struct addrinfo *address, char *ip, int length) { void *ptr; switch (address->ai_family) { -- cgit v1.2.3