You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
521 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#ifndef MPD_CLIENT_LISTENER_HXX
#define MPD_CLIENT_LISTENER_HXX
#include "event/ServerSocket.hxx"
struct Partition;
class ClientListener final : public ServerSocket {
Partition &partition;
public:
ClientListener(EventLoop &_loop, Partition &_partition) noexcept
:ServerSocket(_loop), partition(_partition) {}
private:
void OnAccept(UniqueSocketDescriptor fd,
SocketAddress address) noexcept override;
};
#endif