unilink  0.4.3
A simple C++ library for unified async communication
unilink::factory::ChannelFactory Class Reference

#include <channel_factory.hpp>

Public Types

using ChannelOptions = std::variant< config::TcpClientConfig, config::TcpServerConfig, config::SerialConfig, config::UdpConfig >
 

Static Public Member Functions

static std::shared_ptr< interface::Channelcreate (const ChannelOptions &options, std::shared_ptr< boost::asio::io_context > external_ioc=nullptr)
 

Detailed Description

Channel Factory

  • Uses existing Transport classes
  • Maintains backward compatibility

Definition at line 38 of file channel_factory.hpp.

Member Typedef Documentation

◆ ChannelOptions

Member Function Documentation

◆ create()

std::shared_ptr< interface::Channel > unilink::factory::ChannelFactory::create ( const ChannelOptions options,
std::shared_ptr< boost::asio::io_context >  external_ioc = nullptr 
)
static

Definition at line 29 of file channel_factory.cc.


The documentation for this class was generated from the following files: