diff options
| author | 2022-12-25 21:49:59 +0000 | |
|---|---|---|
| committer | 2022-12-25 22:41:28 +0000 | |
| commit | b1eb362d8349447b607a9ccb075ba0043bb70947 (patch) | |
| tree | 6e482446faf550b309e45104424866140bac087b /src/inspsocket.cpp | |
| parent | Refactor ListenSocket::OnEventHandlerRead slightly. (diff) | |
Refactor SocketEngine slightly.
- Remove pointless shutdown() wrapper.
- Remove pointless bounds checking function.
- Make Bind and Listen take an EventHandler instead of a fd.
- Add nullability attributes to every method.
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index abbdbebb3..eb348e7b3 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -74,7 +74,7 @@ BufferedSocketError BufferedSocket::BeginConnect(const irc::sockets::sockaddrs& if (bind.family() != 0) { - if (SocketEngine::Bind(GetFd(), bind) < 0) + if (SocketEngine::Bind(this, bind) < 0) return I_ERR_BIND; } |
