TDME2  1.9.200
Network.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <tdme/tdme.h>
5 
6 #include <string>
7 
8 using std::string;
9 
10 /**
11  * Network class
12  * @author Andreas Drewke
13  */
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 };
Network class.
Definition: Network.h:14
static const string getIpByHostname(const string &hostname)
Get IP by hostname.
Definition: Network.cpp:51
static bool initialize()
Initialize.
Definition: Network.cpp:34