packio
Classes | Typedefs | Functions
packio::nl_json_rpc Namespace Reference

The packio::nl_json_rpc namespace contains the JSON-RPC implementation based on the nlohmann::json library. More...

Classes

class  rpc
 The JSON-RPC protocol implementation. More...
 

Typedefs

using completion_handler = completion_handler< rpc >
 The completion_handler for JSON-RPC.
 
template<template< class... > class Map = default_map, typename Lockable = default_mutex>
using dispatcher = dispatcher< rpc, Map, Lockable >
 The dispatcher for JSON-RPC.
 
template<typename Socket , template< class... > class Map = default_map>
using client = ::packio::client< rpc, Socket, Map >
 The client for JSON-RPC.
 
template<typename Acceptor , typename Dispatcher = dispatcher<>>
using server = ::packio::server< rpc, Acceptor, Dispatcher >
 The server for JSON-RPC.
 

Functions

template<typename Socket , template< class... > class Map = default_map>
auto make_client (Socket &&socket)
 The make_client function for JSON-RPC.
 
template<typename Acceptor , typename Dispatcher = dispatcher<>>
auto make_server (Acceptor &&acceptor)
 The make_server function for JSON-RPC.
 

Detailed Description

The packio::nl_json_rpc namespace contains the JSON-RPC implementation based on the nlohmann::json library.