summaryrefslogtreecommitdiff
path: root/win/inspircd_win32wrapper.h
AgeCommit message (Collapse)Author
2008-02-26Why the fuck are standard functions all prefixed with a _ on windows???brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9046 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-26#define _popen popenbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9036 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10Fix here too, to allow FD_SETSIZE > 64. If this doesnt work it will need to ↵brain
be set with /D on the commandline, but it looks like this is the best place to put it in an include (earliest possible place) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8890 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10Header update: 2007 -> 2008w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-20Fix here toobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8237 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-14Remove crashdump stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8192 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-04* Fixed some incorrect declarations in IOCPEngineburlex
* 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
2007-08-23Move the close() wrapper out of the win32wrapper.h, and into its new proper ↵brain
place at SocketEngine::Close() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7812 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23Craquity craq De-craq!brain
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
2007-08-15* include/caller.h will now compile correctly on Windows platforms.burlex
+ Implemented gettimeofday in win32 wrapper, link rtt's will now display in milliseconds. * SocketEngine::BoundsCheckFd will now handle Windows event handler cases correctly. (fixing writing to sockets not working) * Fixed VC71 project. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7723 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-27make sure that the pointers are set up correctly for win32brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7600 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-27SIGHUP needs to be #define'd on windows. This is an i-hate-windows day today.brain
Also, define WIN32_LEAN_AND_MEAN as we should be able to get away with using it now we dont have the shell functions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7595 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-27Fix compile errors in windowsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7592 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-27Needs testbuilding in windows. I will probably do this in a minute.brain
More clever tricks to eliminate ifdefs. With a bit of function pointer and functor magic we may be able to eliminate all ifdefs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7590 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-27Move a bunch of stuff around for tidyness, win32 functions keep creeping ↵brain
into #ifdef'ed chunks in non-win32 files git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7588 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵peavey
auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16Add flags to /STATS s output, and nuke some ^Mpeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7453 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16Ok windows.. YOU WIN :< .. but at least I can use MAXBUF now and configure ↵peavey
will have to endure the fixed 500 limit :> git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7452 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16Begone evil DOS format :<peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7449 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16And add colour.h to wrapper resource instead of the source.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7448 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16Remove printf_c from wrapper, this code also segfaulted when it was used.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7443 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-14- Made the recvfrom wrapper a bit neater.burlex
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7314 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02Change the behaviour of insp in windows to keep its window open, with some ↵brain
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
2007-05-26This should do itbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7158 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-25Choose the correct defines so that its not built too lean to compilebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7142 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-25Add defines that speed up the build process and reduce executable bloatbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7141 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-22This could do with some commentsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7115 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-22Code to find nameservers in the windows registry - largely untestedbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7113 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21Reorder includes, dont worry there is method to my madness (i hope)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7093 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20Merge in burlex's easy-build patch, apparently its now single-click and wait.brain
Will play with this tomorrow. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7060 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20Change the define that defines strcasecmp->stricmp to use _stricmp to ↵brain
suppress an anal warning git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7058 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20Begone shitty safe stl warnings!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7056 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20Patch for vc8 project files by burlex, thanksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7052 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19Helps if I add the w32 specific code, too. :pw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7044 e03df62e-2008-0410-955e-edbf42e46eb7