summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-03-20 12:57:26 +0100
committerMax Kellermann <max@musicpd.org>2019-03-20 12:57:26 +0100
commit4f408bd952e3ddac2168ddbd2ca2c88a561bf91f (patch)
tree20a6c0c65a2580852382ce19be7c180d5f565f75 /src
parent7de8fd04a4dfbd0dbc1d021f3d096724069cde2b (diff)
event/ServerSocket, doc, ...: refer to AF_LOCAL as "local socket"
.. and not "UNIX domain socket. Be consistent about the naming.
Diffstat (limited to 'src')
-rw-r--r--src/config/Net.hxx6
-rw-r--r--src/event/ServerSocket.cxx2
-rw-r--r--src/event/ServerSocket.hxx2
-rw-r--r--src/net/SocketUtil.cxx2
-rw-r--r--src/net/SocketUtil.hxx2
-rw-r--r--src/net/ToString.cxx2
6 files changed, 8 insertions, 8 deletions
diff --git a/src/config/Net.hxx b/src/config/Net.hxx
index 2b40d966c..b077f883e 100644
--- a/src/config/Net.hxx
+++ b/src/config/Net.hxx
@@ -23,14 +23,14 @@
class ServerSocket;
/**
- * Sets the address or unix socket of a ServerSocket instance
+ * Sets the address or local socket of a ServerSocket instance
* There are three possible ways
* 1) Set address to a valid ip address and specify port.
* server_socket will listen on this address/port tuple.
* 2) Set address to null and specify port.
* server_socket will listen on ANY address on that port.
- * 3) Set address to a path of a unix socket. port is ignored.
- * server_socket will listen on this unix socket.
+ * 3) Set address to a path of a local socket. port is ignored.
+ * server_socket will listen on this local socket.
*
* Throws #std::runtime_error on error.
*
diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx
index 73e070c9e..38f84b873 100644
--- a/src/event/ServerSocket.cxx
+++ b/src/event/ServerSocket.cxx
@@ -392,7 +392,7 @@ ServerSocket::AddPath(AllocatedPath &&path)
#else /* !HAVE_UN */
(void)path;
- throw std::runtime_error("UNIX domain socket support is disabled");
+ throw std::runtime_error("Local socket support is disabled");
#endif /* !HAVE_UN */
}
diff --git a/src/event/ServerSocket.hxx b/src/event/ServerSocket.hxx
index 8a36dded7..91c129458 100644
--- a/src/event/ServerSocket.hxx
+++ b/src/event/ServerSocket.hxx
@@ -90,7 +90,7 @@ public:
void AddHost(const char *hostname, unsigned port);
/**
- * Add a listener on a Unix domain socket.
+ * Add a listener on a local socket.
*
* Throws #std::runtime_error on error.
*
diff --git a/src/net/SocketUtil.cxx b/src/net/SocketUtil.cxx
index f2910e7a0..94ce47d0d 100644
--- a/src/net/SocketUtil.cxx
+++ b/src/net/SocketUtil.cxx
@@ -35,7 +35,7 @@ socket_bind_listen(int domain, int type, int protocol,
throw MakeSocketError("Failed to create socket");
#ifdef HAVE_UN
- if (domain == AF_UNIX) {
+ if (domain == AF_LOCAL) {
/* Prevent access until right permissions are set */
fchmod(fd.Get(), 0);
}
diff --git a/src/net/SocketUtil.hxx b/src/net/SocketUtil.hxx
index e27ae89b4..873ec4861 100644
--- a/src/net/SocketUtil.hxx
+++ b/src/net/SocketUtil.hxx
@@ -32,7 +32,7 @@ class SocketAddress;
/**
* Creates a socket listening on the specified address. This is a
* shortcut for socket(), bind() and listen().
- * When a unix socket is created (domain == AF_UNIX), its
+ * When a local socket is created (domain == AF_LOCAL), its
* permissions will be stripped down to prevent unauthorized
* access. The caller is responsible to apply proper permissions
* at a later point.
diff --git a/src/net/ToString.cxx b/src/net/ToString.cxx
index abfbd88d5..e9867d835 100644
--- a/src/net/ToString.cxx
+++ b/src/net/ToString.cxx
@@ -106,7 +106,7 @@ ToString(SocketAddress address) noexcept
{
#ifdef HAVE_UN
if (address.GetFamily() == AF_LOCAL)
- /* return path of UNIX domain sockets */
+ /* return path of local socket */
return LocalAddressToString(*(const sockaddr_un *)address.GetAddress(),
address.GetSize());
#endif