Loading...
Searching...
No Matches
ServeMode.h File Reference
#include "Parameters.h"
#include <cstdint>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  eonc::ServeEndpoint
 Configuration for a single serve endpoint. More...

Namespaces

namespace  eonc
 RAII resource manager for the ARTn C library with global synchronization.

Functions

void eonc::serveMode (const Parameters &params, const std::string &host, uint16_t port)
 Start a single rgpot-compatible Cap'n Proto RPC server.
void eonc::serveMultiple (const std::vector< ServeEndpoint > &endpoints, const Parameters &params)
 Serve multiple potentials concurrently on different ports.
void eonc::serveReplicated (const Parameters &params, const std::string &host, uint16_t base_port, size_t replicas)
 Serve N replicas of the same potential across sequential ports.
void eonc::serveGateway (const Parameters &params, const std::string &host, uint16_t port, size_t pool_size)
 Start a gateway server backed by a pool of potential instances.
void eonc::serveFromConfig (const Parameters &params)
 Start serve mode from config-file parameters.
std::vector< ServeEndpoint > eonc::parseServeSpec (const std::string &spec)
 Parse a serve configuration string into endpoints.