GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi_http.hh
Go to the documentation of this file.
1#ifndef GAMEAPI_HTTP_HH
2#define GAMEAPI_HTTP_HH
3
4#include <string>
5#include <vector>
6#include "GameApi.hh"
7
8IMPORT void start_http_listening(std::vector<std::string> filenames,
9 std::vector<std::string> contents,
10 std::string homepage,
11 std::string script,
12 std::string date,
13 bool transparent);
14
15IMPORT std::string http_server_address();
16IMPORT void http_sleep();
17IMPORT void join_http();
21IMPORT const char * choose_type(std::string filename);
22IMPORT void http_server(std::vector<std::string> filenames,
23 std::vector<std::string> contents,
24 std::string homepage,
25 std::string script,
26 std::string date, bool transparent);
27IMPORT void *http_server_process(void *ptr);
28
30{
31 std::vector<std::string> orig_urls;
32 std::vector<std::string> filenames;
33 std::vector<std::string> contents;
34};
35
36IMPORT std::string replace_urls_from_script(std::string script,
37 const HttpDeployResult &data);
38
39IMPORT HttpDeployResult http_deploy(GameApi::Env &env, std::string h2_script);
40
41void set_http_server_htmlfile(std::string file);
42
43std::string gameapi_example(std::string homepage, std::string script, std::string date, bool transparent);
44
46{
47 std::string filename;
48 std::string contents;
49};
50
51IMPORT std::vector<unsigned char> find_display_zip_file();
52IMPORT std::vector<HttpFileFromZip> decompress_zip_file(std::vector<unsigned char> zip_contents);
53
54
55
56
57#endif
struct Envi env
#define IMPORT
Definition GameApi.hh:332
IMPORT void start_http_listening(std::vector< std::string > filenames, std::vector< std::string > contents, std::string homepage, std::string script, std::string date, bool transparent)
Definition GameApi_http.cc:160
IMPORT void http_server(std::vector< std::string > filenames, std::vector< std::string > contents, std::string homepage, std::string script, std::string date, bool transparent)
Definition GameApi_http.cc:297
IMPORT void join_http()
Definition GameApi_http.cc:180
IMPORT const char * choose_type(std::string filename)
Definition GameApi_http.cc:240
IMPORT std::vector< HttpFileFromZip > decompress_zip_file(std::vector< unsigned char > zip_contents)
Definition GameApi_http.cc:990
IMPORT bool choose_http_port()
Definition GameApi_http.cc:220
IMPORT std::string replace_urls_from_script(std::string script, const HttpDeployResult &data)
Definition GameApi_http.cc:447
std::string gameapi_example(std::string homepage, std::string script, std::string date, bool transparent)
Definition GameApi_http.cc:768
IMPORT HttpDeployResult http_deploy(GameApi::Env &env, std::string h2_script)
Definition GameApi_http.cc:463
IMPORT std::string http_server_address()
Definition GameApi_http.cc:38
IMPORT void send_http_server_shutdown()
Definition GameApi_http.cc:209
IMPORT std::vector< unsigned char > find_display_zip_file()
Definition GameApi_http.cc:937
IMPORT void http_sleep()
Definition GameApi_http.cc:195
IMPORT void start_server_shutdown()
Definition GameApi_http.cc:187
void set_http_server_htmlfile(std::string file)
Definition GameApi_http.cc:763
IMPORT void * http_server_process(void *ptr)
Definition GameApi_http.cc:439
Definition GameApi.hh:362
lazy data
Definition meshpage.php:1583
std::string filenames[]
Definition parser.cc:237
Definition GameApi_http.hh:30
std::vector< std::string > orig_urls
Definition GameApi_http.hh:31
std::vector< std::string > contents
Definition GameApi_http.hh:33
std::vector< std::string > filenames
Definition GameApi_http.hh:32
Definition GameApi_http.hh:46
std::string contents
Definition GameApi_http.hh:48
std::string filename
Definition GameApi_http.hh:47