mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 04:37:50 +02:00
Add more information to webui.
This commit is contained in:
parent
7e066f7f69
commit
9890bf98e4
13 changed files with 239 additions and 107 deletions
|
@ -36,7 +36,7 @@ const char HTTP_COMMAND_SAM_SESSION[] = "sam_session";
|
|||
const char HTTP_PARAM_SAM_SESSION_ID[] = "id";
|
||||
|
||||
HTTPConnection::HTTPConnection(boost::asio::ip::tcp::socket* socket,
|
||||
std::shared_ptr<i2p::client::I2PControlSession> session)
|
||||
std::shared_ptr<client::i2pcontrol::I2PControlSession> session)
|
||||
: m_Socket(socket), m_Timer(socket->get_io_service()),
|
||||
m_BufferLen(0), m_Session(session)
|
||||
{
|
||||
|
@ -159,7 +159,7 @@ void HTTPConnection::HandleRequest()
|
|||
void HTTPConnection::HandleI2PControlRequest()
|
||||
{
|
||||
std::stringstream ss(m_Request.getContent());
|
||||
const client::I2PControlSession::Response rsp = m_Session->handleRequest(ss);
|
||||
const client::i2pcontrol::I2PControlSession::Response rsp = m_Session->handleRequest(ss);
|
||||
m_Reply = i2p::util::http::Response(200, rsp.toJsonString());
|
||||
m_Reply.setHeader("Content-Type", "application/json");
|
||||
SendReply();
|
||||
|
@ -197,7 +197,7 @@ HTTPServer::HTTPServer(const std::string& address, int port):
|
|||
boost::asio::ip::address::from_string(address), port)
|
||||
),
|
||||
m_NewSocket(nullptr),
|
||||
m_Session(std::make_shared<i2p::client::I2PControlSession>(m_Service))
|
||||
m_Session(std::make_shared<client::i2pcontrol::I2PControlSession>(m_Service))
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue