OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
IpConverter.h
Go to the documentation of this file.
1
/*
2
* ipConverter.h
3
*
4
* Created on: November 30, 2020
5
* Author: Alexander Kuester
6
* Copyright (c) 2020 openTwin
7
*/
8
9
#pragma once
10
11
// OpenTwin header
12
#include "
OTCommunication/CommunicationAPIExport.h
"
13
14
// std header
15
#include <string>
16
17
namespace
ot
{
18
19
class
OT_COMMUNICATION_API_EXPORT
IpConverter
{
20
public
:
21
IpConverter
() {}
22
virtual
~IpConverter
() {}
23
27
static
std::string filterIpFromSender(
const
std::string&
_senderIP
,
const
std::string& _senderPort);
28
31
static
std::string portFromIp(
const
std::string& _ip);
32
35
static
std::string hostFromIp(
const
std::string& _ip);
36
37
private
:
38
IpConverter
(
const
IpConverter
&) =
delete
;
39
};
40
41
}
CommunicationAPIExport.h
OT_COMMUNICATION_API_EXPORT
#define OT_COMMUNICATION_API_EXPORT
Definition
CommunicationAPIExport.h:6
_senderIP
const char * _senderIP
Definition
dllmain.cpp:39
ot::IpConverter
Definition
IpConverter.h:19
ot::IpConverter::~IpConverter
virtual ~IpConverter()
Definition
IpConverter.h:22
ot::IpConverter::IpConverter
IpConverter()
Definition
IpConverter.h:21
ot
Definition
Connector.h:8
Libraries
OTCommunication
include
OTCommunication
IpConverter.h
Generated by
1.10.0