#include "IpConverter.h"
|
static std::string | filterIpFromSender (const std::string &_senderIP, const std::string &_senderPort) |
| Will extract the IP address of the sender and replace the port with the one provided.
|
|
static std::string | portFromIp (const std::string &_ip) |
| Will return the port from the provided IP.
|
|
static std::string | hostFromIp (const std::string &_ip) |
| Will return the host from the provided IP.
|
|
◆ IpConverter()
ot::IpConverter::IpConverter |
( |
| ) |
|
|
inline |
◆ ~IpConverter()
virtual ot::IpConverter::~IpConverter |
( |
| ) |
|
|
inlinevirtual |
◆ filterIpFromSender()
std::string ot::IpConverter::filterIpFromSender |
( |
const std::string & | _senderIP, |
|
|
const std::string & | _senderPort ) |
|
static |
Will extract the IP address of the sender and replace the port with the one provided.
- Parameters
-
_senderIP | The string containing the IP address |
_senderPort | The port of the sender |
◆ hostFromIp()
std::string ot::IpConverter::hostFromIp |
( |
const std::string & | _ip | ) |
|
|
static |
Will return the host from the provided IP.
- Parameters
-
◆ portFromIp()
std::string ot::IpConverter::portFromIp |
( |
const std::string & | _ip | ) |
|
|
static |
Will return the port from the provided IP.
- Parameters
-
The documentation for this class was generated from the following files: