summaryrefslogtreecommitdiff
path: root/src/socketengines/socketengine_win32.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-01 21:01:49 -0400
committerAdam <Adam@anope.org>2010-10-01 21:01:49 -0400
commitd44f7971b129aa7ba80999f16f17b8c7499686e1 (patch)
treea86d08c3e641ed6b499b53b3bbb74e2a7f5b0dfb /src/socketengines/socketengine_win32.cpp
parent70056dd4689eeab4f7a9b31a921e0d7e40d5ed0d (diff)
Rewrote some of the socket code to allow m_ssl to be a service.
This allows modules (xmlrpc) to create and accept SSL connections. Also fixed unloading m_mysql at certain times and made the threading engine always work correctly on Windows.
Diffstat (limited to 'src/socketengines/socketengine_win32.cpp')
-rw-r--r--src/socketengines/socketengine_win32.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/socketengines/socketengine_win32.cpp b/src/socketengines/socketengine_win32.cpp
index 1b1a4e50d..5d2c2d7cb 100644
--- a/src/socketengines/socketengine_win32.cpp
+++ b/src/socketengines/socketengine_win32.cpp
@@ -7,9 +7,9 @@ class LSocket : public ListenSocket
public:
LSocket(const Anope::string &host, int port) : ListenSocket(host, port) { }
- bool OnAccept(Socket *s)
+ bool OnAccept(int fd, const sockaddrs &)
{
- newsocket = s;
+ newsocket = new Socket(fd, this->IPv6);
return true;
}
};
@@ -26,7 +26,7 @@ int Pipe::SendInternal(const Anope::string &) const
return write(this->WritePipe, &dummy, 1);
}
-Pipe::Pipe() : Socket()
+Pipe::Pipe() : BufferedSocket()
{
LSocket lfs("127.0.0.1", 0);
@@ -47,7 +47,6 @@ Pipe::Pipe() : Socket()
this->Sock = cfd;
this->WritePipe = newsocket->GetSock();
this->IPv6 = false;
- this->Type = SOCKTYPE_CLIENT;
SocketEngine->AddSocket(this);
newsocket = NULL;