* Add websocket implementation * Added configuration for build socket-io and rublon connector
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <rublon/init.hpp>
|
|
#include <rublon/json.hpp>
|
|
#include <rublon/pam.hpp>
|
|
#include <rublon/rublon.hpp>
|
|
#include <rublon/utils.hpp>
|
|
|
|
namespace rublon {
|
|
|
|
// template<typename Pam_t>
|
|
// static Configuration readConfig(const Pam_t&pam){
|
|
// auto rublonConfig = ConfigurationFactory{}.systemConfig();
|
|
// if(not rublonConfig.has_value()) {
|
|
// pam.print("\n");
|
|
// pam.print("Rublon configuration does not exists or is invalid");
|
|
// pam.print("\tcheck '%s' for more details\n", details::logPath());
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
template < typename Pam_T, typename CoreHandler_T>
|
|
class RublonBase {
|
|
Pam_T & pam;
|
|
Configuration config;
|
|
|
|
public:
|
|
RublonBase(Pam_T & pam, Configuration config) : pam{pam}, config{config} {}
|
|
|
|
|
|
|
|
// int authenticate() {
|
|
// std::byte sharedMemory[32 * 1024] = {};
|
|
// std::pmr::monotonic_buffer_resource mr{sharedMemory, std::size(sharedMemory)};
|
|
// std::pmr::unsynchronized_pool_resource rublonPoolResource{&mr};
|
|
// std::pmr::set_default_resource(&rublonPoolResource);
|
|
// }
|
|
};
|
|
|
|
} // namespace rublon
|