1 #include "hmbdc/Copyright.hpp" 3 #include "hmbdc/tips/netmap/SendTransportEngine.hpp" 4 #include "hmbdc/tips/netmap/RecvTransportEngine.hpp" 5 #include "hmbdc/tips/netmap/DefaultUserConfig.hpp" 6 #include "hmbdc/app/Config.hpp" 8 #include "hmbdc/pattern/GuardedSingleton.hpp" 10 namespace hmbdc {
namespace tips {
namespace netmap {
14 static constexpr
char const* name() {
return "netmap"; }
15 static constexpr
auto dftConfig() {
return DefaultUserConfig; }
18 template <
typename Buffer,
typename>
25 auto res= cfg.
getExt<std::string>(
"ifaceAddr") +
'-' + cfg.
getExt<std::string>(
"netmapPort");
26 std::replace(res.begin(), res.end(),
'/',
':');
T getExt(const path_type ¶m, bool throwIfMissing=true) const
get a value from the config
Definition: Config.hpp:238
power a netmap port sending functions
Definition: SendTransportEngine.hpp:46
class to hold an hmbdc configuration
Definition: Config.hpp:45
void setAdditionalFallbackConfig(Config const &c)
set additional defaults
Definition: Config.hpp:154
Definition: RecvTransportEngine.hpp:32
Config & resetSection(char const *section, bool sectionExists=true)
change section name
Definition: Config.hpp:177
base for the Singleton that works with SingletonGuardian
Definition: GuardedSingleton.hpp:53
RAII representing the lifespan of the underlying Singleton which also ganrantees the singularity of u...
Definition: GuardedSingleton.hpp:20
Definition: Protocol.hpp:12