29 #include "Uninetwork.h"
54 sp2plib::UInt32 Get();
58 void Set(sp2plib::UInt32 value);
62 void Set(in_addr value);
67 static IP4Address* new_Parse(
char* str_address);
71 void Parse(
char* str_address);
83 static IP4Address* new_ParseFromBytes(
unsigned char* byte_array,
int startIndex = 0);
88 void ParseFromBytes(
unsigned char* byte_array,
int startIndex = 0);
91 ::std::string ToString();
96 void ToByteArray(
unsigned char* buffer,
int startIndex = 0);
104 void As_sockaddr_in(sockaddr_in &adr, sp2plib::UInt16 Port);
113 static bool IsIP4AddressFormat(
const char *s_adr);
123 IP4Address& operator=(
const sp2plib::UInt32 &rhs);
128 bool operator==(
const IP4Address &other)
const;
133 bool operator!=(
const IP4Address &other)
const;
136 sp2plib::UInt32 _Address;