summaryrefslogtreecommitdiff
path: root/src/socket.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Removal of ancient TRUE/FALSE #defines (C-ish stuff)Gravatar brain2006-03-131-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3700 e03df62e-2008-0410-955e-edbf42e46eb7
* Complete removal of all stl stuff hereGravatar brain2006-03-111-10/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3686 e03df62e-2008-0410-955e-edbf42e46eb7
* Completely removed the dequeGravatar brain2006-03-111-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3685 e03df62e-2008-0410-955e-edbf42e46eb7
* Put some error checking back in hereGravatar brain2006-03-111-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3684 e03df62e-2008-0410-955e-edbf42e46eb7
* Temporarily removed output buffering as an experimentGravatar brain2006-03-111-6/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3683 e03df62e-2008-0410-955e-edbf42e46eb7
* BlahGravatar brain2006-03-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3682 e03df62e-2008-0410-955e-edbf42e46eb7
* LoggingGravatar brain2006-03-111-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3681 e03df62e-2008-0410-955e-edbf42e46eb7
* Different way of using substrGravatar brain2006-03-111-3/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3679 e03df62e-2008-0410-955e-edbf42e46eb7
* Deque doing some reallllly odd stuffGravatar brain2006-03-111-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3678 e03df62e-2008-0410-955e-edbf42e46eb7
* Cant do *ANYTHING* in the damn destructor?!Gravatar brain2006-03-111-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3675 e03df62e-2008-0410-955e-edbf42e46eb7
* Close-pending checksGravatar brain2006-03-111-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3673 e03df62e-2008-0410-955e-edbf42e46eb7
* Checking that buffers are empty in destructorGravatar brain2006-03-111-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3672 e03df62e-2008-0410-955e-edbf42e46eb7
* Checks and stuff :pGravatar brain2006-03-111-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3671 e03df62e-2008-0410-955e-edbf42e46eb7
* DamnitGravatar brain2006-03-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3670 e03df62e-2008-0410-955e-edbf42e46eb7
* FixesGravatar brain2006-03-111-3/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3669 e03df62e-2008-0410-955e-edbf42e46eb7
* Added method to check if an fd is in the socketengine or notGravatar brain2006-03-111-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3667 e03df62e-2008-0410-955e-edbf42e46eb7
* Re-enterant safetyGravatar brain2006-03-111-2/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3666 e03df62e-2008-0410-955e-edbf42e46eb7
* Re-enterance safetyGravatar brain2006-03-111-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3665 e03df62e-2008-0410-955e-edbf42e46eb7
* Convert more by-values to const references, optimise ConfigReader a bitGravatar om2006-03-091-5/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3606 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweaks to socket engine, faster buffer flush and hopefully more stableGravatar brain2006-03-071-22/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3521 e03df62e-2008-0410-955e-edbf42e46eb7
* true and false transposed in new codeGravatar brain2006-03-071-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3520 e03df62e-2008-0410-955e-edbf42e46eb7
* Exception to the rules for EAGAINGravatar brain2006-03-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3519 e03df62e-2008-0410-955e-edbf42e46eb7
* Check for write errors in inspsocket (this is probably causing excessive ↵Gravatar brain2006-03-071-7/+16
| | | | | | cpu use when we have a large buffer to flush but a write error has occured (which we missed)) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3518 e03df62e-2008-0410-955e-edbf42e46eb7
* That's enough tweaks for nowGravatar brain2006-02-261-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3357 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweaks for valgrind (again)Gravatar brain2006-02-261-14/+18
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3356 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes for valgrindGravatar brain2006-02-261-4/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3355 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweaks to closed socket detectionGravatar brain2006-02-261-5/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3351 e03df62e-2008-0410-955e-edbf42e46eb7
* Another tweak for portGravatar brain2006-02-241-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3320 e03df62e-2008-0410-955e-edbf42e46eb7
* One character brain-wave fix (had idea at work)Gravatar brain2006-02-241-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3317 e03df62e-2008-0410-955e-edbf42e46eb7
* Wrong address being bound by InspSocket when binding to a specific ipGravatar brain2006-02-241-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3315 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra checking and exception handling in InspSocket::WriteGravatar brain2006-02-161-1/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3228 e03df62e-2008-0410-955e-edbf42e46eb7
* Test for bug reported by TDCGravatar brain2006-02-151-1/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3227 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra error loggingGravatar brain2006-02-151-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3225 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix to compare against signed/unsigned warningGravatar brain2006-02-141-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3200 e03df62e-2008-0410-955e-edbf42e46eb7
* Force initialization of fd to -1Gravatar brain2006-02-141-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3199 e03df62e-2008-0410-955e-edbf42e46eb7
* We're going for that commits per minute record again.Gravatar brain2006-02-141-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3198 e03df62e-2008-0410-955e-edbf42e46eb7
* Helps to get the var names right too..Gravatar brain2006-02-141-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3197 e03df62e-2008-0410-955e-edbf42e46eb7
* Error checking for out of range buffer reads (this shouldnt happen, read is ↵Gravatar brain2006-02-141-2/+4
| | | | | | being passed a max buffer size of 65536 but returning 6 million?! We check for it now.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3196 e03df62e-2008-0410-955e-edbf42e46eb7
* Uses less write() callsGravatar brain2006-02-071-8/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3129 e03df62e-2008-0410-955e-edbf42e46eb7
* Slightly more efficient write buffersGravatar brain2006-02-071-5/+23
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3125 e03df62e-2008-0410-955e-edbf42e46eb7
* More nonblocking dns stuffsGravatar brain2006-02-021-4/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3020 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes to set correct resolver address before looking up hostGravatar brain2006-02-021-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3019 e03df62e-2008-0410-955e-edbf42e46eb7
* Nonblocking dns for InspSocket class (used by server to server)Gravatar brain2006-02-021-33/+46
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3018 e03df62e-2008-0410-955e-edbf42e46eb7
* *UNTESTED DO NOT USE YET* - async dns for InspSocket as test - removing ↵Gravatar brain2006-02-021-29/+49
| | | | | | requirement on nss_dns.so.1 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3017 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
* Removed some redundant (and commented out) functionsGravatar brain2006-01-151-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2793 e03df62e-2008-0410-955e-edbf42e46eb7
* Made InspSocket::Read return an empty but non-NULL string when it receives ↵Gravatar brain2006-01-151-2/+9
| | | | | | EAGAIN (this method didnt know how to cope with EAGAIN before, may be causing random splits?) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2792 e03df62e-2008-0410-955e-edbf42e46eb7
* Made socket.cpp flush its write buffer more often (fixes odd lag on server ↵Gravatar brain2005-12-301-0/+3
| | | | | | to server connections) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2708 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed to MAX_DESCRIPTORSGravatar brain2005-12-291-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2700 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved SocketEngine* SE into InspIRCd classGravatar brain2005-12-161-8/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2527 e03df62e-2008-0410-955e-edbf42e46eb7