Batch #17053 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_07599 NIPAddr::NIPAddr: byte-identical Merged automatically: every function is byte-identical to the original.
21 lines
432 B
C++
21 lines
432 B
C++
#ifndef RAGNAROK_SOURCE_NETWORK_NIPADDR_H
|
|
#define RAGNAROK_SOURCE_NETWORK_NIPADDR_H
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
class NIPAddr {
|
|
public:
|
|
explicit NIPAddr(std::string text);
|
|
virtual ~NIPAddr();
|
|
static bool IsPrivateAddress(std::uint32_t address);
|
|
void SetAddress(std::string text);
|
|
|
|
/* 0004 */ std::uint32_t address;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(NIPAddr) == 8);
|
|
#endif
|
|
|
|
#endif
|