diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-02-08 13:10:09 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-02-08 13:10:09 +0100 |
commit | 2cf4b614e6c23bfc6d47da2ec4b1932ee2f62cf0 (patch) | |
tree | 68b62cf115b9716cb17adbe5b598878c8c438c78 /src/inspsocket.cpp | |
parent | 5b6ae9c5427b32f5bacba592fc08e1f70009aee4 (diff) |
Change SocketEngine functions that do not require an instance to be static
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r-- | src/inspsocket.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 46f5bd3b2..f27e21ad8 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -93,13 +93,13 @@ BufferedSocketError BufferedSocket::BeginConnect(const irc::sockets::sockaddrs& if (bind.sa.sa_family != 0) { - if (ServerInstance->SE->Bind(fd, bind) < 0) + if (SocketEngine::Bind(fd, bind) < 0) return I_ERR_BIND; } - ServerInstance->SE->NonBlocking(fd); + SocketEngine::NonBlocking(fd); - if (ServerInstance->SE->Connect(this, &dest.sa, dest.sa_size()) == -1) + if (SocketEngine::Connect(this, &dest.sa, dest.sa_size()) == -1) { if (errno != EINPROGRESS) return I_ERR_CONNECT; @@ -137,9 +137,9 @@ void StreamSocket::Close() delete iohook; DelIOHook(); } - ServerInstance->SE->Shutdown(this, 2); + SocketEngine::Shutdown(this, 2); ServerInstance->SE->DelFd(this); - ServerInstance->SE->Close(this); + SocketEngine::Close(this); fd = -1; } } |