packio
Namespaces | Typedefs | Functions
json_rpc.h File Reference

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

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

Go to the source code of this file.

Namespaces

 packio::json_rpc
 The packio::json_rpc namespace contains the JSON-RPC implementation based on the boost::json library.
 
 packio
 The packio namespace.
 

Typedefs

using packio::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::json_rpc::dispatcher = dispatcher< rpc, Map, Lockable >
 The dispatcher for JSON-RPC.
 
template<typename Socket , template< class... > class Map = default_map>
using packio::json_rpc::client = ::packio::client< rpc, Socket, Map >
 The client for JSON-RPC.
 
template<typename Acceptor , typename Dispatcher = dispatcher<>>
using packio::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::json_rpc::make_client (Socket &&socket)
 The make_client function for JSON-RPC.
 
template<typename Acceptor , typename Dispatcher = dispatcher<>>
auto packio::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 boost::json library.