Commit Graph

4 Commits

Author SHA1 Message Date
cflakes 4947a6441f Use a better error message for browsers connecting to IRC only listener ports.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1971 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 17:51:06 +00:00
psychon cc6e59eacf Add and use CListener::AcceptType
This enum let's one control what kind of connections a listener will allow.
HTTP requests to an IRC-only port and IRC requests to a HTTP-only port will be
booted off.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1960 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 14:33:15 +00:00
psychon 6824e3e269 Move the HTTP/IRC switching to CIncomingConnection
This new class waits for the first line from the client and checks if it's an
HTTP request and then passes the connection on to the irc or http code.

Before this, the IRC parser handled this as a special case which wasn't as
nice-looking as this is. :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1925 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 18:20:12 +00:00
psychon ab849bb922 Move CListener and CRealListener into their own files
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1924 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 16:52:30 +00:00