From a291415326f87afe5b42a89e9a90029b876895f2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jan 2013 10:36:47 +0100 Subject: event/BufferedSocket: move output buffer to FullyBufferedSocket BufferedSocket has just an input buffer, and FullyBufferedSocket adds the output buffer. --- src/ClientInternal.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ClientInternal.hxx') diff --git a/src/ClientInternal.hxx b/src/ClientInternal.hxx index d538cfb37..06a60be76 100644 --- a/src/ClientInternal.hxx +++ b/src/ClientInternal.hxx @@ -24,7 +24,7 @@ #include "Client.hxx" #include "ClientMessage.hxx" #include "CommandListBuilder.hxx" -#include "event/BufferedSocket.hxx" +#include "event/FullyBufferedSocket.hxx" #include "event/TimeoutMonitor.hxx" #include "command.h" @@ -44,7 +44,7 @@ enum { struct Partition; -class Client final : private BufferedSocket, TimeoutMonitor { +class Client final : private FullyBufferedSocket, TimeoutMonitor { public: Partition &partition; struct playlist &playlist; @@ -89,7 +89,7 @@ public: int fd, int uid, int num); bool IsConnected() const { - return BufferedSocket::IsDefined(); + return FullyBufferedSocket::IsDefined(); } gcc_pure @@ -99,13 +99,13 @@ public: gcc_pure bool IsExpired() const { - return !BufferedSocket::IsDefined(); + return !FullyBufferedSocket::IsDefined(); } void Close(); void SetExpired(); - using BufferedSocket::Write; + using FullyBufferedSocket::Write; /** * Send "idle" response to this client. -- cgit v1.2.3