summaryrefslogtreecommitdiff
path: root/src/event/ServerSocket.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-10-30 20:16:26 +0100
committerMax Kellermann <max@musicpd.org>2018-10-30 20:16:26 +0100
commitc6f61a699c7518b33860e692f201fd6383a4979c (patch)
treeb2928b0bcab5e2a83cceb9d07aad23c1ae4e4a03 /src/event/ServerSocket.cxx
parent0307b49f43bcd56f99ea6ee81c840c567750f409 (diff)
event/ServerSocket: make OneServerSocket an inner class
Diffstat (limited to 'src/event/ServerSocket.cxx')
-rw-r--r--src/event/ServerSocket.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx
index 3457465c9..10d7aef2f 100644
--- a/src/event/ServerSocket.cxx
+++ b/src/event/ServerSocket.cxx
@@ -52,7 +52,7 @@
#include <netdb.h>
#endif
-class OneServerSocket final : private SocketMonitor {
+class ServerSocket::OneServerSocket final : private SocketMonitor {
ServerSocket &parent;
const unsigned serial;
@@ -146,7 +146,7 @@ get_remote_uid(int fd)
}
inline void
-OneServerSocket::Accept() noexcept
+ServerSocket::OneServerSocket::Accept() noexcept
{
StaticSocketAddress peer_address;
UniqueSocketDescriptor peer_fd(GetSocket().AcceptNonBlock(peer_address));
@@ -170,14 +170,14 @@ OneServerSocket::Accept() noexcept
}
bool
-OneServerSocket::OnSocketReady(gcc_unused unsigned flags) noexcept
+ServerSocket::OneServerSocket::OnSocketReady(gcc_unused unsigned flags) noexcept
{
Accept();
return true;
}
inline void
-OneServerSocket::Open()
+ServerSocket::OneServerSocket::Open()
{
assert(!IsDefined());
@@ -272,7 +272,7 @@ ServerSocket::Close() noexcept
i.Close();
}
-OneServerSocket &
+ServerSocket::OneServerSocket &
ServerSocket::AddAddress(SocketAddress address) noexcept
{
sockets.emplace_back(loop, *this, next_serial,
@@ -281,7 +281,7 @@ ServerSocket::AddAddress(SocketAddress address) noexcept
return sockets.back();
}
-OneServerSocket &
+ServerSocket::OneServerSocket &
ServerSocket::AddAddress(AllocatedSocketAddress &&address) noexcept
{
sockets.emplace_back(loop, *this, next_serial,