Skip to content

Alpha 8-1

Pre-release
Pre-release
Compare
Choose a tag to compare
@jharmer95 jharmer95 released this 19 Jul 17:51
4310532

Alpha v8 brings a big change to function dispatching, utilizing a hashmap instead of macro-heavy code. It also changes the namespace from rpc to rpc_hpp for clarity and avoiding conflicts.

  • Function dispatching now uses a dispatch table

    • Functions are now "bound" to the server at runtime via a hashmap
      • Key: function name/alias string
    • Simplifies server setup (and possible performance boost)
    • No more rpc_dispatch_helper.hpp
  • Add support for using string literal arguments

  • Add benchmarks comparing rpc.hpp to other RPC libraries

  • Changed dispatch function signature

    • The dispatch function in the server interface is now sink & return, rather than pass-by-reference.
  • Adapters now use more direct static polymorphism

    • As a result, adapters are nicer to work with and can be more flexible
      • Details for adapters can now be implemented as private members
  • Fix compiler compatibility issues