SeaBreeze
include
native
network
Inet4Address.h
Go to the documentation of this file.
1
/***************************************************/
30
#ifndef SEABREEZE_INET4ADDRESS_H
31
#define SEABREEZE_INET4ADDRESS_H
32
33
#include <string>
34
#include "
common/exceptions/IllegalArgumentException.h
"
35
#include "
common/SeaBreeze.h
"
36
37
#ifdef _WINDOWS
38
#include <winsock2.h>
39
#else
40
#include <netinet/in.h>
41
#endif
42
43
namespace
seabreeze
{
44
class
Inet4Address
{
45
public
:
46
Inet4Address
();
47
Inet4Address
(std::string ipAddressQuads)
48
throw
(
IllegalArgumentException
);
49
Inet4Address
(
struct
in_addr *ipAddr);
50
Inet4Address
(
const
Inet4Address
&that);
51
~
Inet4Address
();
52
53
struct
in_addr getAddress();
54
55
std::string getHostAddress();
56
57
private
:
58
struct
in_addr in;
59
};
60
}
61
62
#endif
/* SEABREEZE_INET4ADDRESS_H */
seabreeze::Inet4Address
Definition:
Inet4Address.h:44
IllegalArgumentException.h
seabreeze
Encapsulates all SeaBreeze classes.
Definition:
DeviceFactory.h:42
SeaBreeze.h
seabreeze::IllegalArgumentException
Definition:
IllegalArgumentException.h:43
Generated on Sun Jan 19 2020 16:01:08 for SeaBreeze by
1.8.13