diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 10:36:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 11:03:44 +0100 |
commit | a291415326f87afe5b42a89e9a90029b876895f2 (patch) | |
tree | 0ecd6f1e42a443ed5c96457682af3cafc39bc16c /src/ClientInternal.hxx | |
parent | 4ad7456428913f5232768367f2c0694bcb4540bb (diff) | |
download | mpd-a291415326f87afe5b42a89e9a90029b876895f2.tar.gz mpd-a291415326f87afe5b42a89e9a90029b876895f2.tar.xz mpd-a291415326f87afe5b42a89e9a90029b876895f2.zip |
event/BufferedSocket: move output buffer to FullyBufferedSocket
BufferedSocket has just an input buffer, and FullyBufferedSocket adds
the output buffer.
Diffstat (limited to '')
-rw-r--r-- | src/ClientInternal.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
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. |