Example of a simple server.
int main() {
"add", [](int x, int y) { return x + y; })
.listen_to("tcp://localhost:7136")
return 0;
}
Class of builders of servers.
ServerBuilder & add_method(std::unique_ptr< methods::IMethod > method)
Add a method.
Server build()
Build a server.
void run_until_signal()
Run processing of this server until SIGINT or SIGTERM is received.
Definition of Server class.
Definition of ServerBuilder class.