Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef __CXUTILS_IPV4_ADDRESS_H
00041 #define __CXUTILS_IPV4_ADDRESS_H
00042
00043 #include "cxutils/networking/ipaddress.h"
00044 #include <list>
00045
00046 namespace CxUtils
00047 {
00054 class CX_UTILS_DLL IP4Address : public IPAddress
00055 {
00056 public:
00057 typedef std::set<IP4Address> Set;
00058 typedef std::vector<IP4Address> List;
00059 typedef std::list<IP4Address> Queue;
00060 IP4Address();
00061 IP4Address(const char* ipAddress);
00062 IP4Address(const std::string& ipAddress);
00063 IP4Address(const IP4Address& ipAddress);
00064 ~IP4Address();
00065 bool SetAddress(const std::string& ipAddress);
00066 bool SetAddress(const unsigned char a,
00067 const unsigned char b,
00068 const unsigned char c,
00069 const unsigned char d);
00070 IP4Address& operator=(const IP4Address& ipAddress);
00071 IP4Address& operator=(const std::string& ipAddress);
00072
00073 bool operator==(const IP4Address& ipAddress) const;
00074 bool operator!=(const IP4Address& ipAddress) const;
00075 bool operator<(const IP4Address& ipAddress) const;
00076 bool operator<=(const IP4Address& ipAddress) const;
00077 virtual void Clear();
00078 std::string mString;
00079 unsigned char mData[4];
00080 };
00081 }
00082
00083
00084
00085
00086
00087
00088
00089 #endif
00090
00091