packio
Namespaces | Classes | Functions | Variables
packio Namespace Reference

The packio namespace. More...

Namespaces

 extra
 Optional utilities that are not included by default.
 
 json_rpc
 The packio::json_rpc namespace contains the JSON-RPC implementation based on the boost::json library.
 
 msgpack_rpc
 The packio::msgpack_rpc namespace contains the msgpack-RPC implementation.
 
 nl_json_rpc
 The packio::nl_json_rpc namespace contains the JSON-RPC implementation based on the nlohmann::json library.
 

Classes

class  arg
 A named argument. More...
 
class  args_specs
 Procedure arguments specifications. More...
 
class  client
 The client class. More...
 
class  dispatcher
 The dispatcher class, used to store and dispatch procedures. More...
 
class  completion_handler
 The completion_handler class. More...
 
class  server
 The server class. More...
 
class  server_session
 The server_session class, created by the server. More...
 

Functions

template<typename Rpc , typename Socket , template< class... > class Map = default_map>
auto make_client (Socket &&socket)
 Create a client from a socket. More...
 
template<typename Rpc , typename Acceptor , typename Dispatcher = dispatcher<Rpc>>
auto make_server (Acceptor &&acceptor)
 Create a server from an acceptor. More...
 

Variables

constexpr auto allow_extra_arguments = internal::args_specs_options{true}
 Option to allo extra arguments, ignoring them.
 

Detailed Description

The packio namespace.

Function Documentation

◆ make_client()

template<typename Rpc , typename Socket , template< class... > class Map = default_map>
auto packio::make_client ( Socket &&  socket)

Create a client from a socket.

Template Parameters
RpcRPC protocol implementation
SocketSocket type to use for this client
MapContainer used to associate call IDs and handlers

◆ make_server()

template<typename Rpc , typename Acceptor , typename Dispatcher = dispatcher<Rpc>>
auto packio::make_server ( Acceptor &&  acceptor)

Create a server from an acceptor.

Template Parameters
RpcRPC protocol implementation
AcceptorAcceptor type to use for this server
DispatcherDispatcher used to store and dispatch procedures. See dispatcher