mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
simplify default TCP/HTTPServer construction
This commit is contained in:
@@ -42,6 +42,13 @@ namespace Poco {
|
||||
namespace Net {
|
||||
|
||||
|
||||
HTTPServer::HTTPServer(HTTPRequestHandlerFactory::Ptr pFactory, Poco::UInt16 portNumber, HTTPServerParams::Ptr pParams):
|
||||
TCPServer(new HTTPServerConnectionFactory(pParams, pFactory), portNumber, pParams),
|
||||
_pFactory(pFactory)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
HTTPServer::HTTPServer(HTTPRequestHandlerFactory::Ptr pFactory, const ServerSocket& socket, HTTPServerParams::Ptr pParams):
|
||||
TCPServer(new HTTPServerConnectionFactory(pParams, pFactory), socket, pParams),
|
||||
_pFactory(pFactory)
|
||||
|
||||
Reference in New Issue
Block a user