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