summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-09-11Minor stylistic improvements.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10515 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11These socket engines may now recieve write and read events in the same ↵w00t
cycle, same as select and poll. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10514 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11Fix a compile oops.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10513 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11There is absolutely no need to cache connect timeout.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10512 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11Remove an unused member.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10511 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11Windows doesn't need blocking connect, IOCP was the cause of that.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10510 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11Remove WaitingForWriteEvent, it seems to do *nothing* except confuse things. ↵w00t
Also, don't close socket on http if FlushWriteBuf doesn't write it all in one go, in fact, don't try FlushWriteBuf at all - use the sockets default of waiting to be told it's safe to write data. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10509 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-10Back out change, as this doesn't work properly with channel bans.. ↵w00t
Prioritise before cloaking, as otherwise you may encounter usermode changes on a nonexistant user. (part of the original change too). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10508 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-10Bit of a tidyup, generate cloak whenever first set, not necessarily on connectw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10500 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-10Hook conn_umodes before anything else so that config order is less of a factorw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10497 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-10Clear out the string used for the temporarily stored hostname during DNS ↵special
resolution. Should save at least strlen(host) per user git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10496 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-10Move XMLSocket to be modulemanager-provided, flash now has real socket ↵w00t
support (so it's not as necessary), and most networks do not have flash clients using it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10495 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-10Fixed comments for cached host fields in User; 3/4 of these were completely ↵special
incorrect. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10494 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09Remove a totally redundant method (this is already available via inheritance ↵w00t
from EventHandler) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10490 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09Remember to free some stuff when failing in the ctorbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10489 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09fix compile errors (whoops)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10488 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09Whoops, schoolboy errorbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10487 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09Add connmutex to mutex the connections vector, otherwise we can get access ↵brain
from two threads and it is stl. ew. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10486 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09peavey, w00t, this works now. Methods werent copied right. Please feel free ↵brain
to base the other sql module fixes on the diffs that i used to fix this. ALSO now works on win32, tested! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10485 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09fixed a /MT to be /MDbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10484 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09fix various bodge-ups, we must have been tired when fixing this in the first ↵brain
place to use the new api, methods are in the wrong places. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10483 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09not test compiled yet: sql modules werent working because someone chopped ↵brain
out the important code that determines what port the new socket is bound to when binding to port "0". The GetPort() method belongs in the listensocketbase derived socket not the bufferedsocket one, and the code for determining the getsockname() belongs in the ctor for the listen derived socket. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10482 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Remove a (now nonexistant) reference from .hw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10481 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Check the wrong way around is just stupid. ;pw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10480 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Fix warning, thanks peavumsw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10479 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Growl.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10477 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Remove crappy, unsafe (and now unneeded!) casts.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10476 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08More compile fixes.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10475 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Fix compile problems hopefully..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10474 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08(Attempt to) convert MySQL to using listener base.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10473 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Remove old listening stuff from spanningtree, use a new derived listener class.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10472 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Give httpd a custom listener class, specialised in creating HttpServerSockets.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10471 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Remove listening from BufferedSocket, it's bloaty and horrid. We have a ↵w00t
ListenSocketBase class to handle this instead now. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10470 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Make OnAcceptReady pure virtual, rename ListenSocket to ListenSocketBase, ↵w00t
create ClientListenSocket and inherit from ListenSocketBase to create User objects. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10469 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Move this to another (yet more appropriate) place, saves some syscalls in an ↵w00t
unlikely condition. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10468 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Add incoming IP to OnAcceptReadyw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10467 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Allow for silencing getmodules() output (is annoying when using modulemanager)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10466 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Add "list" and usage to modulemanager [danieldg]w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10465 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Fix missing semicolon in m_ssl_openssl [danieldg]w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10464 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Move a socket sanity check into the generic listener handler, avoiding the ↵w00t
need to instantiate a user object in insane conditions. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10463 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Tidy up some of the internals a bit, making things a bit more extensible and ↵w00t
future proof. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10462 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Fix windows project filesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10461 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Merge class connection in with class user (nothing else inherits it anyway, ↵w00t
and all the fields in here were only really useful to users anyway) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10460 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Merge the second interface for socket hooking into one, so it's all done by ↵w00t
Add/Del/GetIOHook now. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10457 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Initialising the member we added might be an idea.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10456 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Make this work with older git, too (thanks danieldg)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10455 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Use git describe rather than git-svn, it works better with secondary clonesw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10454 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Updatesw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10453 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Invite timeout on server-to-server is already a unix timestampw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10452 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07Fix IO hooking modules to use the new (not old) hooking callw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10451 e03df62e-2008-0410-955e-edbf42e46eb7