diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-08 20:46:30 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-08 20:46:30 +0200 |
commit | f564507e655cda523b8b1fbd4967e06973b5d693 (patch) | |
tree | 8360acd6704bba2043e937a4d77477d085265a9c /src | |
parent | be6a01f2e038f39c85f813793f41c17fef3e578e (diff) |
Added some documentation
Diffstat (limited to 'src')
-rw-r--r-- | src/host.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -10,6 +10,15 @@ #include <sys/socket.h> #include <netdb.h> +/** + * \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) { |