summaryrefslogtreecommitdiff
path: root/src/shared/socket-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-06-29 19:24:56 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 22:31:40 -0400
commitb31f535c9a7af9b5f5c4f5d4e52be9159af72127 (patch)
tree6b5dfd1c64fe8c04123ecd5688d82d1486a6581b /src/shared/socket-util.h
parentad95fd1d2b9c6344864857c2ba7634fd87753f8e (diff)
shared/socket-util: add function to query remote address
Diffstat (limited to 'src/shared/socket-util.h')
-rw-r--r--src/shared/socket-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/socket-util.h b/src/shared/socket-util.h
index ec85d949ce..9883ab0328 100644
--- a/src/shared/socket-util.h
+++ b/src/shared/socket-util.h
@@ -101,6 +101,9 @@ int sockaddr_pretty(const struct sockaddr *_sa, socklen_t salen, bool translate_
int getpeername_pretty(int fd, char **ret);
int getsockname_pretty(int fd, char **ret);
+int socknameinfo_pretty(union sockaddr_union *sa, socklen_t salen, char **_ret);
+int getnameinfo_pretty(int fd, char **ret);
+
const char* socket_address_bind_ipv6_only_to_string(SocketAddressBindIPv6Only b) _const_;
SocketAddressBindIPv6Only socket_address_bind_ipv6_only_from_string(const char *s) _pure_;