├── doc ├── rpclib-cinder │ ├── __init__.py │ ├── img │ │ ├── grid1.png │ │ ├── grid2.png │ │ ├── grid3.png │ │ ├── grid4.png │ │ ├── grid5.png │ │ ├── grid6.png │ │ ├── grid7.png │ │ ├── grid8.png │ │ ├── grid9.png │ │ ├── favicon.ico │ │ ├── grid10.png │ │ ├── grid11.png │ │ ├── grid12.png │ │ ├── grid13.png │ │ ├── grid14.png │ │ ├── grid15.png │ │ ├── grid16.png │ │ ├── grid17.png │ │ ├── grid18.png │ │ ├── grid19.png │ │ └── grid20.png │ ├── css │ │ └── styles │ │ │ ├── pojoaque.jpg │ │ │ ├── brown-papersq.png │ │ │ ├── school-book.png │ │ │ ├── ascetic.css │ │ │ └── mono-blue.css │ ├── fonts │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff │ ├── content.html │ ├── js │ │ └── base.js │ ├── 404.html │ ├── nav-sub.html │ └── toc.html ├── pages │ ├── extra.css │ ├── versions.md │ ├── versions.md.in │ └── glossary.md ├── requirements.txt ├── artwork │ ├── logo.png │ └── favicon.ico ├── Makefile └── mkdocs.yml ├── cmake ├── policies.cmake ├── rpclibConfig.cmake.in ├── check_warning_flag.cmake └── coverage.cmake ├── utils ├── .style.yapf ├── reninclude.py ├── make_pack.py └── make_release_linux.sh ├── installer ├── changelog.txt └── readme.txt ├── conanfile.txt ├── codecov.yml ├── dependencies ├── include │ ├── pimpl_ptr.hh │ └── asio │ │ ├── unyield.hpp │ │ ├── yield.hpp │ │ ├── version.hpp │ │ ├── buffered_stream_fwd.hpp │ │ ├── buffered_read_stream_fwd.hpp │ │ ├── buffered_write_stream_fwd.hpp │ │ ├── impl │ │ └── src.cpp │ │ ├── detail │ │ ├── limits.hpp │ │ ├── date_time_fwd.hpp │ │ ├── regex_fwd.hpp │ │ ├── dependent_type.hpp │ │ ├── win_iocp_thread_info.hpp │ │ ├── reactor.hpp │ │ └── assert.hpp │ │ ├── signal_set.hpp │ │ ├── ssl │ │ ├── impl │ │ │ └── src.hpp │ │ └── detail │ │ │ └── openssl_types.hpp │ │ ├── streambuf.hpp │ │ ├── basic_streambuf_fwd.hpp │ │ └── ssl.hpp └── src │ ├── asio.cpp │ └── asio_ssl.cpp ├── include └── rpc │ ├── msgpack │ ├── version_master.h │ ├── predef │ │ ├── detail │ │ │ ├── os_detected.h │ │ │ ├── comp_detected.h │ │ │ ├── platform_detected.h │ │ │ ├── _exception.h │ │ │ ├── _cassert.h │ │ │ ├── test.h │ │ │ └── endian_compat.h │ │ ├── library │ │ │ ├── c │ │ │ │ └── _prefix.h │ │ │ ├── c.h │ │ │ ├── std │ │ │ │ └── _prefix.h │ │ │ └── std.h │ │ ├── version.h │ │ ├── hardware.h │ │ ├── other.h │ │ ├── library.h │ │ ├── language.h │ │ ├── platform.h │ │ └── hardware │ │ │ └── simd │ │ │ └── arm │ │ │ └── versions.h │ ├── util.h │ ├── adaptor │ │ ├── set.hpp │ │ ├── list.hpp │ │ ├── pair.hpp │ │ ├── deque.hpp │ │ ├── float.hpp │ │ ├── carray.hpp │ │ ├── string.hpp │ │ ├── vector.hpp │ │ ├── char_ptr.hpp │ │ ├── bool.hpp │ │ ├── vector_bool.hpp │ │ ├── vector_char.hpp │ │ ├── boost │ │ │ ├── fusion.hpp │ │ │ ├── optional.hpp │ │ │ ├── string_ref.hpp │ │ │ ├── string_view.hpp │ │ │ ├── msgpack_variant_decl.hpp │ │ │ └── msgpack_variant.hpp │ │ ├── cpp11 │ │ │ ├── array.hpp │ │ │ ├── tuple.hpp │ │ │ ├── array_char.hpp │ │ │ ├── shared_ptr.hpp │ │ │ ├── unique_ptr.hpp │ │ │ ├── forward_list.hpp │ │ │ ├── unordered_map.hpp │ │ │ ├── unordered_set.hpp │ │ │ ├── reference_wrapper.hpp │ │ │ └── array_unsigned_char.hpp │ │ ├── int.hpp │ │ ├── ext.hpp │ │ ├── cpp17 │ │ │ ├── optional.hpp │ │ │ └── string_view.hpp │ │ ├── ext_decl.hpp │ │ ├── int_decl.hpp │ │ ├── nil_decl.hpp │ │ ├── raw_decl.hpp │ │ ├── nil.hpp │ │ ├── raw.hpp │ │ ├── vector_unsigned_char.hpp │ │ ├── define.hpp │ │ ├── map.hpp │ │ ├── v4raw_decl.hpp │ │ ├── v4raw.hpp │ │ ├── fixint.hpp │ │ ├── map_decl.hpp │ │ ├── adaptor_base_decl.hpp │ │ ├── array_ref.hpp │ │ ├── fixint_decl.hpp │ │ ├── msgpack_tuple_decl.hpp │ │ ├── msgpack_tuple.hpp │ │ ├── size_equal_only.hpp │ │ ├── array_ref_decl.hpp │ │ ├── check_container_size.hpp │ │ ├── size_equal_only_decl.hpp │ │ ├── adaptor_base.hpp │ │ └── check_container_size_decl.hpp │ ├── unpack_exception.hpp │ ├── zone_decl.hpp │ ├── meta.hpp │ ├── fbuffer.hpp │ ├── pack_decl.hpp │ ├── zone.hpp │ ├── pack.hpp │ ├── iterator.hpp │ ├── meta_decl.hpp │ ├── pack_define.h │ ├── unpack_decl.hpp │ ├── cpp_config.hpp │ ├── fbuffer_decl.hpp │ ├── parse_return.hpp │ ├── object_decl.hpp │ ├── zbuffer_decl.hpp │ ├── sbuffer.hpp │ ├── sbuffer_decl.hpp │ ├── zbuffer.hpp │ ├── cpp_config_decl.hpp │ ├── iterator_decl.hpp │ ├── object_fwd_decl.hpp │ ├── vrefbuffer_decl.hpp │ ├── vrefbuffer.hpp │ ├── object.hpp │ ├── preprocessor.hpp │ ├── v1 │ │ ├── preprocessor.hpp │ │ ├── zone.hpp │ │ ├── zone_decl.hpp │ │ ├── adaptor │ │ │ ├── msgpack_tuple.hpp │ │ │ ├── msgpack_tuple_decl.hpp │ │ │ ├── define.hpp │ │ │ ├── define_decl.hpp │ │ │ ├── v4raw_decl.hpp │ │ │ ├── raw_decl.hpp │ │ │ ├── ext_decl.hpp │ │ │ └── map_decl.hpp │ │ ├── fbuffer_decl.hpp │ │ ├── sbuffer_decl.hpp │ │ ├── zbuffer_decl.hpp │ │ ├── parse_return.hpp │ │ └── vrefbuffer_decl.hpp │ ├── object_fwd.hpp │ ├── unpack.hpp │ ├── preprocessor │ │ ├── punctuation │ │ │ ├── comma.hpp │ │ │ └── paren.hpp │ │ ├── facilities │ │ │ ├── empty.hpp │ │ │ ├── identity.hpp │ │ │ └── expand.hpp │ │ ├── detail │ │ │ └── null.hpp │ │ ├── if.hpp │ │ ├── dec.hpp │ │ ├── for.hpp │ │ ├── inc.hpp │ │ ├── max.hpp │ │ ├── min.hpp │ │ ├── slot.hpp │ │ ├── enum.hpp │ │ ├── while.hpp │ │ ├── comma.hpp │ │ ├── empty.hpp │ │ ├── limits.hpp │ │ ├── expand.hpp │ │ ├── expr_if.hpp │ │ ├── iterate.hpp │ │ ├── repeat.hpp │ │ ├── assert_msg.hpp │ │ ├── comma_if.hpp │ │ ├── identity.hpp │ │ ├── repeat_2nd.hpp │ │ ├── repeat_3rd.hpp │ │ ├── enum_params.hpp │ │ ├── enum_shifted.hpp │ │ ├── repeat_from_to.hpp │ │ ├── repeat_from_to_2nd.hpp │ │ ├── repeat_from_to_3rd.hpp │ │ ├── debug.hpp │ │ ├── enum_shifted_params.hpp │ │ ├── seq │ │ │ ├── push_back.hpp │ │ │ └── push_front.hpp │ │ ├── selection.hpp │ │ ├── enum_params_with_defaults.hpp │ │ ├── enum_params_with_a_default.hpp │ │ ├── iteration │ │ │ ├── self.hpp │ │ │ └── detail │ │ │ │ └── self.hpp │ │ ├── comparison.hpp │ │ ├── repetition │ │ │ ├── enum_params_with_defaults.hpp │ │ │ └── enum_params_with_a_default.hpp │ │ ├── iteration.hpp │ │ └── arithmetic.hpp │ ├── gcc_atomic.h │ ├── v2 │ │ ├── zone_decl.hpp │ │ ├── zbuffer_decl.hpp │ │ ├── vrefbuffer_decl.hpp │ │ ├── detail │ │ │ ├── cpp11_zone_decl.hpp │ │ │ └── cpp03_zone_decl.hpp │ │ ├── adaptor │ │ │ ├── msgpack_tuple_decl.hpp │ │ │ ├── raw_decl.hpp │ │ │ ├── map_decl.hpp │ │ │ ├── ext_decl.hpp │ │ │ ├── define_decl.hpp │ │ │ ├── v4raw_decl.hpp │ │ │ ├── array_ref_decl.hpp │ │ │ ├── detail │ │ │ │ ├── cpp03_define_map_decl.hpp │ │ │ │ ├── cpp11_define_map_decl.hpp │ │ │ │ ├── cpp03_define_array_decl.hpp │ │ │ │ └── cpp11_define_array_decl.hpp │ │ │ └── size_equal_only_decl.hpp │ │ ├── iterator_decl.hpp │ │ ├── object.hpp │ │ ├── fbuffer_decl.hpp │ │ └── sbuffer_decl.hpp │ ├── predef.h │ ├── fbuffer.h │ └── gcc_atomic.hpp │ ├── detail │ ├── invoke.h │ ├── not.h │ ├── pimpl.h │ ├── constant.h │ ├── if.h │ ├── bool.h │ ├── dev_utils.h │ ├── any.h │ ├── is_specialization_of.h │ ├── util.h │ ├── func_tools.h │ ├── all.h │ ├── make_unique.h │ └── thread_group.h │ ├── version.h │ ├── version.h.in │ ├── this_handler.inl │ └── compatibility.h ├── run_clang_check.sh ├── .clang-format ├── .gitignore ├── tests └── testmain.cc ├── examples ├── client │ ├── main.cc │ └── CMakeLists.txt ├── echo │ ├── echo_server.cc │ ├── echo_client.cc │ └── CMakeLists.txt ├── mandelbrot │ └── mandelbrot.h ├── server │ └── CMakeLists.txt └── calculator │ └── CMakeLists.txt ├── rpclib.pc.in ├── lib └── rpc │ ├── nonstd │ └── optional.cc │ ├── this_server.cc │ ├── detail │ └── client_error.cc │ ├── this_session.cc │ ├── this_handler.cc │ └── rpc_error.cc ├── .editorconfig ├── appveyor.yml └── .travis.yml /doc/rpclib-cinder/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmake/policies.cmake: -------------------------------------------------------------------------------- 1 | cmake_policy(SET CMP0054 NEW) 2 | 3 | -------------------------------------------------------------------------------- /utils/.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style=pep8 3 | indent_width=2 -------------------------------------------------------------------------------- /doc/pages/extra.css: -------------------------------------------------------------------------------- 1 | .md-typeset code { 2 | word-break: normal; 3 | } -------------------------------------------------------------------------------- /doc/requirements.txt: -------------------------------------------------------------------------------- 1 | lxml>=3.6.4 2 | Mako>=1.0.4 3 | mkdocs 4 | pygments 5 | -------------------------------------------------------------------------------- /installer/changelog.txt: -------------------------------------------------------------------------------- 1 | 1.0.0 2 | This is the first release version of rpc. 3 | -------------------------------------------------------------------------------- /doc/artwork/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/artwork/logo.png -------------------------------------------------------------------------------- /doc/artwork/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/artwork/favicon.ico -------------------------------------------------------------------------------- /conanfile.txt: -------------------------------------------------------------------------------- 1 | [requires] 2 | cmake_installer/1.0@conan/stable 3 | 4 | [generators] 5 | virtualenv 6 | -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid1.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid2.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid3.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid4.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid5.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid6.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid7.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid8.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid9.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/favicon.ico -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid10.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid11.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid12.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid13.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid14.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid15.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid16.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid17.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid18.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid19.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/img/grid20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/img/grid20.png -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- 1 | 2 | ignore: 3 | - "include/rpc/msgpack" 4 | - "dependencies" 5 | 6 | coverage: 7 | precision: 2 8 | -------------------------------------------------------------------------------- /dependencies/include/pimpl_ptr.hh: -------------------------------------------------------------------------------- 1 | #ifndef PIMPL_PTR_HH_ 2 | #define PIMPL_PTR_HH_ 3 | 4 | 5 | #endif /* PIMPL_PTR_HH_ */ 6 | -------------------------------------------------------------------------------- /doc/rpclib-cinder/css/styles/pojoaque.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/css/styles/pojoaque.jpg -------------------------------------------------------------------------------- /doc/rpclib-cinder/css/styles/brown-papersq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/css/styles/brown-papersq.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/css/styles/school-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/css/styles/school-book.png -------------------------------------------------------------------------------- /doc/rpclib-cinder/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /doc/rpclib-cinder/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /doc/rpclib-cinder/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qchateau/rpclib/HEAD/doc/rpclib-cinder/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /include/rpc/msgpack/version_master.h: -------------------------------------------------------------------------------- 1 | #define MSGPACK_VERSION_MAJOR 2 2 | #define MSGPACK_VERSION_MINOR 1 3 | #define MSGPACK_VERSION_REVISION 5 4 | -------------------------------------------------------------------------------- /run_clang_check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | find ./lib -name '*.cc' | xargs clang-check -analyze -p . 3 | find ./tests -name '*.cc' | xargs clang-check -analyze -p . 4 | -------------------------------------------------------------------------------- /.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | IndentWidth: 4 3 | Standard: Cpp11 4 | UseTab: Never 5 | ColumnLimit: 80 6 | AccessModifierOffset: -4 7 | ConstructorInitializerAllOnOneLineOrOnePerLine: true 8 | -------------------------------------------------------------------------------- /installer/readme.txt: -------------------------------------------------------------------------------- 1 | rpc is a msgpack-rpc library for modern C++. The goal of this library is to provide a simple, no-nonsense RPC solution. This installs its headers and binaries to the system. 2 | 3 | 4 | -------------------------------------------------------------------------------- /doc/pages/versions.md: -------------------------------------------------------------------------------- 1 | You are reading the documentation of 2.2.1. 2 | If, for some reason you need the documentation of older versions, you can download them from this page. 3 | 4 | * [1.0.0](/archive/rpclib_docs_1.0.0.zip) 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | build/ 3 | .idea/ 4 | .vscode/ 5 | 6 | doc/site/ 7 | doc/doxygen/ 8 | 9 | *.pyc 10 | compile_commands.json 11 | CMakeLists.txt.user 12 | cppcheck* 13 | report 14 | utils/release 15 | doc/all.xml 16 | reference.md 17 | -------------------------------------------------------------------------------- /doc/rpclib-cinder/content.html: -------------------------------------------------------------------------------- 1 | {% if meta.source %} 2 | 7 | {% endif %} 8 | 9 | {{ content }} 10 | -------------------------------------------------------------------------------- /doc/pages/versions.md.in: -------------------------------------------------------------------------------- 1 | You are reading the documentation of @rpc_VERSION_MAJOR@.@rpc_VERSION_MINOR@.@rpc_VERSION_PATCH@. 2 | If, for some reason you need the documentation of older versions, you can download them from this page. 3 | 4 | * [1.0.0](/archive/rpclib_docs_1.0.0.zip) -------------------------------------------------------------------------------- /tests/testmain.cc: -------------------------------------------------------------------------------- 1 | #include "gtest/gtest.h" 2 | 3 | int main(int argc, char *argv[]) { 4 | testing::FLAGS_gtest_color = "yes"; 5 | testing::FLAGS_gtest_death_test_style = "threadsafe"; 6 | testing::InitGoogleTest(&argc, argv); 7 | return RUN_ALL_TESTS(); 8 | } 9 | -------------------------------------------------------------------------------- /examples/client/main.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "rpc/client.h" 3 | 4 | int main() { 5 | rpc::client client("127.0.0.1", rpc::constants::DEFAULT_PORT); 6 | auto result = client.call("add", 2, 3).as(); 7 | std::cout << "The result is: " << result << std::endl; 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /include/rpc/detail/invoke.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef INVOKE_H_0CWMPLUE 4 | #define INVOKE_H_0CWMPLUE 5 | 6 | namespace rpc { 7 | namespace detail { 8 | 9 | template 10 | using invoke = typename T::type; 11 | 12 | }} 13 | 14 | 15 | #endif /* end of include guard: INVOKE_H_0CWMPLUE */ 16 | -------------------------------------------------------------------------------- /rpclib.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: rpclib 7 | Description: rpclib is a msgpack-rpc library written using modern C++ 8 | Version: @rpclib_version@ 9 | Libs: -L${libdir} -l@OUTPUT_LIBRARY_NAME@ 10 | Cflags: -I${includedir} @rpclib_cflags@ -------------------------------------------------------------------------------- /include/rpc/detail/not.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef NOT_H_0MEGQWII 4 | #define NOT_H_0MEGQWII 5 | 6 | #include "rpc/detail/bool.h" 7 | 8 | namespace rpc { 9 | namespace detail { 10 | 11 | template 12 | using not_ = bool_; 13 | 14 | } 15 | } 16 | 17 | #endif /* end of include guard: NOT_H_0MEGQWII */ 18 | -------------------------------------------------------------------------------- /lib/rpc/nonstd/optional.cc: -------------------------------------------------------------------------------- 1 | #include "rpc/nonstd/optional.hpp" 2 | 3 | // This is no-op; the reason it exists is to avoid 4 | // the weak vtables problem. For more info, see 5 | // https://stackoverflow.com/a/23749273/140367 6 | const char* nonstd::bad_optional_access::what() const noexcept { 7 | return std::logic_error::what(); 8 | } 9 | -------------------------------------------------------------------------------- /include/rpc/detail/pimpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef PIMPL_H_TV7E3C9K 4 | #define PIMPL_H_TV7E3C9K 5 | 6 | //! \brief Declares a pimpl pointer. 7 | #define RPCLIB_DECLARE_PIMPL() \ 8 | struct impl; std::unique_ptr pimpl; 9 | 10 | #endif /* end of include guard: PIMPL_H_TV7E3C9K */ 11 | -------------------------------------------------------------------------------- /cmake/rpclibConfig.cmake.in: -------------------------------------------------------------------------------- 1 | # Example usage: 2 | # find_package(rpclib REQUIRED) 3 | # add_executable(foo main.cpp) 4 | # target_link_libraries(foo rpclib::rpc) 5 | 6 | @PACKAGE_INIT@ 7 | 8 | set(RPCLIB_VERSION @RPCLIB_VERSION_MAJOR@.@RPCLIB_VERSION_MINOR@.@RPCLIB_VERSION_PATCH@) 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/rpclibTargets.cmake") 11 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/detail/os_detected.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Rene Rivera 2013 3 | Distributed under the Boost Software License, Version 1.0. 4 | (See accompanying file LICENSE_1_0.txt or copy at 5 | http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #ifndef MSGPACK_PREDEF_DETAIL_OS_DETECTED 9 | #define MSGPACK_PREDEF_DETAIL_OS_DETECTED 1 10 | #endif 11 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/detail/comp_detected.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Rene Rivera 2014 3 | Distributed under the Boost Software License, Version 1.0. 4 | (See accompanying file LICENSE_1_0.txt or copy at 5 | http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #ifndef MSGPACK_PREDEF_DETAIL_COMP_DETECTED 9 | #define MSGPACK_PREDEF_DETAIL_COMP_DETECTED 1 10 | #endif 11 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: http://EditorConfig.org 2 | root = true 3 | 4 | [*] 5 | end_of_line = lf 6 | insert_final_newline = true 7 | charset = utf-8 8 | 9 | # Matches multiple files with brace expansion notation 10 | # Set default charset 11 | [*.{cc,cpp,h,hpp,hh}] 12 | indent_style = space 13 | indent_size = 4 14 | trim_trailing_whitespace = true 15 | -------------------------------------------------------------------------------- /cmake/check_warning_flag.cmake: -------------------------------------------------------------------------------- 1 | include(CheckCXXSourceCompiles) 2 | 3 | function(check_warning_flag FLAG VAR) 4 | set(SRC "int main() {}") 5 | set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS}) 6 | set(CMAKE_REQUIRED_FLAGS "-Werror -Wno-${FLAG}") 7 | check_cxx_source_compiles(${SRC} ${VAR}) 8 | set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS}) 9 | endfunction() -------------------------------------------------------------------------------- /dependencies/src/asio.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // asio.cpp 3 | // ~~~~~~~~ 4 | // 5 | // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) 6 | // 7 | // Distributed under the Boost Software License, Version 1.0. (See accompanying 8 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #include "asio/impl/src.hpp" 12 | -------------------------------------------------------------------------------- /examples/echo/echo_server.cc: -------------------------------------------------------------------------------- 1 | #include "rpc/server.h" 2 | #include 3 | 4 | int main() { 5 | rpc::server srv(rpc::constants::DEFAULT_PORT); 6 | std::cout << "registered on port " << srv.port() << std::endl; 7 | 8 | srv.bind("echo", [](std::string const& s) { 9 | return s; 10 | }); 11 | 12 | srv.run(); 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/detail/platform_detected.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Rene Rivera 2014 3 | Distributed under the Boost Software License, Version 1.0. 4 | (See accompanying file LICENSE_1_0.txt or copy at 5 | http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #ifndef MSGPACK_PREDEF_DETAIL_PLAT_DETECTED 9 | #define MSGPACK_PREDEF_DETAIL_PLAT_DETECTED 1 10 | #endif 11 | -------------------------------------------------------------------------------- /include/rpc/detail/constant.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef CONSTANT_H_5CXUYJEW 4 | #define CONSTANT_H_5CXUYJEW 5 | 6 | #include 7 | 8 | namespace rpc { 9 | namespace detail { 10 | 11 | template 12 | struct constant : std::integral_constant {}; 13 | 14 | } 15 | } 16 | 17 | #endif /* end of include guard: CONSTANT_H_5CXUYJEW */ 18 | -------------------------------------------------------------------------------- /include/rpc/detail/if.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef IF_H_1OW9DR7G 4 | #define IF_H_1OW9DR7G 5 | 6 | #include "rpc/detail/invoke.h" 7 | 8 | namespace rpc { 9 | namespace detail { 10 | 11 | template 12 | using if_ = invoke>; 13 | } 14 | } 15 | 16 | #endif /* end of include guard: IF_H_1OW9DR7G */ 17 | -------------------------------------------------------------------------------- /include/rpc/version.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef VERSION_H_IN_LZK5UJ7E 4 | #define VERSION_H_IN_LZK5UJ7E 5 | 6 | namespace rpc { 7 | 8 | static constexpr unsigned VERSION_MAJOR = 2; 9 | static constexpr unsigned VERSION_MINOR = 2; 10 | static constexpr unsigned VERSION_PATCH = 1; 11 | 12 | } /* rpc */ 13 | 14 | #endif /* end of include guard: VERSION_H_IN_LZK5UJ7E */ 15 | -------------------------------------------------------------------------------- /lib/rpc/this_server.cc: -------------------------------------------------------------------------------- 1 | #include "rpc/this_server.h" 2 | 3 | namespace rpc 4 | { 5 | 6 | this_server_t &this_server() { 7 | static thread_local this_server_t instance; 8 | return instance; 9 | } 10 | 11 | void this_server_t::stop() { 12 | stopping_ = true; 13 | } 14 | 15 | void this_server_t::cancel_stop() { 16 | stopping_ = false; 17 | } 18 | 19 | } /* rpc */ 20 | -------------------------------------------------------------------------------- /dependencies/src/asio_ssl.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // clmdep_asio_ssl.cpp 3 | // ~~~~~~~~~~~~ 4 | // 5 | // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) 6 | // 7 | // Distributed under the Boost Software License, Version 1.0. (See accompanying 8 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #include "asio/ssl/impl/src.hpp" 12 | -------------------------------------------------------------------------------- /examples/mandelbrot/mandelbrot.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef MANDELBROT_H_I0UEF3KR 4 | #define MANDELBROT_H_I0UEF3KR 5 | 6 | #include "rpc/msgpack.hpp" 7 | #include 8 | 9 | struct pixel { 10 | unsigned char r, g, b; 11 | MSGPACK_DEFINE_ARRAY(r, g, b) 12 | }; 13 | 14 | using pixel_data = std::vector; 15 | 16 | #endif /* end of include guard: MANDELBROT_H_I0UEF3KR */ 17 | 18 | -------------------------------------------------------------------------------- /include/rpc/detail/bool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef BOOL_H_QLG6S5XZ 4 | #define BOOL_H_QLG6S5XZ 5 | 6 | #include "rpc/detail/constant.h" 7 | 8 | namespace rpc { 9 | namespace detail { 10 | 11 | template 12 | using bool_ = constant; 13 | 14 | using true_ = bool_; 15 | 16 | using false_ = bool_; 17 | 18 | } 19 | } 20 | 21 | #endif /* end of include guard: BOOL_H_QLG6S5XZ */ 22 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/library/c/_prefix.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Rene Rivera 2008-2013 3 | Distributed under the Boost Software License, Version 1.0. 4 | (See accompanying file LICENSE_1_0.txt or copy at 5 | http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #ifndef MSGPACK_PREDEF_LIBRARY_C__PREFIX_H 9 | #define MSGPACK_PREDEF_LIBRARY_C__PREFIX_H 10 | 11 | #include 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /include/rpc/version.h.in: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef VERSION_H_IN_LZK5UJ7E 4 | #define VERSION_H_IN_LZK5UJ7E 5 | 6 | namespace rpc { 7 | 8 | static constexpr unsigned VERSION_MAJOR = @rpc_VERSION_MAJOR@; 9 | static constexpr unsigned VERSION_MINOR = @rpc_VERSION_MINOR@; 10 | static constexpr unsigned VERSION_PATCH = @rpc_VERSION_PATCH@; 11 | 12 | } /* rpc */ 13 | 14 | #endif /* end of include guard: VERSION_H_IN_LZK5UJ7E */ 15 | -------------------------------------------------------------------------------- /cmake/coverage.cmake: -------------------------------------------------------------------------------- 1 | function(enable_coverage TARGET) 2 | if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") 3 | 4 | if(APPLE) 5 | set(COVERAGE_LIB "") 6 | else() 7 | set(COVERAGE_LIB -lgcov) 8 | endif() 9 | 10 | set_target_properties(${TARGET} 11 | PROPERTIES 12 | COMPILE_FLAGS --coverage 13 | LINK_FLAGS "${COVERAGE_LIB} --coverage" 14 | ) 15 | endif() 16 | endfunction() 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/detail/_exception.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Rene Rivera 2011-2012 3 | Distributed under the Boost Software License, Version 1.0. 4 | (See accompanying file LICENSE_1_0.txt or copy at 5 | http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #ifndef MSGPACK_PREDEF_DETAIL__EXCEPTION_H 9 | #define MSGPACK_PREDEF_DETAIL__EXCEPTION_H 10 | 11 | #if defined(__cplusplus) 12 | #include 13 | #endif 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /include/rpc/this_handler.inl: -------------------------------------------------------------------------------- 1 | 2 | namespace rpc { 3 | 4 | template void this_handler_t::respond_error(T &&err_obj) { 5 | error_ = detail::pack(std::forward(err_obj)); 6 | throw detail::handler_error(); 7 | } 8 | 9 | template void this_handler_t::respond(T &&resp_obj) { 10 | resp_ = detail::pack(std::forward(resp_obj)); 11 | //throw detail::handler_spec_response(); 12 | } 13 | 14 | } /* rpc */ 15 | -------------------------------------------------------------------------------- /doc/rpclib-cinder/js/base.js: -------------------------------------------------------------------------------- 1 | 2 | /* Highlight */ 3 | $( document ).ready(function() { 4 | hljs.initHighlightingOnLoad(); 5 | $('table').addClass('table table-striped table-hover'); 6 | }); 7 | 8 | 9 | $('body').scrollspy({ 10 | target: '.bs-sidebar', 11 | }); 12 | 13 | 14 | /* Prevent disabled links from causing a page reload */ 15 | $("li.disabled a").click(function() { 16 | event.preventDefault(); 17 | }); 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /examples/echo/echo_client.cc: -------------------------------------------------------------------------------- 1 | #include "rpc/client.h" 2 | 3 | #include 4 | 5 | int main() { 6 | rpc::client c("localhost", rpc::constants::DEFAULT_PORT); 7 | 8 | std::string text; 9 | while (std::getline(std::cin, text)) { 10 | if (!text.empty()) { 11 | std::string result(c.call("echo", text).as()); 12 | std::cout << "> " << result << std::endl; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/util.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MessagePack for C utilities 3 | * 4 | * Copyright (C) 2014 FURUHASHI Sadayuki 5 | * 6 | * Distributed under the Boost Software License, Version 1.0. 7 | * (See accompanying file LICENSE_1_0.txt or copy at 8 | * http://www.boost.org/LICENSE_1_0.txt) 9 | */ 10 | #ifndef MSGPACK_UTIL_H 11 | #define MSGPACK_UTIL_H 12 | 13 | #define MSGPACK_UNUSED(a) (void)(a) 14 | 15 | #endif /* MSGPACK_UTIL_H */ 16 | -------------------------------------------------------------------------------- /lib/rpc/detail/client_error.cc: -------------------------------------------------------------------------------- 1 | #include "format.h" 2 | 3 | #include "rpc/detail/client_error.h" 4 | 5 | namespace rpc { 6 | namespace detail { 7 | 8 | client_error::client_error(code c, const std::string &msg) 9 | : what_(RPCLIB_FMT::format("client error C{0:04x}: {1}", 10 | static_cast(c), msg)) {} 11 | 12 | const char *client_error::what() const noexcept { return what_.c_str(); } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /doc/rpclib-cinder/404.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block content %} 4 | 5 |
6 |
7 |

404

8 |

Page not found

9 |

Home

10 |
11 |
12 | 13 | {% endblock %} 14 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Rene Rivera 2015-2016 3 | Distributed under the Boost Software License, Version 1.0. 4 | (See accompanying file LICENSE_1_0.txt or copy at 5 | http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #ifndef MSGPACK_PREDEF_VERSION_H 9 | #define MSGPACK_PREDEF_VERSION_H 10 | 11 | #include 12 | 13 | #define MSGPACK_PREDEF_VERSION MSGPACK_VERSION_NUMBER(1,4,1) 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/detail/_cassert.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Rene Rivera 2011-2012 3 | Distributed under the Boost Software License, Version 1.0. 4 | (See accompanying file LICENSE_1_0.txt or copy at 5 | http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #ifndef MSGPACK_PREDEF_DETAIL__CASSERT_H 9 | #define MSGPACK_PREDEF_DETAIL__CASSERT_H 10 | 11 | #if defined(__cplusplus) 12 | #include 13 | #else 14 | #include 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/detail/test.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Rene Rivera 2011-2012 3 | Distributed under the Boost Software License, Version 1.0. 4 | (See accompanying file LICENSE_1_0.txt or copy at 5 | http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #ifndef MSGPACK_PREDEF_DETAIL_TEST_H 9 | #define MSGPACK_PREDEF_DETAIL_TEST_H 10 | 11 | #if !defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) 12 | 13 | #define MSGPACK_PREDEF_DECLARE_TEST(x,s) 14 | 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /doc/Makefile: -------------------------------------------------------------------------------- 1 | UTILS=../utils 2 | DDIR=doxygen/xml 3 | 4 | all: mkdocs 5 | 6 | mkdocs: reference.md 7 | docker run --rm -it -v `pwd`:/docs squidfunk/mkdocs-material build 8 | 9 | $(DDIR)/index.xml: Doxyfile $(wildcard ../include/rpc/*.h) 10 | doxygen Doxyfile 11 | 12 | all.xml: $(DDIR)/index.xml 13 | xsltproc $(DDIR)/combine.xslt $(DDIR)/index.xml >all.xml 14 | 15 | reference.md: all.xml reference.md.mako 16 | python3 $(UTILS)/markygen.py all.xml reference.md.mako pages/reference.md 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/set.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_SET_HPP 11 | #define MSGPACK_TYPE_SET_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/set.hpp" 14 | 15 | #endif // MSGPACK_TYPE_SET_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/list.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_LIST_HPP 11 | #define MSGPACK_TYPE_LIST_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/list.hpp" 14 | 15 | #endif // MSGPACK_TYPE_LIST_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/pair.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_PAIR_HPP 11 | #define MSGPACK_TYPE_PAIR_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/pair.hpp" 14 | 15 | #endif // MSGPACK_TYPE_PAIR_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/deque.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_DEQUE_HPP 11 | #define MSGPACK_TYPE_DEQUE_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/deque.hpp" 14 | 15 | #endif // MSGPACK_TYPE_DEQUE_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/float.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_FLOAT_HPP 11 | #define MSGPACK_TYPE_FLOAT_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/float.hpp" 14 | 15 | #endif // MSGPACK_TYPE_FLOAT_HPP 16 | -------------------------------------------------------------------------------- /doc/rpclib-cinder/nav-sub.html: -------------------------------------------------------------------------------- 1 | {% if not nav_item.children %} 2 |
  • 3 | {{ nav_item.title }} 4 |
  • 5 | {% else %} 6 | 14 | {% endif %} 15 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/carray.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_CARRAY_HPP 11 | #define MSGPACK_TYPE_CARRAY_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/carray.hpp" 14 | 15 | #endif // MSGPACK_TYPE_CARRAY_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/string.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_STRING_HPP 11 | #define MSGPACK_TYPE_STRING_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/string.hpp" 14 | 15 | #endif // MSGPACK_TYPE_STRING_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/vector.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_VECTOR_HPP 11 | #define MSGPACK_TYPE_VECTOR_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/vector.hpp" 14 | 15 | #endif // MSGPACK_TYPE_VECTOR_HPP 16 | -------------------------------------------------------------------------------- /dependencies/include/asio/unyield.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // unyield.hpp 3 | // ~~~~~~~~~~~ 4 | // 5 | // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) 6 | // 7 | // Distributed under the Boost Software License, Version 1.0. (See accompanying 8 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifdef reenter 12 | # undef reenter 13 | #endif 14 | 15 | #ifdef yield 16 | # undef yield 17 | #endif 18 | 19 | #ifdef fork 20 | # undef fork 21 | #endif 22 | -------------------------------------------------------------------------------- /include/rpc/compatibility.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef COMPATIBILITY_H_PODKJ3 4 | #define COMPATIBILITY_H_PODKJ3 5 | 6 | #ifndef _MSC_VER 7 | 8 | #define RPCLIB_NORETURN [[noreturn]] 9 | #define RPCLIB_CONSTEXPR constexpr 10 | #define RPCLIB_FINAL final 11 | 12 | #else 13 | 14 | #define RPCLIB_NORETURN __declspec(noreturn) 15 | #define RPCLIB_CONSTEXPR const // bad replacement, but gets the job done 16 | #define RPCLIB_FINAL 17 | 18 | #endif // !_MSC_VER 19 | 20 | #endif // COMPATIBILITY_H_PODKJ3 21 | -------------------------------------------------------------------------------- /include/rpc/detail/dev_utils.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef DEV_UTILS_H_JQSWE2OS 4 | #define DEV_UTILS_H_JQSWE2OS 5 | 6 | #ifdef RPCLIB_LINUX 7 | #include "pthread.h" 8 | #endif 9 | 10 | namespace rpc { 11 | namespace detail { 12 | inline void name_thread(std::string const &name) { 13 | (void)name; 14 | #ifdef RPCLIB_LINUX 15 | pthread_setname_np(pthread_self(), name.c_str()); 16 | #endif 17 | } 18 | } /* detail */ 19 | } /* rpc */ 20 | 21 | #endif /* end of include guard: DEV_UTILS_H_JQSWE2OS */ 22 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/char_ptr.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_CHAR_PTR_HPP 11 | #define MSGPACK_TYPE_CHAR_PTR_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/char_ptr.hpp" 14 | 15 | #endif // MSGPACK_TYPE_CHAR_PTR_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/unpack_exception.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ deserializing routine 3 | // 4 | // Copyright (C) 2017 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_UNPACK_EXCEPTION_HPP 11 | #define MSGPACK_UNPACK_EXCEPTION_HPP 12 | 13 | #include "rpc/msgpack/v1/unpack_exception.hpp" 14 | 15 | #endif // MSGPACK_UNPACK_EXCEPTION_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/zone_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ memory pool 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_ZONE_DECL_HPP 11 | #define MSGPACK_ZONE_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/zone_decl.hpp" 14 | #include "rpc/msgpack/v2/zone_decl.hpp" 15 | 16 | #endif // MSGPACK_ZONE_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/bool.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_BOOL_HPP 11 | #define MSGPACK_TYPE_BOOL_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/bool.hpp" 14 | 15 | #endif // MSGPACK_TYPE_BOOL_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/meta.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2015-2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_META_HPP 12 | #define MSGPACK_META_HPP 13 | 14 | #include "rpc/msgpack/meta_decl.hpp" 15 | 16 | #include "rpc/msgpack/v1/meta.hpp" 17 | 18 | #endif // MSGPACK_META_HPP 19 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/vector_bool.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_VECTOR_BOOL_HPP 11 | #define MSGPACK_TYPE_VECTOR_BOOL_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/vector_bool.hpp" 14 | 15 | #endif // MSGPACK_TYPE_VECTOR_BOOL_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/vector_char.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_VECTOR_CHAR_HPP 11 | #define MSGPACK_TYPE_VECTOR_CHAR_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/vector_char.hpp" 14 | 15 | #endif // MSGPACK_TYPE_VECTOR_CHAR_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/fbuffer.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ FILE* buffer adaptor 3 | // 4 | // Copyright (C) 2013 Vladimir Volodko 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_FBUFFER_HPP 11 | #define MSGPACK_FBUFFER_HPP 12 | 13 | #include "rpc/msgpack/fbuffer_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/fbuffer.hpp" 16 | 17 | #endif // MSGPACK_FBUFFER_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/pack_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ serializing routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_PACK_DECL_HPP 11 | #define MSGPACK_PACK_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/pack_decl.hpp" 14 | #include "rpc/msgpack/v2/pack_decl.hpp" 15 | 16 | #endif // MSGPACK_PACK_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/zone.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ memory pool 3 | // 4 | // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_ZONE_HPP 11 | #define MSGPACK_ZONE_HPP 12 | 13 | #include "rpc/msgpack/zone_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/zone.hpp" 16 | 17 | #endif // MSGPACK_ZONE_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/boost/fusion.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2015 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_BOOST_FUSION_HPP 11 | #define MSGPACK_TYPE_BOOST_FUSION_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/boost/fusion.hpp" 14 | 15 | #endif // MSGPACK_TYPE_BOOST_FUSION_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/pack.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ serializing routine 3 | // 4 | // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_PACK_HPP 11 | #define MSGPACK_PACK_HPP 12 | 13 | #include "rpc/msgpack/pack_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/pack.hpp" 16 | 17 | #endif // MSGPACK_PACK_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/hardware.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Charly Chevalier 2015 3 | Copyright Joel Falcou 2015 4 | Distributed under the Boost Software License, Version 1.0. 5 | (See accompanying file LICENSE_1_0.txt or copy at 6 | http://www.boost.org/LICENSE_1_0.txt) 7 | */ 8 | 9 | #if !defined(MSGPACK_PREDEF_HARDWARE_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) 10 | #ifndef MSGPACK_PREDEF_HARDWARE_H 11 | #define MSGPACK_PREDEF_HARDWARE_H 12 | #endif 13 | 14 | #include 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/cpp11/array.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_TYPE_CPP11_ARRAY_HPP 12 | #define MSGPACK_TYPE_CPP11_ARRAY_HPP 13 | 14 | #include "rpc/msgpack/v1/adaptor/cpp11/array.hpp" 15 | 16 | #endif // MSGPACK_TYPE_CPP11_ARRAY_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/cpp11/tuple.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_TYPE_CPP11_TUPLE_HPP 12 | #define MSGPACK_TYPE_CPP11_TUPLE_HPP 13 | 14 | #include "rpc/msgpack/v1/adaptor/cpp11/tuple.hpp" 15 | 16 | #endif // MSGPACK_TYPE_CPP11_TUPLE_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/other.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Rene Rivera 2013-2015 3 | Distributed under the Boost Software License, Version 1.0. 4 | (See accompanying file LICENSE_1_0.txt or copy at 5 | http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #if !defined(MSGPACK_PREDEF_OTHER_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) 9 | #ifndef MSGPACK_PREDEF_OTHER_H 10 | #define MSGPACK_PREDEF_OTHER_H 11 | #endif 12 | 13 | #include 14 | /*#include */ 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/boost/optional.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_BOOST_OPTIONAL_HPP 11 | #define MSGPACK_TYPE_BOOST_OPTIONAL_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/boost/optional.hpp" 14 | 15 | #endif // MSGPACK_TYPE_BOOST_OPTIONAL_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/int.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_INT_HPP 11 | #define MSGPACK_TYPE_INT_HPP 12 | 13 | #include "rpc/msgpack/adaptor/int_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/adaptor/int.hpp" 16 | 17 | #endif // MSGPACK_TYPE_INT_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/iterator.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2015-2016 MIZUKI Hirata 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_ITERATOR_HPP 12 | #define MSGPACK_ITERATOR_HPP 13 | 14 | #include 15 | 16 | #include 17 | 18 | #endif // MSGPACK_ITERATOR_HPP 19 | -------------------------------------------------------------------------------- /include/rpc/msgpack/meta_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2015-2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_META_DECL_HPP 12 | #define MSGPACK_META_DECL_HPP 13 | 14 | #include "rpc/msgpack/v1/meta_decl.hpp" 15 | #include "rpc/msgpack/v2/meta_decl.hpp" 16 | 17 | #endif // MSGPACK_META_DECL_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/pack_define.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MessagePack unpacking routine template 3 | * 4 | * Copyright (C) 2008-2010 FURUHASHI Sadayuki 5 | * 6 | * Distributed under the Boost Software License, Version 1.0. 7 | * (See accompanying file LICENSE_1_0.txt or copy at 8 | * http://www.boost.org/LICENSE_1_0.txt) 9 | */ 10 | #ifndef MSGPACK_PACK_DEFINE_H 11 | #define MSGPACK_PACK_DEFINE_H 12 | 13 | #include "rpc/msgpack/sysdep.h" 14 | #include 15 | #include 16 | 17 | #endif /* msgpack/pack_define.h */ 18 | 19 | -------------------------------------------------------------------------------- /include/rpc/msgpack/predef/library.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright Rene Rivera 2008-2015 3 | Distributed under the Boost Software License, Version 1.0. 4 | (See accompanying file LICENSE_1_0.txt or copy at 5 | http://www.boost.org/LICENSE_1_0.txt) 6 | */ 7 | 8 | #if !defined(MSGPACK_PREDEF_LIBRARY_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) 9 | #ifndef MSGPACK_PREDEF_LIBRARY_H 10 | #define MSGPACK_PREDEF_LIBRARY_H 11 | #endif 12 | 13 | #include 14 | #include 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/unpack_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ deserializing routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_UNPACK_DECL_HPP 11 | #define MSGPACK_UNPACK_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/unpack_decl.hpp" 14 | #include "rpc/msgpack/v2/unpack_decl.hpp" 15 | 16 | #endif // MSGPACK_UNPACK_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/ext.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2015 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_EXT_HPP 11 | #define MSGPACK_TYPE_EXT_HPP 12 | 13 | #include "rpc/msgpack/adaptor/ext_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/adaptor/ext.hpp" 16 | 17 | #endif // MSGPACK_TYPE_EXT_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/cpp_config.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ C++03/C++11 Adaptation 3 | // 4 | // Copyright (C) 2013-2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_CPP_CONFIG_HPP 11 | #define MSGPACK_CPP_CONFIG_HPP 12 | 13 | #include "rpc/msgpack/cpp_config_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/cpp_config.hpp" 16 | 17 | #endif // MSGPACK_CPP_CONFIG_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/fbuffer_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ FILE* buffer adaptor 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_FBUFFER_DECL_HPP 11 | #define MSGPACK_FBUFFER_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/fbuffer_decl.hpp" 14 | #include "rpc/msgpack/v2/fbuffer_decl.hpp" 15 | 16 | #endif // MSGPACK_FBUFFER_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/parse_return.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ deserializing routine 3 | // 4 | // Copyright (C) 2017 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_PARSE_RETURN_HPP 11 | #define MSGPACK_PARSE_RETURN_HPP 12 | 13 | #include "rpc/msgpack/v1/parse_return.hpp" 14 | #include "rpc/msgpack/v2/parse_return.hpp" 15 | 16 | #endif // MSGPACK_PARSE_RETURN_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/boost/string_ref.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_BOOST_STRING_REF_HPP 11 | #define MSGPACK_TYPE_BOOST_STRING_REF_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/boost/string_ref.hpp" 14 | 15 | #endif // MSGPACK_TYPE_BOOST_STRING_REF_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/cpp17/optional.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2017 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_TYPE_CPP17_OPTIONAL_HPP 12 | #define MSGPACK_TYPE_CPP17_OPTIONAL_HPP 13 | 14 | #include "rpc/msgpack/v1/adaptor/cpp17/optional.hpp" 15 | 16 | #endif // MSGPACK_TYPE_CPP17_OPTIONAL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/object_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_OBJECT_DECL_HPP 12 | #define MSGPACK_OBJECT_DECL_HPP 13 | 14 | #include "rpc/msgpack/v1/object_decl.hpp" 15 | #include "rpc/msgpack/v2/object_decl.hpp" 16 | 17 | #endif // MSGPACK_OBJECT_DECL_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/boost/string_view.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2017 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_BOOST_STRING_VIEW_HPP 11 | #define MSGPACK_TYPE_BOOST_STRING_VIEW_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/boost/string_view.hpp" 14 | 15 | #endif // MSGPACK_TYPE_BOOST_STRING_VIEW_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/zbuffer_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ deflate buffer implementation 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_ZBUFFER_DECL_HPP 11 | #define MSGPACK_ZBUFFER_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/zbuffer_decl.hpp" 14 | #include "rpc/msgpack/v2/zbuffer_decl.hpp" 15 | 16 | #endif // MSGPACK_ZBUFFER_DECL_HPP 17 | -------------------------------------------------------------------------------- /lib/rpc/this_session.cc: -------------------------------------------------------------------------------- 1 | #include "rpc/this_session.h" 2 | 3 | namespace rpc 4 | { 5 | 6 | this_session_t &this_session() { 7 | static thread_local this_session_t instance; 8 | return instance; 9 | } 10 | 11 | void this_session_t::post_exit() { 12 | exit_ = true; 13 | } 14 | 15 | void this_session_t::clear() { 16 | exit_ = false; 17 | } 18 | 19 | session_id_t this_session_t::id() const { 20 | return id_; 21 | } 22 | 23 | void this_session_t::set_id(session_id_t value) { 24 | id_ = value; 25 | } 26 | 27 | 28 | } /* rpc */ 29 | -------------------------------------------------------------------------------- /include/rpc/detail/any.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef ANY_H_4G3QUOAN 4 | #define ANY_H_4G3QUOAN 5 | 6 | #include "rpc/detail/invoke.h" 7 | #include "rpc/detail/if.h" 8 | #include "rpc/detail/bool.h" 9 | 10 | namespace rpc { 11 | namespace detail { 12 | 13 | //! \brief Evaluates to true_type if any of its arguments is true_type. 14 | template struct any : false_ {}; 15 | 16 | template 17 | struct any : if_> {}; 18 | } 19 | } 20 | 21 | #endif /* end of include guard: ANY_H_4G3QUOAN */ 22 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/cpp11/array_char.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_TYPE_CPP11_ARRAY_CHAR_HPP 12 | #define MSGPACK_TYPE_CPP11_ARRAY_CHAR_HPP 13 | 14 | #include "rpc/msgpack/v1/adaptor/cpp11/array_char.hpp" 15 | 16 | #endif // MSGPACK_TYPE_CPP11_ARRAY_CHAR_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/cpp11/shared_ptr.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_TYPE_CPP11_SHARED_PTR_HPP 12 | #define MSGPACK_TYPE_CPP11_SHARED_PTR_HPP 13 | 14 | #include "rpc/msgpack/v1/adaptor/cpp11/shared_ptr.hpp" 15 | 16 | #endif // MSGPACK_TYPE_CPP11_SHARED_PTR_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/cpp11/unique_ptr.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_TYPE_CPP11_UNIQUE_PTR_HPP 12 | #define MSGPACK_TYPE_CPP11_UNIQUE_PTR_HPP 13 | 14 | #include "rpc/msgpack/v1/adaptor/cpp11/unique_ptr.hpp" 15 | 16 | #endif // MSGPACK_TYPE_CPP11_UNIQUE_PTR_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/sbuffer.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ simple buffer implementation 3 | // 4 | // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_SBUFFER_HPP 11 | #define MSGPACK_SBUFFER_HPP 12 | 13 | #include "rpc/msgpack/sbuffer_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/sbuffer.hpp" 16 | 17 | #endif // MSGPACK_SBUFFER_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/sbuffer_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ simple buffer implementation 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_SBUFFER_DECL_HPP 11 | #define MSGPACK_SBUFFER_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/sbuffer_decl.hpp" 14 | #include "rpc/msgpack/v2/sbuffer_decl.hpp" 15 | 16 | 17 | #endif // MSGPACK_SBUFFER_DECL_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/zbuffer.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ deflate buffer implementation 3 | // 4 | // Copyright (C) 2010-2013 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_ZBUFFER_HPP 11 | #define MSGPACK_ZBUFFER_HPP 12 | 13 | #include "rpc/msgpack/zbuffer_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/zbuffer.hpp" 16 | 17 | #endif // MSGPACK_ZBUFFER_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/cpp17/string_view.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2017 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_TYPE_CPP17_STRING_VIEW_HPP 12 | #define MSGPACK_TYPE_CPP17_STRING_VIEW_HPP 13 | 14 | #include "rpc/msgpack/v1/adaptor/cpp17/string_view.hpp" 15 | 16 | #endif // MSGPACK_TYPE_CPP17_STRING_VIEW_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/ext_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_EXT_DECL_HPP 11 | #define MSGPACK_TYPE_EXT_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/ext_decl.hpp" 14 | #include "rpc/msgpack/v2/adaptor/ext_decl.hpp" 15 | 16 | #endif // MSGPACK_TYPE_EXT_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/int_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_INT_DECL_HPP 11 | #define MSGPACK_TYPE_INT_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/int_decl.hpp" 14 | #include "rpc/msgpack/v2/adaptor/int_decl.hpp" 15 | 16 | #endif // MSGPACK_TYPE_INT_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/nil_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_NIL_DECL_HPP 11 | #define MSGPACK_TYPE_NIL_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/nil_decl.hpp" 14 | #include "rpc/msgpack/v2/adaptor/nil_decl.hpp" 15 | 16 | #endif // MSGPACK_TYPE_NIL_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/raw_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_RAW_DECL_HPP 11 | #define MSGPACK_TYPE_RAW_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/raw_decl.hpp" 14 | #include "rpc/msgpack/v2/adaptor/raw_decl.hpp" 15 | 16 | #endif // MSGPACK_TYPE_RAW_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/cpp_config_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ C++03/C++11 Adaptation 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_CPP_CONFIG_DECL_HPP 11 | #define MSGPACK_CPP_CONFIG_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/cpp_config_decl.hpp" 14 | #include "rpc/msgpack/v2/cpp_config_decl.hpp" 15 | 16 | #endif // MSGPACK_CPP_CONFIG_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/iterator_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_ITERATOR_DECL_HPP 12 | #define MSGPACK_ITERATOR_DECL_HPP 13 | 14 | #include 15 | #include 16 | 17 | #endif // MSGPACK_V1_ITERATOR_DECL_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/cpp11/forward_list.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_TYPE_CPP11_FORWARD_LIST_HPP 12 | #define MSGPACK_TYPE_CPP11_FORWARD_LIST_HPP 13 | 14 | #include "rpc/msgpack/v1/adaptor/cpp11/forward_list.hpp" 15 | 16 | #endif // MSGPACK_TYPE_CPP11_FORWARD_LIST_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/nil.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_NIL_HPP 11 | #define MSGPACK_TYPE_NIL_HPP 12 | 13 | #include "rpc/msgpack/adaptor/nil_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/adaptor/nil.hpp" 16 | 17 | #endif // MSGPACK_TYPE_NIL_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/raw.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_RAW_HPP 11 | #define MSGPACK_TYPE_RAW_HPP 12 | 13 | #include "rpc/msgpack/adaptor/raw_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/adaptor/raw.hpp" 16 | 17 | #endif // MSGPACK_TYPE_RAW_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/vector_unsigned_char.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_VECTOR_UNSIGNED_CHAR_HPP 11 | #define MSGPACK_TYPE_VECTOR_UNSIGNED_CHAR_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/vector_unsigned_char.hpp" 14 | 15 | #endif // MSGPACK_TYPE_VECTOR_UNSIGNED_CHAR_HPP 16 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/cpp11/unordered_map.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_TYPE_CPP11_UNORDERED_MAP_HPP 12 | #define MSGPACK_TYPE_CPP11_UNORDERED_MAP_HPP 13 | 14 | #include "rpc/msgpack/v1/adaptor/cpp11/unordered_map.hpp" 15 | 16 | #endif // MSGPACK_TYPE_CPP11_UNORDERED_MAP_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/cpp11/unordered_set.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_TYPE_CPP11_UNORDERED_SET_HPP 12 | #define MSGPACK_TYPE_CPP11_UNORDERED_SET_HPP 13 | 14 | #include "rpc/msgpack/v1/adaptor/cpp11/unordered_set.hpp" 15 | 16 | #endif // MSGPACK_TYPE_CPP11_UNORDERED_SET_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/define.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_DEFINE_HPP 11 | #define MSGPACK_DEFINE_HPP 12 | 13 | #include "rpc/msgpack/adaptor/define_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/adaptor/define.hpp" 16 | 17 | #endif // MSGPACK_DEFINE_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/map.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_MAP_HPP 11 | #define MSGPACK_TYPE_MAP_HPP 12 | 13 | #include "rpc/msgpack/adaptor/map_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/adaptor/map.hpp" 16 | 17 | 18 | #endif // MSGPACK_TYPE_MAP_HPP 19 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/v4raw_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_V4RAW_DECL_HPP 11 | #define MSGPACK_TYPE_V4RAW_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/adaptor/v4raw_decl.hpp" 14 | #include "rpc/msgpack/v2/adaptor/v4raw_decl.hpp" 15 | 16 | #endif // MSGPACK_TYPE_V4RAW_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/object_fwd_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | 11 | #ifndef MSGPACK_OBJECT_FWD_DECL_HPP 12 | #define MSGPACK_OBJECT_FWD_DECL_HPP 13 | 14 | #include "rpc/msgpack/v1/object_fwd_decl.hpp" 15 | #include "rpc/msgpack/v2/object_fwd_decl.hpp" 16 | 17 | #endif // MSGPACK_OBJECT_FWD_DECL_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/vrefbuffer_decl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ zero-copy buffer implementation 3 | // 4 | // Copyright (C) 2016 KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_VREFBUFFER_DECL_HPP 11 | #define MSGPACK_VREFBUFFER_DECL_HPP 12 | 13 | #include "rpc/msgpack/v1/vrefbuffer_decl.hpp" 14 | #include "rpc/msgpack/v2/vrefbuffer_decl.hpp" 15 | 16 | #endif // MSGPACK_VREFBUFFER_DECL_HPP 17 | -------------------------------------------------------------------------------- /include/rpc/msgpack/adaptor/v4raw.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ static resolution routine 3 | // 4 | // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_TYPE_V4RAW_HPP 11 | #define MSGPACK_TYPE_V4RAW_HPP 12 | 13 | #include "rpc/msgpack/adaptor/v4raw_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/adaptor/v4raw.hpp" 16 | 17 | #endif // MSGPACK_TYPE_V4RAW_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/msgpack/vrefbuffer.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // MessagePack for C++ zero-copy buffer implementation 3 | // 4 | // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi 5 | // 6 | // Distributed under the Boost Software License, Version 1.0. 7 | // (See accompanying file LICENSE_1_0.txt or copy at 8 | // http://www.boost.org/LICENSE_1_0.txt) 9 | // 10 | #ifndef MSGPACK_VREFBUFFER_HPP 11 | #define MSGPACK_VREFBUFFER_HPP 12 | 13 | #include "rpc/msgpack/vrefbuffer_decl.hpp" 14 | 15 | #include "rpc/msgpack/v1/vrefbuffer.hpp" 16 | 17 | #endif // MSGPACK_VREFBUFFER_HPP 18 | -------------------------------------------------------------------------------- /include/rpc/detail/is_specialization_of.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef IS_SPECIALIZATION_OF_H_OPZTARVG 4 | #define IS_SPECIALIZATION_OF_H_OPZTARVG 5 | 6 | #include "rpc/detail/bool.h" 7 | 8 | namespace rpc { 9 | namespace detail { 10 | 11 | template