summaryrefslogtreecommitdiff
path: root/src/socket.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove _CrtCheckMemory()Gravatar brain2008-04-181-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9535 e03df62e-2008-0410-955e-edbf42e46eb7
* Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, ↵Gravatar brain2008-04-181-1/+3
| | | | | | lots of thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7
* Change warnings a bitGravatar brain2008-04-161-3/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9518 e03df62e-2008-0410-955e-edbf42e46eb7
* ahh shit, remove windows specific code i left laying aroundGravatar brain2008-04-151-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9515 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix the problems GreenReaper found with the windows select engine, this has ↵Gravatar brain2008-04-151-49/+64
| | | | | | never worked properly in trunk! -- This needs tidying up, its on my todo either tonight if im awake enough, or tomorrow evening git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9514 e03df62e-2008-0410-955e-edbf42e46eb7
* AddClient -> AddUser, to be consistantGravatar w00t2008-04-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9443 e03df62e-2008-0410-955e-edbf42e46eb7
* We were lucky this one didnt bring down the whole devnet (see cmd_part.cpp diff)Gravatar brain2008-04-071-17/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9400 e03df62e-2008-0410-955e-edbf42e46eb7
* Thanks danieldgGravatar brain2008-03-271-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9194 e03df62e-2008-0410-955e-edbf42e46eb7
* Port bindings for gnutls now bind via ip:port, rather than on all ports for ↵Gravatar brain2008-03-241-2/+21
| | | | | | that ip, fixes feature request for roadmap. NOTE, this still needs doing for the openssl module! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9188 e03df62e-2008-0410-955e-edbf42e46eb7
* Add stuff so that modules can hook users by altering a pointer in the User ↵Gravatar brain2008-03-241-11/+0
| | | | | | class. Note that ssl modules still bind by port, but the idea of doing this change is so we can remove that logic next git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9187 e03df62e-2008-0410-955e-edbf42e46eb7
* Convert remaining InspIRCd::Log() calls to new logging systemGravatar aquanight2008-02-221-8/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9001 e03df62e-2008-0410-955e-edbf42e46eb7
* Commit patch from danieldg that makes a ton of stuff const-safe for latest ↵Gravatar brain2008-02-131-2/+2
| | | | | | warn-happy trigger-happy gcc4 (thanks) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8922 e03df62e-2008-0410-955e-edbf42e46eb7
* Add -Wshadow to cflags, and fix a bunch of warnings that come with it. Add a ↵Gravatar w00t2008-02-111-23/+23
| | | | | | note to webirc that needs looking at. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8892 e03df62e-2008-0410-955e-edbf42e46eb7
* Avoid reallocating this every new connection (patch from hottpd)Gravatar w00t2008-02-021-4/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8794 e03df62e-2008-0410-955e-edbf42e46eb7
* Move User::AddClient to UserManager::AddClient. WARNING: I assure you this ↵Gravatar w00t2008-01-131-1/+1
| | | | | | is currently WRONG as I was playing with moving a few bits to the constructor. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8706 e03df62e-2008-0410-955e-edbf42e46eb7
* Header update: 2007 -> 2008Gravatar w00t2008-01-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
* All the core is now pedantic safe!Gravatar brain2007-10-231-3/+4
| | | | | | | NOTE: I changed ModeHandler removing a redundant param. Devs, if you find stuff that doesnt compile, change AddMode(handler, 'l') to AddMode(handler); and it will :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8319 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove the need for a bunch of the hard coded arrays/hashes by scanning the ↵Gravatar brain2007-10-221-0/+2
| | | | | | src/ dir for tag comments, like in modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8307 e03df62e-2008-0410-955e-edbf42e46eb7
* In the grand tradition of huge fucking commits:Gravatar w00t2007-10-151-1/+1
| | | | | | | | - chanrec -> Channel - userrec -> User Enjoy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7
* Added a warning when 4in6 is used for bindingGravatar special2007-10-111-1/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8144 e03df62e-2008-0410-955e-edbf42e46eb7
* * Fixed some incorrect declarations in IOCPEngineGravatar burlex2007-09-041-1/+1
| | | | | | | | | | * 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
* Remove more unnecessary header trafficGravatar w00t2007-08-271-2/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7887 e03df62e-2008-0410-955e-edbf42e46eb7
* Craquity craq De-craq!Gravatar brain2007-08-231-32/+9
| | | | | | | | | | 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
* Switch around the two operations in MatchCIDRBits to make negative matches ↵Gravatar brain2007-08-231-7/+7
| | | | | | faster (and not change the speed of positive matches) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7797 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows specific data types in EventHandler are now Extensible itemsGravatar brain2007-07-271-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7599 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove a braindead comment ('this belongs in class InspIRCd' -- when it's ↵Gravatar w00t2007-07-231-1/+0
| | | | | | already there.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7507 e03df62e-2008-0410-955e-edbf42e46eb7
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.Gravatar peavey2007-07-161-1/+568
| | | | 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-568/+1
| | | | | | auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
* re-apply ipv6 ifdef tidyup that got pulled in last revert.Gravatar peavey2007-06-011-11/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7205 e03df62e-2008-0410-955e-edbf42e46eb7
* revert multiaccept for now until we can fix it for win.Gravatar peavey2007-06-011-54/+42
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7204 e03df62e-2008-0410-955e-edbf42e46eb7
* Apply ipv6 #ifdef tidyup patch from djGrrr, thanks :)Gravatar brain2007-05-301-11/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7190 e03df62e-2008-0410-955e-edbf42e46eb7
* Metaphorically add a metaphorical comment to the metaphorical code. Thank ↵Gravatar brain2007-05-291-0/+1
| | | | | | god its not metadata. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7184 e03df62e-2008-0410-955e-edbf42e46eb7
* Commit multiaccept diff by myself to speed up large numbers of connections.Gravatar w00t2007-05-291-35/+53
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7183 e03df62e-2008-0410-955e-edbf42e46eb7
* It seems that making inspircd.h the first include in .cpp files eliminates ↵Gravatar brain2007-05-211-1/+1
| | | | | | the warning C4996, as the defines to prevent it are set before any includes that cause it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7094 e03df62e-2008-0410-955e-edbf42e46eb7
* Visual studio's ability to translate tabs to four spaces as default ↵Gravatar brain2007-05-191-6/+6
| | | | | | frustrates and peplexes tabnazi cat. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7047 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows support. Tested and working to compile on freebsd and linux. Next ↵Gravatar w00t2007-05-191-7/+17
| | | | | | 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
* Allow removal of client ports from the config file via rehashGravatar brain2007-05-111-0/+38
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6984 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactor port binding, warning not yet tested fullyGravatar brain2007-05-111-90/+29
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6982 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix two things: (1) log gets replaced by a user fd after restart causing ↵Gravatar brain2007-03-241-2/+6
| | | | | | | | | debug log to go to a user's status window (!) (2) restart failing due to segfault within libc (this is because some moron decided that stdin, stdout, and stderr should still be non-null if the files arent actually open!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6707 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove debug output that was only useful to meGravatar brain2007-02-061-22/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6530 e03df62e-2008-0410-955e-edbf42e46eb7
* DNS lookups now work for users.Gravatar brain2007-02-061-6/+20
| | | | | | | | | Todo: Upon receiving 'no resource records found' on doing AAAA or PTR6, immediately re-insert a request looking for A or PTR. someone remind me about this when i have time. Also todo: inspsocket connects. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6512 e03df62e-2008-0410-955e-edbf42e46eb7
* Stuff to make dns work protocol-independentGravatar brain2007-02-051-11/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6506 e03df62e-2008-0410-955e-edbf42e46eb7
* Not safe for use yetGravatar brain2007-02-051-21/+47
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6502 e03df62e-2008-0410-955e-edbf42e46eb7
* Smart tricks to allow for ipv4 and ipv6 bindings on client ports. WARNING, ↵Gravatar brain2007-02-051-20/+46
| | | | | | NOT FINISHED YET git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6501 e03df62e-2008-0410-955e-edbf42e46eb7
* Pass sizeof(sockaddr) to bind now. Passing the size of a pointer really isnt ↵Gravatar brain2007-02-051-3/+6
| | | | | | a smart idea (and doesnt work) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6500 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix ipv4 bindings for ipv4 only serversGravatar brain2007-02-051-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6499 e03df62e-2008-0410-955e-edbf42e46eb7
* Heavy state of debug. If you are a developer, please avoid making use of ↵Gravatar brain2007-02-051-24/+66
| | | | | | this bit of code. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6498 e03df62e-2008-0410-955e-edbf42e46eb7
* Why the fuck do no systems have INADDR6_ANY?!Gravatar brain2007-01-311-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6468 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweaks to backwards memcpy's that dont actually do anything, causing ipv6 ↵Gravatar brain2007-01-301-3/+3
| | | | | | address bindings to potentially be bound to random ips. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6467 e03df62e-2008-0410-955e-edbf42e46eb7
* Crusade to remove debug from stable and tested parts of the core and base ↵Gravatar brain2007-01-151-24/+0
| | | | | | | | | | modules. Most of the code here being de-noised hasnt had a crash or bug in it for many months, if not a year so the debug output is useless noise in the logfile when trying to trace a bug in a REAL problem area. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6356 e03df62e-2008-0410-955e-edbf42e46eb7