aboutsummaryrefslogtreecommitdiffstats
path: root/src/socketengine_iocp.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-06-02 22:21:55 +0000
committerGravatar brain2007-06-02 22:21:55 +0000
commit6cf3fc6b36e2046c36b729530117572ba44aafd7 (patch)
tree5dba5db873d470d2fb1dd60d1a037dd3806c6a5d /src/socketengine_iocp.cpp
parentAdd console mode patches from burlex, thanks (diff)
downloadinspircd++-6cf3fc6b36e2046c36b729530117572ba44aafd7.tar.gz
inspircd++-6cf3fc6b36e2046c36b729530117572ba44aafd7.tar.bz2
inspircd++-6cf3fc6b36e2046c36b729530117572ba44aafd7.zip
Change the behaviour of insp in windows to keep its window open, with some status text in the title bar. It also clears the screen now on startup, see the wrapper for what a nasty amount of code it is to do such a simple thing to a windows console :(
Also, add somewhat of a hack to cut down on allocation time taken to map windows fd to a posix style fd in iocp engine. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7217 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine_iocp.cpp')
-rw-r--r--src/socketengine_iocp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengine_iocp.cpp b/src/socketengine_iocp.cpp
index 96e824899..58ce36177 100644
--- a/src/socketengine_iocp.cpp
+++ b/src/socketengine_iocp.cpp
@@ -32,7 +32,7 @@ IOCPEngine::~IOCPEngine()
bool IOCPEngine::AddFd(EventHandler* eh)
{
- int fake_fd = GenerateFd();
+ int fake_fd = GenerateFd(eh->GetFd());
int is_accept = 0;
int opt_len = sizeof(int);
if(fake_fd < 0)