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/socket.cpp | |
parent | 5b6ae9c5427b32f5bacba592fc08e1f70009aee4 (diff) |
Change SocketEngine functions that do not require an instance to be static
Diffstat (limited to 'src/socket.cpp')
-rw-r--r-- | src/socket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index cade49353..ba35d2b0a 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -46,7 +46,7 @@ bool InspIRCd::BindSocket(int sockfd, int port, const char* addr, bool dolisten) else if (!irc::sockets::aptosa(addr, port, servaddr)) return false; - ret = SE->Bind(sockfd, servaddr); + ret = SocketEngine::Bind(sockfd, servaddr); if (ret < 0) { @@ -56,7 +56,7 @@ bool InspIRCd::BindSocket(int sockfd, int port, const char* addr, bool dolisten) { if (dolisten) { - if (SE->Listen(sockfd, Config->MaxConn) == -1) + if (SocketEngine::Listen(sockfd, Config->MaxConn) == -1) { this->Logs->Log("SOCKET", LOG_DEFAULT, "ERROR in listen(): %s",strerror(errno)); return false; @@ -64,7 +64,7 @@ bool InspIRCd::BindSocket(int sockfd, int port, const char* addr, bool dolisten) else { this->Logs->Log("SOCKET", LOG_DEBUG, "New socket binding for %d with listen: %s:%d", sockfd, addr, port); - SE->NonBlocking(sockfd); + SocketEngine::NonBlocking(sockfd); return true; } } |