8 #ifndef DIAG_CLIENT_LIB_LIB_BOOST_SUPPORT_SOCKET_UDP_UDP_MESSAGE_H_ 
    9 #define DIAG_CLIENT_LIB_LIB_BOOST_SUPPORT_SOCKET_UDP_UDP_MESSAGE_H_ 
   14 #include <string_view> 
Immutable class to store received udp message.
 
std::vector< uint8_t > BufferType
Type alias for underlying buffer.
 
std::string_view GetHostIpAddress() const
Get the host ip address.
 
BufferType payload_
The reception buffer.
 
UdpMessage & operator=(const UdpMessage &other)=delete
 
UdpMessage(std::string_view host_ip_address, std::uint16_t host_port_number, BufferType payload)
Constructs an instance of UdpMessage.
 
UdpMessage(const UdpMessage &other)=delete
 
UdpMessage(UdpMessage &&other) noexcept=default
 
std::string host_ip_address_
Store remote ip address.
 
UdpMessage & operator=(UdpMessage &&other) noexcept=default
 
core_type::Span< std::uint8_t const  > GetPayload() const
Get the readable view on received payload.
 
std::uint16_t host_port_number_
Store remote port number.
 
~UdpMessage()=default
Destructs an instance of UdpMessage.
 
std::uint16_t GetHostPortNumber() const
Get the host port number.
 
A view over a contiguous sequence of objects.
 
std::unique_ptr< UdpMessage > UdpMessagePtr
The unique pointer to UdpMessage.
 
constexpr std::uint8_t kMaxUdpResSize
Maximum response size.
 
std::unique_ptr< UdpMessage const  > UdpMessageConstPtr
The unique pointer to const UdpMessage.