diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 13:20:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 14:16:04 +0100 |
commit | fa51db449fdb9558a4cb4542a86437ac9dd3ddbd (patch) | |
tree | 7ecc27850e582fc6b4233bd316dcb079d0702341 /src/output/HttpdInternal.hxx | |
parent | cb9a05ac77034fdcefc0d574e768afe0a1b86327 (diff) | |
download | mpd-fa51db449fdb9558a4cb4542a86437ac9dd3ddbd.tar.gz mpd-fa51db449fdb9558a4cb4542a86437ac9dd3ddbd.tar.xz mpd-fa51db449fdb9558a4cb4542a86437ac9dd3ddbd.zip |
ServerSocket: replace callback with virtual method
Diffstat (limited to '')
-rw-r--r-- | src/output/HttpdInternal.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/output/HttpdInternal.hxx b/src/output/HttpdInternal.hxx index 4e6eb4f58..f1ee513ed 100644 --- a/src/output/HttpdInternal.hxx +++ b/src/output/HttpdInternal.hxx @@ -28,6 +28,7 @@ #include "output_internal.h" #include "timer.h" #include "thread/Mutex.hxx" +#include "event/ServerSocket.hxx" #include <glib.h> @@ -39,7 +40,7 @@ class ServerSocket; class HttpdClient; class Page; -struct HttpdOutput { +struct HttpdOutput final : private ServerSocket { struct audio_output base; /** @@ -79,11 +80,6 @@ struct HttpdOutput { struct timer *timer; /** - * The listener socket. - */ - ServerSocket *server_socket; - - /** * The header page, which is sent to every client on connect. */ Page *header; @@ -201,6 +197,10 @@ struct HttpdOutput { bool EncodeAndPlay(const void *chunk, size_t size, GError **error_r); void SendTag(const struct tag *tag); + +private: + virtual void OnAccept(int fd, const sockaddr &address, + size_t address_length, int uid) override; }; #endif |