SOLA
Loading...
Searching...
No Matches
Public Member Functions | List of all members
solanet::Message Class Reference

Public Member Functions

 Message (std::string ip, uint16_t port, std::string message)
 
 Message (const std::string &endpoint, std::string message)
 
bool isEmpty () const
 
std::string getMessage () const
 
std::string getIp () const
 
uint16_t getPort () const
 

Member Function Documentation

◆ getIp()

std::string solanet::Message::getIp ( ) const
inline

Returns IPv4 destination address

Returns
IPv4 destination address

◆ getMessage()

std::string solanet::Message::getMessage ( ) const
inline

Returns message content

Returns
message content

◆ getPort()

uint16_t solanet::Message::getPort ( ) const
inline

Returns UDP destination port

Returns
UDP destination port

◆ isEmpty()

bool solanet::Message::isEmpty ( ) const
inline

Check if message is treated as empty

Returns
true if message is empty

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