mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
564 B
C++
32 lines
564 B
C++
6 years ago
|
#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
|