myTinySQL v0.2.0-2-g5000098
A tiny SQL interpreter over fixed-width text files
Loading...
Searching...
No Matches
Server.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <cstdint>
7#include <filesystem>
8#include <string>
9#include <vector>
10
11namespace tinysql {
12
15 std::uint16_t port = 8080;
16 std::filesystem::path dataDir;
17 std::filesystem::path webDir;
18 std::vector<std::string> allowedClients;
19};
20
28void runServer(const ServerConfig& config);
29
30} // namespace tinysql
void runServer(const ServerConfig &config)
Serves connections until the process is stopped.
Definition Server.cpp:312
Settings of the browser server.
Definition Server.hpp:14
std::filesystem::path dataDir
The directory holding the tables.
Definition Server.hpp:16
std::vector< std::string > allowedClients
IP prefixes such as 192.168.; empty means everyone.
Definition Server.hpp:18
std::uint16_t port
TCP port to listen on.
Definition Server.hpp:15
std::filesystem::path webDir
The directory holding the page: index.html, style.css, app.js.
Definition Server.hpp:17