network_impl.h 505 B

1234567891011121314151617181920
  1. #ifndef DEPTHGUIDE_NETWORK_IMPL_H
  2. #define DEPTHGUIDE_NETWORK_IMPL_H
  3. #include "network/network.h"
  4. #include "multiplexer_impl.h"
  5. struct virtual_channel_manager::impl {
  6. multiplexer_type mux;
  7. };
  8. virtual_channel_manager::virtual_channel_manager(create_config conf)
  9. : pimpl(std::make_unique<impl>()) {
  10. pimpl->mux = std::make_shared<multiplexer>(
  11. multiplexer::create_config{
  12. .low_channel = std::move(conf.low_channel)});
  13. }
  14. #endif //DEPTHGUIDE_NETWORK_IMPL_H