Split HTTP::Server to its own module

This commit is contained in:
Vinnie Falco
2013-09-22 00:13:58 -07:00
parent 0dc3cf07d0
commit a2151bfa47
34 changed files with 1729 additions and 1371 deletions

View File

@@ -0,0 +1,46 @@
//------------------------------------------------------------------------------
/*
Copyright (c) 2011-2013, OpenCoin, Inc.
*/
//==============================================================================
namespace ripple {
namespace HTTP {
Server::Server (Handler& handler, Journal journal)
: m_impl (new ServerImpl (*this, handler, journal))
{
}
Server::~Server ()
{
stop();
}
Journal const& Server::journal () const
{
return m_impl->journal();
}
Ports const& Server::getPorts () const
{
return m_impl->getPorts();
}
void Server::setPorts (Ports const& ports)
{
m_impl->setPorts (ports);
}
void Server::stopAsync ()
{
m_impl->stop(false);
}
void Server::stop ()
{
m_impl->stop(true);
}
}
}