397 Commits

Author SHA1 Message Date
danieldg
7e46119759 Remove excessive gettimeofday system calls
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12293 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-18 19:36:41 +00:00
danieldg
a4b3dc9200 Remove IOCP socket engine
IOCP has been experimental since its introduction, and has not worked
correctly for some time. Since we have no windows developer, remove the
dead code.

Most of the advantages of IOCP are not used by an ircd process regardless:
we do not use threads for our client processing, and we add an extra copy
operation that eliminates any gain from OS-level buffer reuse.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11970 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-24 20:04:24 +00:00
brain
6ff7e3bae0 Fix for memory leak when gui is attached, submitted and fixed by GreenReaper, thanks!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11936 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-21 22:35:56 +00:00
peavey
da4e125ea9 comment fix..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11935 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-21 21:49:07 +00:00
peavey
da6e45397e Update VC project file for latest changes to sources.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11903 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-18 10:44:38 +00:00
peavey
bf269e3cc7 Text fix.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11893 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-17 20:51:20 +00:00
peavey
8a2e5dcbe4 Fix up finding dns server to use for windows to match latest configreader changes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11892 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-17 20:48:20 +00:00
peavey
0d9a2dc982 change vc70.pdb to vc90.pdb.. just cosmetic..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11862 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-12 22:59:08 +00:00
peavey
72da918ac5 Clean up the compile flags a little. BTW windows now builds again.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11860 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-12 22:48:12 +00:00
peavey
480a798dbd Add mode headers.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11854 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-12 15:51:46 +00:00
danieldg
170820cc8d 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
2009-10-12 01:13:51 +00:00
peavey
f1a2b6b478 More adds, now I should have all the new stuff down.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11845 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-11 22:19:20 +00:00
peavey
db3d6ae62d Re-enable removal of a tmp file that was left out for debug.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11844 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-11 22:07:24 +00:00
peavey
a20fd5ec0c Remove some redundant headers from VS project file.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11842 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-11 21:48:44 +00:00
peavey
b84eb454c5 Add new files and headers recently introduced.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11841 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-11 20:42:14 +00:00
peavey
60664afca1 Include psapi.h to fix stats.cpp compiling.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11840 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-11 20:39:47 +00:00
peavey
74066e0f56 Remove the -Dssize_t declaration now its typedeffed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11836 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-11 17:10:54 +00:00
peavey
c0922e936a Some fixes to the VS project file.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11834 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-11 15:25:24 +00:00
peavey
74fcd3830d Some fixes for the VS project file. Spanningtree builds again.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11829 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-11 01:19:15 +00:00
peavey
64904b639d 3rd time lucky? Fix again for setsockopt.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11825 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-10 19:59:04 +00:00
peavey
bfa2a19d96 Slight tweak to setsockopt fix.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11824 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-10 19:53:18 +00:00
peavey
1312f2db8e * 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
2009-10-10 17:48:04 +00:00
peavey
3151262b41 Compile fixes for latest changes to trunk.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11821 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-10 17:30:13 +00:00
peavey
892b3fde2f uhm, remove my debug output :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11819 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-10 14:13:49 +00:00
peavey
72f1e30cb3 Add building of inspircd_version.h to windows port and remove the overlapping values from inspircd_config.h. Use a similar uname-ish build of SYSTEM info string as well as using the same exact info for VERSION and REVISION as the *nixes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11818 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-10 14:06:35 +00:00
danieldg
6d03943426 Remove InspIRCd* parameters and fields
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-26 14:13:13 +00:00
w00t
3f647b9c16 Bump a number of version numbers.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11676 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-05 14:41:36 +00:00
danieldg
819147178d Strip SUPPORT_IP6LINKS #define
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11572 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01 15:06:47 +00:00
peavey
1b12ec7b62 Exclude modules from build on release mode too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11549 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-31 23:47:03 +00:00
w00t
d9482db7e0 vs2010 projects too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11526 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-15 11:45:07 +00:00
w00t
12bcb51dbd win: Add vs2010 SLN.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11525 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-15 11:38:14 +00:00
w00t
aefbcfd22f win: vs2010 requires this to link in process memory retrieval stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11521 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-15 05:16:26 +00:00
w00t
b50bf7a2ce win: don't define error constants on VS2009, they're defined for us (finally)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11520 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-15 05:02:29 +00:00
danieldg
0036e3a70c Fixes for config reader
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12 18:03:52 +00:00
peavey
32c1365046 Missed removing m_testcommand.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11484 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 01:00:57 +00:00
peavey
0df46f5b4e Updates for added/removed files.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11483 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 00:58:16 +00:00
w00t
90ea385688 Hooray unused variables. Thanks MSVC.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11480 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03 22:47:39 +00:00
w00t
6d2182da18 Fix types on Windows. Hooray for not supporting stdint.h. Thanks to Special.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11471 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03 17:42:26 +00:00
brain
6169238343 We dont support these compilers any more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11468 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-02 23:29:54 +00:00
brain
bdec29f524 I am sure i deleted these before
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11467 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-02 23:29:08 +00:00
peavey
9b35fab349 Fix our getops implementation on windows. Have optind available, and make sure it always points to the next entry in the argv list as described by POSIX.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11466 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-02 22:36:45 +00:00
peavey
fdcdf7c1c0 Forget to remove a #endif
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11461 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-02 18:13:08 +00:00
peavey
1a9b84820c No forget using windows' broken inet_pton and inet_ntop, they are not POSIX compliant and just causes more compile errors. We use our own, period.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11460 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-02 18:08:49 +00:00
peavey
2f1466ee94 Since Windows SDK6.0a inet_pton and inet_ntop is defined if (NTDDI_VERSION >= NTDDI_LONGHORN). I found a similar fix in pythons socketcode and thus think this is fine.
Fixes the breakage Brain mentions in r11407.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11459 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-02 17:42:31 +00:00
special
2523818db5 Use correct behavior (as per C++) for 'delete NULL' on windows; found by Adam and CyberBotX
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11443 e03df62e-2008-0410-955e-edbf42e46eb7
2009-07-19 07:27:30 +00:00
brain
2bb40c5b23 more fixes. inet_pton is now in error, this is because the windows 6.0 sdk defines it, we need some kind of ifdef or something around this to not define our own if we have the 6.0 SDK. Again i will check this if i have chance, otherwise... :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11407 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-12 16:34:23 +00:00
peavey
15b51c2ecc rollback r11326, we're going to make vc9 the officially supported windows build methods since the few of us doing win dev can't keep up maintaining the others.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11327 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-23 22:21:35 +00:00
brain
c275233c7c Heres the beef so far
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11326 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-23 19:03:40 +00:00
brain
1db1a40c09 more of the fix but it still doesnt build. I know we said this might be unstable, but when writing *windows* code can you all please make sure it BUILDS on windows???
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11261 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-25 11:39:57 +00:00
danieldg
85a787b92b 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
2009-03-23 18:48:58 +00:00