summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket1.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add HMAC implementation to HashProviderGravatar danieldg2010-02-211-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12508 e03df62e-2008-0410-955e-edbf42e46eb7
* Clean up treesocket naming confusion by adding a link block reference during ↵Gravatar danieldg2010-02-131-43/+36
| | | | | | negotiation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12452 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix double-invocation of Squit that can cause a crash on delinkGravatar danieldg2010-02-131-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12451 e03df62e-2008-0410-955e-edbf42e46eb7
* Restart server_hash iteration after quitting dead and pinged out serversGravatar danieldg2010-02-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12435 e03df62e-2008-0410-955e-edbf42e46eb7
* Add DYING link state, push error messages on link, and only limit recvq on ↵Gravatar danieldg2010-02-041-1/+3
| | | | | | unauthenticated servers git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12370 e03df62e-2008-0410-955e-edbf42e46eb7
* Split servers if they try to send infinite garbage without a newlineGravatar danieldg2010-02-031-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12369 e03df62e-2008-0410-955e-edbf42e46eb7
* Stop parsing inbound server lines on an errorGravatar danieldg2010-01-301-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12334 e03df62e-2008-0410-955e-edbf42e46eb7
* Add CAPAB CHANMODES, CAPAB USERMODES to verify matching of modes by name, ↵Gravatar danieldg2010-01-151-9/+9
| | | | | | not just by letter git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12262 e03df62e-2008-0410-955e-edbf42e46eb7
* Verify cloak keys match during CAPAB negotiationGravatar danieldg2010-01-141-13/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12258 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Use ServiceProvider for inter-module dependenciesGravatar danieldg2009-11-161-17/+5
| | | | | | | | | | | This will stop dependency chains from preventing module reloads when it is not actually needed; however, it removes some failsafes that will need to be reimplemented in order to avoid unmapped vtables. This deprecates Request as an inter-module signaling mechanism, although SQL still uses it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12140 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix double-cull of users quitting due to connection errorGravatar danieldg2009-11-121-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12105 e03df62e-2008-0410-955e-edbf42e46eb7
* Clean up duplicated link snomask messages on errorsGravatar danieldg2009-11-031-5/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11999 e03df62e-2008-0410-955e-edbf42e46eb7
* Make User::uuid and User::server constGravatar danieldg2009-10-231-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11962 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix plural on netsplit SNO. [dKingston]Gravatar peavey2009-10-231-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11961 e03df62e-2008-0410-955e-edbf42e46eb7
* Make irc::sockets::* parameters consistent, add irc::sockets::maskGravatar danieldg2009-10-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11953 e03df62e-2008-0410-955e-edbf42e46eb7
* Kill ListenSocketBase, use OnAcceptConnection for all new connectionsGravatar danieldg2009-10-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11950 e03df62e-2008-0410-955e-edbf42e46eb7
* some WriteGlobalSno changesGravatar danieldg2009-10-211-32/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11939 e03df62e-2008-0410-955e-edbf42e46eb7
* Make classbase and refcountbase uncopyable; expand comments on their ↵Gravatar danieldg2009-10-171-1/+1
| | | | | | indended uses git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11888 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix hook finding code and error reportingGravatar danieldg2009-10-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11813 e03df62e-2008-0410-955e-edbf42e46eb7
* Move autoconnect next-server to TreeSocket::cull, and drop autoconnect ↵Gravatar danieldg2009-10-091-1/+2
| | | | | | reference once a connection is complete git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11811 e03df62e-2008-0410-955e-edbf42e46eb7
* Add server ports to ServerInstance->ports, enable SSL on them using OnHookIOGravatar danieldg2009-10-091-1/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11810 e03df62e-2008-0410-955e-edbf42e46eb7
* Update Event and Request APIsGravatar danieldg2009-10-081-33/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11808 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix valgrind issues and crashes on exitGravatar danieldg2009-10-021-3/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11794 e03df62e-2008-0410-955e-edbf42e46eb7
* Add ROUTE_TYPE_MESSAGE and use for PRIVMSG/NOTICE routingGravatar danieldg2009-10-011-8/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11791 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow multiple autoconnects in a single <autoconnect> tag, fix infinite failoverGravatar danieldg2009-09-301-3/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11786 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't try to write to dead users, add debug to SquitServer, and remove a ↵Gravatar danieldg2009-09-211-0/+2
| | | | | | string copy in spanningtree write git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11753 e03df62e-2008-0410-955e-edbf42e46eb7
* Create StreamSocket for IO hooking implementationGravatar danieldg2009-09-211-83/+45
| | | | | | | | | | | | | | Fixes the SSL SendQ bug Removes duplicate code between User and BufferedSocket Simplify SSL module API Simplify EventHandler API (Readable/Writeable moved to SE) Add hook for culled objects to invoke callbacks prior to destructor Replace SocketCull with GlobalCull now that sockets can close themselves Shorten common case of user read/parse/write path: User::Write is now zero-copy up to syscall/SSL invocation User::Read has only two copy/scan passes from read() to ProcessCommand git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11752 e03df62e-2008-0410-955e-edbf42e46eb7
* Add <autoconnect> blocks [jackmcbarn]Gravatar danieldg2009-09-171-9/+5
| | | | | | Replaces <link:failover> and <link:autoconnect> git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11741 e03df62e-2008-0410-955e-edbf42e46eb7
* Change cmd_*.so to use the Module object APIGravatar danieldg2009-09-031-2/+0
| | | | | | | | | | | | | | Create Module* objects for each command, and load them like modules. This unifies the external API for modules. Library directory is now deprecated: all modules are located in a single module directory. Header files for each command are no longer needed; remove. This also fixes two potential segfaults in m_spanningtree. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11668 e03df62e-2008-0410-955e-edbf42e46eb7
* Add modules to the VF_COMMON list in backwards compatability link mode, ↵Gravatar danieldg2009-09-021-9/+7
| | | | | | translate FIDENT as CHGIDENT git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11657 e03df62e-2008-0410-955e-edbf42e46eb7
* Add VF_OPTCOMMON for optionally common modulesGravatar danieldg2009-09-021-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11619 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove unneeded Extensible inheritance and remove "age" field from classbaseGravatar danieldg2009-09-021-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11611 e03df62e-2008-0410-955e-edbf42e46eb7
* Replace std::deque with std::vector in spanningtree and related modulesGravatar danieldg2009-09-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11593 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix build of m_spanningtree and display of dependency regenerationGravatar danieldg2009-09-011-9/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11557 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow SSL fingerprint-based server authenticationGravatar danieldg2009-06-071-0/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11404 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove handshake timer on server sockets that die before completing handshakeGravatar danieldg2009-05-071-2/+9
| | | | | | | | This fixes some very subtle and hard-to-trace bugs that are triggered when a file descriptor and memory address of an EventHandler* are reused after being deallocated. Impossible to trigger in valgrind; has been seen in live networks. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11369 e03df62e-2008-0410-955e-edbf42e46eb7
* Add loopCall to prevent double-broadcasting new X:linesGravatar danieldg2009-04-191-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11319 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. 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
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Add snomask +s +L - remote link notices.Gravatar w00t2008-10-311-13/+19
| | | | | | | | Can be a useful distinction for bigger networks or networks with more distinction on what people can and cannot see. This also makes RemoteMessage more match it's docs and removes useless redundancy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10759 e03df62e-2008-0410-955e-edbf42e46eb7
* Be consistent. Use ServerInstance in all places instead of 'Instance' in ↵Gravatar w00t2008-09-211-7/+7
| | | | | | half. This has bugged me forever :p. I think I got all of extra/ too.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10579 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix the 'i/o error on connection (no error)' stuff, by displaying 'connected ↵Gravatar brain2008-09-211-1/+1
| | | | | | | | | | closed unexpectedly' when errno == 0. Also trigger failover whenever a connection times out in the new authentication timeout code (the connection isnt properly established so the failover should trigger) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10575 e03df62e-2008-0410-955e-edbf42e46eb7
* inbound sockets need a timeout, too. 30 secs should be pleantyGravatar brain2008-09-191-1/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10560 e03df62e-2008-0410-955e-edbf42e46eb7
* Implement timeout on outgoing server connections as per our docs <link:timeout>Gravatar peavey2008-09-191-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10558 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove old listening stuff from spanningtree, use a new derived listener class.Gravatar w00t2008-09-081-16/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10472 e03df62e-2008-0410-955e-edbf42e46eb7
* Match conversion stuff.Gravatar w00t2008-08-221-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10216 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert automated conversion by Special, as it (unfortunately) neglects some ↵Gravatar w00t2008-08-221-0/+1
| | | | | | details. It provides a useful start point, though, so it'll be used as the basis for the final conversion. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10215 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a lot of calls to match() and uses of wildcard.h (which doesn't exist ↵Gravatar special2008-08-221-1/+0
| | | | | | anymore) after w00t broke them. Still broken pending a few more changes (it's all w00t's fault.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10214 e03df62e-2008-0410-955e-edbf42e46eb7