TDME2
1.9.200
src
tdme
os
network
Network.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
tdme/tdme.h
>
4
#include <
tdme/os/network/fwd-tdme.h
>
5
6
#include <string>
7
8
using
std::string;
9
10
/**
11
* Network class
12
* @author Andreas Drewke
13
*/
14
class
tdme::os::network::Network
{
15
public
:
16
17
/**
18
* Initialize
19
* @return success
20
*/
21
static
bool
initialize
();
22
23
/**
24
* Get IP by hostname
25
* @param hostname hostname
26
* @throws tdme::os::network::NetworkException
27
* @return ip address of given host
28
*/
29
static
const
string
getIpByHostname
(
const
string
&hostname);
30
31
};
tdme::os::network::Network
Network class.
Definition:
Network.h:14
tdme::os::network::Network::getIpByHostname
static const string getIpByHostname(const string &hostname)
Get IP by hostname.
Definition:
Network.cpp:51
tdme::os::network::Network::initialize
static bool initialize()
Initialize.
Definition:
Network.cpp:34
fwd-tdme.h
tdme.h
Generated by
1.9.1