mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
31 lines
564 B
C++
31 lines
564 B
C++
#ifndef BOOTSERV_LOKINET_CRON_HPP
|
|
#define BOOTSERV_LOKINET_CRON_HPP
|
|
|
|
#include "handler.hpp"
|
|
|
|
namespace lokinet
|
|
{
|
|
namespace bootserv
|
|
{
|
|
struct CGIHandler final : public Handler
|
|
{
|
|
CGIHandler(std::ostream& o);
|
|
~CGIHandler();
|
|
|
|
int
|
|
Exec(const Config& conf) override;
|
|
|
|
int
|
|
ReportError(const char* err) override;
|
|
|
|
int
|
|
ServeFile(const char* fname, const char* mime) const;
|
|
|
|
std::string
|
|
PickRandomFileInDir(std::string dirname) const;
|
|
};
|
|
|
|
} // namespace bootserv
|
|
} // namespace lokinet
|
|
|
|
#endif
|