31   UdpClientImpl(std::string_view local_ip_address, std::uint16_t local_port_num) noexcept
 
  112     : udp_client_impl_{std::make_unique<UdpClientImpl>(local_ip_address, local_port_num)} {}
 
  125   udp_client_impl_->SetReadHandler(std::move(read_handler));
 
Class to provide implementation of udp client.
 
~UdpClientImpl() noexcept=default
Destruct an instance of UdpClientImpl.
 
UdpClientImpl & operator=(UdpClientImpl &&other) noexcept=delete
 
UdpClientImpl(const UdpClientImpl &other) noexcept=delete
Deleted copy assignment and copy constructor.
 
void DeInitialize() noexcept
De-initialize the client.
 
void SetReadHandler(HandlerRead read_handler) noexcept
Function to set the read handler that is invoked when message is received.
 
IoContext io_context_
Stores the io context.
 
UdpClientImpl(std::string_view local_ip_address, std::uint16_t local_port_num) noexcept
Constructs an instance of UdpClientImpl.
 
UdpClientImpl(UdpClientImpl &&other) noexcept=delete
Deleted move assignment and move constructor.
 
UdpClientImpl & operator=(const UdpClientImpl &other) noexcept=delete
 
core_type::Result< void > Transmit(MessageConstPtr udp_message)
Function to transmit the provided udp message.
 
void Initialize() noexcept
Initialize the client.
 
UdpConnection udp_connection_
Store the udp connection.
 
Client that manages udp connection.
 
std::unique_ptr< UdpClientImpl > udp_client_impl_
Unique pointer to udp client implementation.
 
core_type::Result< void > Transmit(MessageConstPtr udp_message)
Function to transmit the provided tcp message.
 
void SetReadHandler(HandlerRead read_handler) noexcept
Function to set the read handler that is invoked when message is received.
 
boost_support::message::udp::UdpMessageConstPtr MessageConstPtr
Type alias for Tcp message const pointer.
 
void DeInitialize() noexcept
De-initialize the client.
 
UdpClient(std::string_view local_ip_address, std::uint16_t local_port_num) noexcept
Constructs an instance of UdpClient.
 
void Initialize() noexcept
Initialize the client.
 
std::function< void(MessagePtr)> HandlerRead
Tcp function template used for reception.
 
UdpClient & operator=(const UdpClient &other) noexcept=delete
 
~UdpClient() noexcept
Destruct an instance of UdpClient.
 
core_type::Result< void > Transmit(UdpMessageConstPtr message) noexcept
Function to trigger transmission.
 
void SetReadHandler(HandlerRead read_handler)
Function to set the read handler that is invoked when message is received.
 
void DeInitialize() noexcept
De-initialize the client.
 
void Initialize() noexcept
Initialize the client.
 
Wrapper class to hold boost io context required for io object( sockets)
 
void DeInitialize() noexcept
De-initialize the context.
 
void Initialize() noexcept
Initialize the context.
 
Context & GetContext() noexcept
Function to get the io context reference.
 
Class used to create a udp socket for handling transmission and reception of udp message from driver.
 
Class type to contains a value (of type ValueType), or an error (of type ErrorType)