aboutsummaryrefslogtreecommitdiff
path: root/src/socketengine.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Some smart tricks to eliminate win32 ifdefs that are creeping into portable ↵Gravatar brain2007-07-271-0/+9
| | | | | | files git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7589 e03df62e-2008-0410-955e-edbf42e46eb7
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.Gravatar peavey2007-07-161-1/+93
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵Gravatar peavey2007-07-161-93/+1
| | | | | | auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows support. Tested and working to compile on freebsd and linux. Next ↵Gravatar w00t2007-05-191-1/+1
| | | | | | step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
* pgsql should now work thx to added posibility to force a fd out of the ↵Gravatar peavey2007-01-111-1/+1
| | | | | | socketengine. This should only be used as a *last resort* when dealing with 3rd party libs that invalidates a file descriptor beyond your control. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6295 e03df62e-2008-0410-955e-edbf42e46eb7
* Jesus, look who's the commit whore today. More header updates, and removal ↵Gravatar w00t2006-12-151-5/+2
| | | | | | of namespacing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7
* WARNING: This commit breaks kqueue and select -- work in progress!Gravatar brain2006-10-301-0/+4
| | | | | | | epoll now allows both a write and a read event on a socket at the same time. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5580 e03df62e-2008-0410-955e-edbf42e46eb7
* Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include listsGravatar brain2006-08-301-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7
* Get rid of SocketEngine::Wait and array-copy, change to ↵Gravatar brain2006-08-181-1/+1
| | | | | | SocketEngine::DispatchEvents git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4944 e03df62e-2008-0410-955e-edbf42e46eb7
* EventHandler class, an abstraction for raw i/oGravatar brain2006-08-181-21/+30
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4941 e03df62e-2008-0410-955e-edbf42e46eb7
* So i wonder why we've not had this problem soonerGravatar brain2006-08-121-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4914 e03df62e-2008-0410-955e-edbf42e46eb7
* Just to mess with om's head, remove helperfuncs.h from everywhereGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
* Now two types of log macro, log() and ilog(). log() assumes an InspIRCd ↵Gravatar brain2006-08-111-2/+2
| | | | | | | | | object called ServerInstance, ilog() takes an InspIRCd object as first param. TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7
* Whoops, forgot SocketEngine::SocketEngine() gets called recursively from ↵Gravatar brain2006-07-191-4/+0
| | | | | | *Engine::*Engine() (where * is the type being built) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4441 e03df62e-2008-0410-955e-edbf42e46eb7
* * Seperate out socket engines into derived classes of SocketEngine.Gravatar brain2006-07-191-179/+7
| | | | | | | | | * Add a classfactory SocketEngineFactory to create a new socketengine of the configured type * Implement configure hax to compile only the required socketengine and the base class * Eliminates ugly defines, and is more in line with C++ ways git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4439 e03df62e-2008-0410-955e-edbf42e46eb7
* Change log() to a #define, the real symbol is now do_log(), the new macro ↵Gravatar om2006-06-291-0/+1
| | | | | | | | auto-prefixes all log messages with the file and line number where log() was called - should be nice for debugging and telling wtf is coming from what.Currently uses a (probably very standard) g++ extension to make the macro work. Shouldn't be an issue. You must make clean and rebuild all of insp. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4081 e03df62e-2008-0410-955e-edbf42e46eb7
* Check for failed epoll or kqueueGravatar brain2006-05-161-0/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3961 e03df62e-2008-0410-955e-edbf42e46eb7
* Added method to check if an fd is in the socketengine or notGravatar brain2006-03-111-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3667 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweaks to socket engine, faster buffer flush and hopefully more stableGravatar brain2006-03-071-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3521 e03df62e-2008-0410-955e-edbf42e46eb7
* Valgrind fixesGravatar brain2006-02-261-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3353 e03df62e-2008-0410-955e-edbf42e46eb7
* Updated copyrights in headers etc using perl inplace editGravatar brain2006-01-151-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
* Test change to level-triggered epollGravatar brain2006-01-121-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2779 e03df62e-2008-0410-955e-edbf42e46eb7
* Added output of error if file descriptor given to AddFd is > MAX_DESCRIPTORSGravatar brain2005-12-291-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2701 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed to MAX_DESCRIPTORSGravatar brain2005-12-291-7/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2700 e03df62e-2008-0410-955e-edbf42e46eb7
* Added extra checking to socketengine to refuse connections after we reach ↵Gravatar brain2005-12-291-2/+6
| | | | | | the max git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2697 e03df62e-2008-0410-955e-edbf42e46eb7
* Added counters for MAX_DESCRIPTORS etc which allows the socket engine to ↵Gravatar brain2005-12-291-1/+30
| | | | | | refuse new fd's once you hit the OS limit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2696 e03df62e-2008-0410-955e-edbf42e46eb7
* Optimizing to not use so much cpu with high user loadsGravatar brain2005-12-291-23/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2691 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed a broken && to & which was preventing epoll from doing outbound ↵Gravatar brain2005-12-141-1/+1
| | | | | | connects properly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2390 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed some logging that can cause excessively huge logs when select() is ↵Gravatar brain2005-12-131-3/+0
| | | | | | being used git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2366 e03df62e-2008-0410-955e-edbf42e46eb7
* Timing tweaksGravatar brain2005-12-121-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2342 e03df62e-2008-0410-955e-edbf42e46eb7
* Increased socketengine wait cyclesGravatar brain2005-12-121-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2341 e03df62e-2008-0410-955e-edbf42e46eb7
* Added commentsGravatar brain2005-12-121-0/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2338 e03df62e-2008-0410-955e-edbf42e46eb7
* select() debuggingGravatar brain2005-12-121-2/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2336 e03df62e-2008-0410-955e-edbf42e46eb7
* Added checking to find out why select() splitsGravatar brain2005-12-121-0/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2335 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed WRITEBIT support in select() engineGravatar brain2005-12-121-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2334 e03df62e-2008-0410-955e-edbf42e46eb7
* *EXPERIMENTAL* Tied DNS into new socket engineGravatar brain2005-12-121-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2331 e03df62e-2008-0410-955e-edbf42e46eb7
* More experimental gubbinsGravatar brain2005-12-121-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2330 e03df62e-2008-0410-955e-edbf42e46eb7
* Added GetTypeGravatar brain2005-12-121-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2327 e03df62e-2008-0410-955e-edbf42e46eb7
* EXPERIMENTAL new socket engine codeGravatar brain2005-12-121-11/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2326 e03df62e-2008-0410-955e-edbf42e46eb7
* Made compile on linuxGravatar brain2005-12-121-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2325 e03df62e-2008-0410-955e-edbf42e46eb7
* Made compile on freebsdGravatar brain2005-12-121-8/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2324 e03df62e-2008-0410-955e-edbf42e46eb7
* Working on making this actually compileGravatar brain2005-12-121-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2322 e03df62e-2008-0410-955e-edbf42e46eb7
* Added preliminary socketengine stuffGravatar brain2005-12-121-0/+157
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2321 e03df62e-2008-0410-955e-edbf42e46eb7