aboutsummaryrefslogtreecommitdiff
path: root/win/inspircd_win32wrapper.cpp
Commit message (Expand)AuthorAgeFilesLines
* Fix inet_pton on Windows with IPv6 addresses•••Code from Anope win32/socket.cpp by @Adam- Gravatar attilamolnar2013-06-041-10/+30
* Win32: Rewrite the service wrapper•••Edited original commit to pass MAX_PATH as nSize to GetModuleFileNameA() instead of 101 after approval from author @ChrisTX (Attila Molnar) Fixes #404 reported by @crchauffe Gravatar ChrisTX2013-03-251-0/+22
* Replace printf(_c) with iostreamGravatar ChrisTX2012-10-141-3/+0
* Windows: In-depth cleanup (see details)•••-Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714 Gravatar ChrisTX2012-10-121-496/+13
* Merge pull request #314 from ChrisTX/insp20+DnsQueryConfig•••Windows: Replace the old DNS server find mechanism with the proper one, the appropriate APIGravatar Adam2012-10-041-91/+26
|\
| * Windows: Use the WinAPI for DNS server retrievalGravatar ChrisTX2012-10-041-91/+26
* | Windows: Replace the unused function hack with explicit instantiationGravatar ChrisTX2012-10-041-41/+4
|/
* Fixed issue #303 - fixed Windows buildGravatar Adam2012-09-281-0/+5
* Fixed Windows buildGravatar Adam2012-07-171-0/+7
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+20
* Fix extras compilation under WindowsGravatar Adam2011-06-181-3/+11
* Fix timers never being ticked on windowsGravatar Adam2011-05-211-1/+1
* Fixed Windows build on VS 2010Gravatar Adam2011-04-101-2/+48
* Remove excessive gettimeofday system calls•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12293 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-181-2/+2
* Fix for memory leak when gui is attached, submitted and fixed by GreenReaper,...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11936 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-10-211-6/+9
* Text fix.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11893 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-171-1/+1
* Fix up finding dns server to use for windows to match latest configreader cha...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11892 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-171-19/+28
* Define DISABLE_WRITEV and use the IOHook single-copy method for Windows send()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11848 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-121-24/+0
* 3rd time lucky? Fix again for setsockopt.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11825 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-101-5/+0
* Slight tweak to setsockopt fix.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11824 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-101-0/+5
* * Fix inspsocket to not include uio.h on windows.•••* Wrap writev and some structs to fix inspsocket compile on win. * Fix a few compile errors due to latest trunk changes in win32wrapper code. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11822 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-101-5/+29
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-3/+3
* Fixes for config reader•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-08-121-2/+1
* Fix our getops implementation on windows. Have optind available, and make sur...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11466 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-08-021-8/+9
* Forget to remove a #endif•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11461 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-08-021-1/+0
* No forget using windows' broken inet_pton and inet_ntop, they are not POSIX c...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11460 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-08-021-5/+2
* Since Windows SDK6.0a inet_pton and inet_ntop is defined if (NTDDI_VERSION >=...•••Fixes the breakage Brain mentions in r11407. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11459 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-08-021-0/+4
* usleep() is no longer needed, and should not be needed in the future•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11252 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-03-231-9/+0
* This is a nicer fix, and we are seen to be explicitly freeing the BSTR values...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11239 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-03-201-39/+46
* Remove an old class member here that is no longer used and has been commented...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11238 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-03-201-33/+0
* This needs a test compile, i do not have my laptop to hand to do this. May br...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11237 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-03-201-2/+1
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-151-1/+1
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-021-1/+1
* Patch by dz to remove the one usage of strdup/strtok_r, which is very un-C++ ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10543 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2008-09-141-65/+0
* sql api and m_mysql compile fixes for windows•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10393 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-09-051-0/+9
* fix memory leak in new wmi stuff and comment it. Lots of kittens are killed b...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10183 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-08-201-111/+95
* Checks to make sure that WMI initialises, if it doesnt we return -1 for CPU p...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10180 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-08-201-2/+2
* WMI calls for getting cpu percentage of current process. This code was a biat...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10179 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-08-201-0/+153
* Base stuff for named pipe IPC•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9910 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-06-151-21/+2
* Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, lo...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-181-1/+0
* Windows fix•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9475 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-131-1/+1
* Windows fixes•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9368 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-051-4/+4
* Header update: 2007 -> 2008•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-101-1/+1
* Just to be fucking akward, windows vista seperates multiple nameservers with ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8198 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-10-141-0/+5
* Remove crashdump stuff•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8192 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-10-141-64/+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-0/+64
* * include/caller.h will now compile correctly on Windows platforms.•••+ 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 Gravatar burlex2007-08-151-0/+14
* make sure that the pointers are set up correctly for win32•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7600 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-271-5/+2
* And more to fix•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7593 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-271-3/+3
* Fix compile errors in windows•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7592 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-271-6/+3