SeaBreeze
Inet4Address.h
Go to the documentation of this file.
1 /***************************************************/
30 #ifndef SEABREEZE_INET4ADDRESS_H
31 #define SEABREEZE_INET4ADDRESS_H
32 
33 #include <string>
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)
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 */
Definition: Inet4Address.h:44
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42
Definition: IllegalArgumentException.h:43