diff options
author | Adam <Adam@anope.org> | 2012-11-01 13:32:38 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-11-01 14:47:23 -0400 |
commit | 90930619bc124e94bac5048c0b13c3f4748b559d (patch) | |
tree | cbe2325f6295aa188a6dd0f0d56d336eab060bbe /src/socketengines/pipeengine_pipe.cpp | |
parent | 5b1c8230191fa626ef9210c5035f14a8df4c0ed6 (diff) |
Fixed quite a bit of dumbness with m_ssl. Had to
modify socketengines to allow polling for write &
no read, but is it cleaner now. Made m_httpd able
to listen using SSL.
Diffstat (limited to 'src/socketengines/pipeengine_pipe.cpp')
-rw-r--r-- | src/socketengines/pipeengine_pipe.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/socketengines/pipeengine_pipe.cpp b/src/socketengines/pipeengine_pipe.cpp index dbded29b4..ac3a9cb2c 100644 --- a/src/socketengines/pipeengine_pipe.cpp +++ b/src/socketengines/pipeengine_pipe.cpp @@ -27,12 +27,13 @@ Pipe::Pipe() : Socket(-1), WritePipe(-1) flags = fcntl(fds[1], F_GETFL, 0); fcntl(fds[1], F_SETFL, flags | O_NONBLOCK); - this->~Pipe(); + this->~Socket(); this->Sock = fds[0]; this->WritePipe = fds[1]; - SocketEngine::AddSocket(this); + SocketEngine::Sockets[this->Sock] = this; + SocketEngine::Change(this, true, SF_READABLE); } Pipe::~Pipe() |