OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::IpConverter Class Reference

#include "IpConverter.h"

Public Member Functions

 IpConverter ()
 
virtual ~IpConverter ()
 

Static Public Member Functions

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.
 

Constructor & Destructor Documentation

◆ IpConverter()

ot::IpConverter::IpConverter ( )
inline

◆ ~IpConverter()

virtual ot::IpConverter::~IpConverter ( )
inlinevirtual

Member Function Documentation

◆ 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
_senderIPThe string containing the IP address
_senderPortThe port of the sender

◆ hostFromIp()

std::string ot::IpConverter::hostFromIp ( const std::string & _ip)
static

Will return the host from the provided IP.

Parameters
_ipThe IP adress

◆ portFromIp()

std::string ot::IpConverter::portFromIp ( const std::string & _ip)
static

Will return the port from the provided IP.

Parameters
_ipThe IP adress

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