diff options
| author | 2020-07-20 07:33:28 +0100 | |
|---|---|---|
| committer | 2020-07-20 07:36:44 +0100 | |
| commit | 90fb7c511fb6fc5c917d6738eca25961a52c8a9f (patch) | |
| tree | a64bce85570e572cc768a7f7d4abdfa89a526512 /src/inspsocket.cpp | |
| parent | Split OnSetEndPoint into two events. (diff) | |
Fix the case of getError/getSendQSize and rewrite the doc comments.
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 9de4a47da..71fdbeb2b 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -125,7 +125,7 @@ void StreamSocket::Close() void StreamSocket::Close(bool writeblock) { - if (getSendQSize() != 0 && writeblock) + if (GetSendQSize() != 0 && writeblock) closeonempty = true; else Close(); @@ -222,7 +222,7 @@ static const int MYIOV_MAX = IOV_MAX < 128 ? IOV_MAX : 128; void StreamSocket::DoWrite() { - if (getSendQSize() == 0) + if (GetSendQSize() == 0) { if (closeonempty) Close(); @@ -265,7 +265,7 @@ void StreamSocket::DoWrite() if (psendq) FlushSendQ(*psendq); - if (getSendQSize() == 0 && closeonempty) + if (GetSendQSize() == 0 && closeonempty) Close(); } @@ -526,7 +526,7 @@ void StreamSocket::AddIOHook(IOHook* newhook) lasthook->SetNextHook(newhook); } -size_t StreamSocket::getSendQSize() const +size_t StreamSocket::GetSendQSize() const { size_t ret = sendq.bytes(); IOHook* curr = GetIOHook(); |
