aboutsummaryrefslogtreecommitdiff
path: root/src/socketengine_iocp.cpp
Commit message (Expand)AuthorAgeFilesLines
* Fix for bug #407, set ref[fd] AFTER some checks that may return false and lea...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8077 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-09-251-4/+4
* Test from vista laptop•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8052 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-09-231-1/+0
* * Fixed some incorrect declarations in IOCPEngine•••* Fixed the virtual socket wrapper functions in IOCPEngine {these should really be inlined on unix} * Fixed several compilation issues under Win32 * Fixed calls to close() which should've been changed to SE->Close() + Added a crashdump saving system to Win32 builds. Dumps are saved in the format of dump-<exename>-<year>-<month>-<day>-<hour>-<minute>-<second>.dmp in the working directory. Enabled by default, undefine ENABLE_CRASHDUMPS to disable. + Added m_operflood, this is a module I've had lying around for some time but some users may like it as it allows unreal-like behaviour without increasing flood limits for non-opers. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8015 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar burlex2007-09-041-5/+5
* Move the close() wrapper out of the win32wrapper.h, and into its new proper p...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7812 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-231-0/+9
* Craquity craq De-craq!•••This is probably broken on windows, do not attempt to use there yet unless you like broken stuff. Cant say for sure as i havent even tried to build yet and most likely wont tonight. --- Abstract most of the berkely socket API out into SocketEngine derived classes. SocketEngine base class implements standard berkely sockets that 'real mens systems' like linux and freebsd have. For socketengine_iocp we implement the windows specific nonesense like the special things needed for udp and accept (ick). All this to eliminate a bunch of ifdefs. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7810 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-231-33/+60
* Move WSACleanup() into IOCPEngine destructor, eliminating an "#ifdef WIN32" f...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7807 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-231-0/+2
* This is now correct.•••No win32 #ifdefs in the base class, being as IOCPEngine is only built on windows we can put the code here without the need for ifdef. The original check in socketengine_iocp was broken, copied burlex's fixed version into the child class git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7724 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-151-6/+7
* Windows specific data types in EventHandler are now Extensible items•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7599 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-271-33/+70
* Some smart tricks to eliminate win32 ifdefs that are creeping into portable f...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7589 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-271-0/+11
* Un-static InspIRCd::Exit and use SignalHandler instead.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7572 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-251-1/+1
* A couple of tweaks that i did earlier as diffs. ISON didnt always respect inv...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7502 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-231-0/+3
* * Sockets will now always be nonblocking on win32 version of InspIRCd. There ...•••* configure will now compile under VC7 again. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7500 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar burlex2007-07-231-0/+12
* I broke socketengine_iocp with some fixes. Fixed again.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7488 e03df62e-2008-0410-955e-edbf42e46eb7 v1.1.10Gravatar brain2007-07-211-3/+4
* Whoops, someone forgot to check the return value when initializing windows IOCP•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7476 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-191-0/+9
* Validation checks that seem to have been omitted here.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7469 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-171-6/+34
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-1/+376
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are au...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-376/+1
* Whack a ^M•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7319 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-06-141-1/+1
* - Made the recvfrom wrapper a bit neater.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7314 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar burlex2007-06-141-0/+7
* - Fixed UDP Overlapped I/O under windows. (not the best way this could be don...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7313 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar burlex2007-06-141-9/+34
* * Fixed IOCPEngine under x64 (because of incorrect pointer sizes)•••- Fixed configure / VC8 projects for x64 compiling. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7293 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar burlex2007-06-131-5/+8
* Change the behaviour of insp in windows to keep its window open, with some st...•••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 Gravatar brain2007-06-021-1/+1
* All the other socketengines have a 1s wait on their 'poll' equivalent. GetQue...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7185 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-291-1/+1
* Tidy up to coding style•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7139 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-251-46/+55
* try...catch around the map::insert in AddFd, for some reason it throws someti...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7065 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-201-1/+10
* Remove asserts and convert to unix line endings•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7064 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-201-271/+271
* Helps if I add the w32 specific code, too. :p•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7044 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-191-0/+323