31 virtual void process(
const std::string & uri, std::ostream & message_stream, std::string & response_type, std::unique_ptr<http_chomik::server> & my_server);
70 virtual void add_html_body_for_code(std::ostream & message_stream,
const std::string & decoded_code, std::stringstream & error_stream,
71 std::stringstream & error_stream2);
91 void handle_code(std::ostream & message_stream, std::smatch & m);
109 target = std::move(std::make_unique<SERVER_CLASS>(sock));
117#define HTTP_CHOMIK_PRODUCTION
119#ifdef HTTP_CHOMIK_PRODUCTION
120#define HTTP_CHOMIK_LOG_ERROR(X) \
122 std::stringstream s; \
124 syslog (LOG_PERROR, s.str().c_str()); \
126#define HTTP_CHOMIK_LOG_NOTICE(X) \
128 std::stringstream s; \
130 syslog (LOG_NOTICE, s.str().c_str()); \
133#define HTTP_CHOMIK_LOG_ERROR(X) \
135 std::stringstream s; \
137 std::cerr << s.str() << "\n"; \
139#define HTTP_CHOMIK_LOG_NOTICE(X) \
141 std::stringstream s; \
143 std::cout << s.str() << "\n"; \
Definition http_chomik.h:13
virtual void create_predefined_streams() override
virtual bool get_can_create_files() const override final
Definition http_chomik.h:17
Definition http_chomik.h:41
virtual void create_a_new_machine(std::unique_ptr< machine > &target)
void handle_main(std::ostream &message_stream)
virtual void add_html_body_for_incorrect_uri(std::ostream &message_stream)
void send_message(const std::string &message)
server(int s)
Definition http_chomik.h:86
virtual void add_html_head_content(std::ostream &message_stream)
static void do_processing(int my_port, wrapper_base &my_wrapper)
virtual void add_html_body_for_code(std::ostream &message_stream, const std::string &decoded_code, std::stringstream &error_stream, std::stringstream &error_stream2)
virtual void add_html_default_chomik_code(std::ostream &message_stream)
void read_data(std::ostream &input_buffer_stream)
void handle_code(std::ostream &message_stream, std::smatch &m)
void handle_chomik_image(std::ostream &message_stream)
void handle_incorrect_uri(std::ostream &message_stream)
virtual void add_html_body(std::ostream &message_stream)
void add_html_for_program_output(std::istream &source, std::ostream &message_stream)
void handle_stylesheet(std::ostream &message_stream)
Definition http_chomik.h:23
virtual void create_a_new_server(std::unique_ptr< server > &target, int sock)=0
virtual void process(const std::string &uri, std::ostream &message_stream, std::string &response_type, std::unique_ptr< http_chomik::server > &my_server)
static void do_processing_client(int sock, wrapper_base &my_wrapper)
Definition http_chomik.h:105
virtual void create_a_new_server(std::unique_ptr< server > &target, int sock) override
Definition http_chomik.h:107
Definition http_chomik.h:8