From 2cf4b614e6c23bfc6d47da2ec4b1932ee2f62cf0 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 8 Feb 2014 13:10:09 +0100 Subject: Change SocketEngine functions that do not require an instance to be static --- src/inspsocket.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/inspsocket.cpp') 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; } } -- cgit v1.3.1-10-gc9f91