packio
Namespaces | Typedefs | Functions
nl_json_rpc.h File Reference

Typedefs and functions to use the JSON-RPC protocol based on the nlohmann::json library. More...

#include "../client.h"
#include "../server.h"
#include "rpc.h"

Go to the source code of this file.

Namespaces

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

Typedefs

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

Functions

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

Detailed Description

Typedefs and functions to use the JSON-RPC protocol based on the nlohmann::json library.