Go to file
2021-08-19 23:17:33 +02:00
external Updating submodules after so long 2021-08-19 23:17:33 +02:00
include Beginning of implementation of the network part 2021-03-23 21:51:21 +01:00
src Little mistake 2021-03-23 21:50:26 +01:00
.gitignore init 2021-01-07 21:01:47 +01:00
.gitmodules Improved doxygen theme with doxygen-awesome-css from jothepro on GitHub 2021-03-22 15:02:19 +01:00
class_diagram.puml Better diagram 2021-02-21 11:22:57 +01:00
CMakeLists.txt Correction and example 2021-03-23 21:50:51 +01:00
config.json Correction and example 2021-03-23 21:50:51 +01:00
Doxyfile Improved doxygen theme with doxygen-awesome-css from jothepro on GitHub 2021-03-22 15:02:19 +01:00
main.cpp Beginning of implementation of the network part 2021-03-23 21:51:21 +01:00
README.md Configuration is partially made. 2021-02-21 11:29:27 +01:00

A C++ Gemini server

Introduction

As I saw other implementations in Rust but no C++ to compete, I felt that I had to do something ;-). It is also a chance for me and a friend ( Brumaire) to practice C++ and to try to get as much performance as possible (my speciality is HPC so… Yeah).

Design

I use PlantUML to do the class diagram for the design. It's a work in progress.

Goal

What we want is a high performance server using asynchrony at first, and then maybe multi-threading to have the maximum possible performance.

Configuration

WIP The configuration of the server is made through a JSON file config.json. The JSON parser is simdjson directly integrated in our source code.

Structure of the file

  • content
    • path : string, folder to the content of your site.
  • cache
    • enable_cache: bool, to enable cache of files or not
    • cache_size : unsigned int, the maximum size in bytes to put in cache
  • ssl
    • pem_path : string
    • cert_path : string

Dependencies

It uses a bundled version of spdlog as a git submodule, but it does not use the fmt lib that is inside spdlog (you can still change it in the CMakeLists).

Documentation

The doc of the code is made with doxygen, the Doxyfile is at the root of the repo.

TODO/features

  • Possibility of an applicative gateway (like CGI for example)
  • Content in RAM cache
  • Asynchronous (boost ASIO deals with it)