event/SocketMonitor: eliminate Read(), Write()

Migrate callers to GetSocket().Read(), GetSocket.Write(), which is the
same.
This commit is contained in:
Max Kellermann
2017-11-10 20:31:32 +01:00
parent 7e16ac305d
commit 5fd2b7cc79
6 changed files with 7 additions and 40 deletions

View File

@@ -28,7 +28,7 @@
FullyBufferedSocket::ssize_t
FullyBufferedSocket::DirectWrite(const void *data, size_t length)
{
const auto nbytes = SocketMonitor::Write((const char *)data, length);
const auto nbytes = GetSocket().Write((const char *)data, length);
if (gcc_unlikely(nbytes < 0)) {
const auto code = GetSocketError();
if (IsSocketErrorAgain(code))