mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
split diagnostics by few pages
This commit is contained in:
parent
c30dc4f877
commit
fd090fa0c0
2 changed files with 78 additions and 114 deletions
27
HTTPServer.h
27
HTTPServer.h
|
@ -57,13 +57,14 @@ namespace util
|
|||
void HandleWrite (const boost::system::error_code& ecode);
|
||||
void SendReply (const std::string& content, int status = 200);
|
||||
|
||||
void HandleRequest ();
|
||||
void HandleRequest (const std::string& address);
|
||||
void HandleCommand (const std::string& command, std::stringstream& s);
|
||||
void ShowTransports (std::stringstream& s);
|
||||
void ShowTunnels (std::stringstream& s);
|
||||
void ShowTransitTunnels (std::stringstream& s);
|
||||
void FillContent (std::stringstream& s);
|
||||
std::string ExtractAddress ();
|
||||
|
||||
// for eepsite
|
||||
void EepAccept (i2p::stream::StreamingDestination * destination);
|
||||
void HandleEepAccept (i2p::stream::Stream * stream);
|
||||
|
||||
protected:
|
||||
|
||||
|
@ -114,24 +115,6 @@ namespace util
|
|||
protected:
|
||||
virtual void CreateConnection(boost::asio::ip::tcp::socket * m_NewSocket);
|
||||
};
|
||||
|
||||
// TODO: move away
|
||||
class EepSiteDummyConnection
|
||||
{
|
||||
public:
|
||||
|
||||
EepSiteDummyConnection (i2p::stream::Stream * stream): m_Stream (stream) {};
|
||||
void AsyncStreamReceive ();
|
||||
|
||||
private:
|
||||
|
||||
void HandleStreamReceive (const boost::system::error_code& ecode, std::size_t bytes_transferred);
|
||||
|
||||
private:
|
||||
|
||||
i2p::stream::Stream * m_Stream;
|
||||
char m_StreamBuffer[8192];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue