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

@@ -27,7 +27,7 @@
BufferedSocket::ssize_t
BufferedSocket::DirectRead(void *data, size_t length)
{
const auto nbytes = SocketMonitor::Read((char *)data, length);
const auto nbytes = GetSocket().Read((char *)data, length);
if (gcc_likely(nbytes > 0))
return nbytes;