aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-4/+4
|
* Get rid of irc::sockets::satoap().Gravatar Peter Powell2017-09-121-4/+2
| | | | | This function is being misused in all but one scenario. It isn't really worth keeping IMO.
* Convert a bunch of time-related config options to getDuration.Gravatar Peter Powell2017-09-031-1/+1
|
* Add CXX11_OVERRIDE to overridden members that lack it.Gravatar Peter Powell2017-07-121-2/+2
| | | | | This fixes a ton of warnings when building on compilers that default to C++11 or newer.
* Check for errors after calling IOHookProvider::OnAccept()Gravatar Attila Molnar2016-08-241-2/+10
|
* Keep multiple IOHookProvider references in class ListenSocketGravatar Attila Molnar2016-08-081-2/+2
| | | | This adds the <bind:hook> config option which works together with <bind:ssl>
* Add StreamSocket::GetModHook() for obtaining the IOHook belonging to a given ↵Gravatar Attila Molnar2016-08-081-1/+1
| | | | | | module Use it to simplify logic in all modules using or providing IOHooks
* m_httpd Fix iteration in OnUnloadModule()Gravatar Attila Molnar2015-05-011-1/+1
|
* Merge insp20Gravatar Attila Molnar2015-04-201-0/+14
|\
| * m_httpd On module unload close all connections hooked by the module being ↵Gravatar Attila Molnar2014-12-101-1/+15
| | | | | | | | unloaded
* | m_httpd Remove now unused variable "claimed"Gravatar Attila Molnar2015-02-111-3/+0
| |
* | Remove unused parameters from HTTPRequest constructorGravatar Attila Molnar2015-02-111-2/+2
| |
* | Convert the HTTPd request event to use the new cross-module event systemGravatar Attila Molnar2015-02-111-2/+6
| |
* | Convert the HTTPd ACL event to use the new cross-module event systemGravatar Attila Molnar2015-02-111-2/+7
| |
* | Reduce std::string::substr() usageGravatar Attila Molnar2015-01-101-2/+2
| | | | | | | | substr() returns a new string while erase() and assign() modify the existing one
* | m_flashpolicyd, m_httpd Store sockets in a intrusive listGravatar Attila Molnar2014-11-031-4/+4
| |
* | m_flashpolicyd, m_httpd Handle timeouts using the Timer systemGravatar Attila Molnar2014-11-031-27/+30
| |
* | m_httpd Clean up HttpServerSocket constructorGravatar Attila Molnar2014-11-031-3/+4
| |
* | m_httpd Remove unused containerGravatar Attila Molnar2014-11-031-1/+0
| |
* | m_httpd Always timeout connections, set default timeout to 10 secondsGravatar Attila Molnar2014-11-031-4/+1
| |
* | Add parameter to InspIRCd::TimeString for UTC time formats.Gravatar Peter Powell2014-06-251-1/+1
| | | | | | | | Missing doc added by @attilamolnar
* | Add formatting to InspIRCd::TimeString; switch all code to use it.Gravatar Peter Powell2014-06-251-6/+1
| | | | | | | | | | | | m_httpd also now uses the correct timestamp format. Windows-specific fixes by @attilamolnar, original PR #849
* | Prefix all definitions in config.h to avoid potential collisions.Gravatar Peter Powell2014-05-231-1/+1
| |
* | Merge insp20Gravatar Attila Molnar2014-04-071-1/+1
|\|
| * m_httpd Fix typo noticed by @SaberUKGravatar Attila Molnar2014-03-251-1/+1
| |
* | Split IOHook into IOHook and IOHookProviderGravatar Attila Molnar2014-01-221-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create one IOHook instance for each hooked socket which contains all the hook specific data and read/write/close functions, removing the need for the "issl_session" array in SSL modules. Register instances of the IOHookProvider class in the core and use them to create specialized IOHook instances (OnConnect/OnAccept). Remove the OnHookIO hook, add a dynamic reference to ListenSocket that points to the hook provider (if any) to use for incoming connections on that socket. For outgoing connections modules still have to find the IOHookProvider they want to use themselves but instead of calling AddIOHook(hookprov), now they have to call IOHookProvider::OnConnect() after the connection has been established.
* | Merge insp20Gravatar Attila Molnar2014-01-211-5/+43
|\|
| * m_httpd Add timeout option; remove timed out connectionsGravatar Attila Molnar2014-01-201-1/+31
| |
| * m_httpd Close all open http sockets on unloadGravatar attilamolnar2013-09-091-7/+15
| |
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-1/+0
| |
* | Remove $ModDep commentsGravatar attilamolnar2013-08-151-2/+0
| |
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-1/+0
| |
* | Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-1/+1
| |
* | Change modules to use the MODNAME constant when logging.Gravatar Peter Powell2013-08-041-1/+1
| | | | | | | | | | | | | | | | The majority of modules were logging with their module name as the log type. There was a few places which were logging to a non-name type but, with the exception of CONFIG, those messages are so uncommon that it doesn't make sense to use a seperate type for them.
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-1/+0
| |
* | Change the API of m_httpd to be dynamic_reference-basedGravatar attilamolnar2013-06-071-9/+22
| |
* | Create IOHook interface (extracted from Module)Gravatar attilamolnar2013-06-071-0/+1
| |
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-1/+1
| |
* | Tidy up keywords on module methods.Gravatar Peter Powell2013-05-151-6/+6
| | | | | | | | | | - Remove virtual keyword from a ton of methods which don't need it. - Add override keyword to a ton of methods which do need it.
* | Tidy up source files:Gravatar Peter Powell2013-04-121-2/+2
| | | | | | | | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-1/+1
| |
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-3/+1
|/
* Use a better server name in m_httpd.Gravatar Peter Powell2013-01-281-1/+1
|
* Attach to events and register services in init()Gravatar attilamolnar2012-12-021-1/+2
|
* m_httpd Accept POST requests only when the value for Content-Length is ↵Gravatar attilamolnar2012-09-231-1/+1
| | | | greater than zero
* Fix undefined behavior caused by referencing the returned buffer by ↵Gravatar attilamolnar2012-09-231-1/+1
| | | | | | | std::string::c_str() when the object is temporary Thanks to @ChrisTX for pointing this out Fixes #257 reported by @helloall
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+19
|
* ...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
* 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
* Fix m_httpdGravatar danieldg2009-10-231-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11959 e03df62e-2008-0410-955e-edbf42e46eb7