C++ REST server module#

namespace server#

Namespace including the API Eigen Example Server implemented in C++.

class GRPCServer#

Class for deploying the API Eigen Example Server via its serve() method.

Public Functions

GRPCServer()#

Construct a new GRPCServer object.

~GRPCServer()#

Destroy the GRPCServer object.

void serve(const std::string host = std::string{"0.0.0.0"}, const int port = 50000, const bool debug_log = false)#

Method for serving our application.

Parameters:
  • host – the host (DNS/IP) in which we want to server our app. Default: 0.0.0.0.

  • port – the port in which we want to server our app. Default: 50000.

  • debug_log – whether to show the enhanced debugging logs or not.

Private Members

std::unique_ptr<::grpc::Server> _server#

Pointer to the server instance. Required for shutting down when cancelled.