summaryrefslogtreecommitdiff
path: root/src/shared/socket-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-06 22:40:54 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-06 23:03:12 +0100
commit8569a77629949b7818d00eba8eea1d05e2d1fc32 (patch)
tree0f807b151ed4649032012084c83a8ed95669e8ca /src/shared/socket-util.h
parent175a3d25d0e8596d4ba0759aea3f89ee228e7d6d (diff)
socket-proxyd: rework to support multiple sockets and splice()-based zero-copy network IO
This also drops --ignore-env, which can't really work anymore if we allow multiple fds. Also adds support for pretty printing of peer identities for debug purposes, and abstract namespace UNIX sockets. Also ensures that we never take more connections than a certain limit.
Diffstat (limited to 'src/shared/socket-util.h')
-rw-r--r--src/shared/socket-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/socket-util.h b/src/shared/socket-util.h
index 0b9bf2fefc..13566f9691 100644
--- a/src/shared/socket-util.h
+++ b/src/shared/socket-util.h
@@ -99,3 +99,5 @@ int netlink_family_to_string_alloc(int b, char **s);
int netlink_family_from_string(const char *s);
bool socket_ipv6_is_supported(void);
+
+int getpeername_pretty(int fd, char **ret);