Remove obsolete CompileFunc for in_addr

ipv6
Lukas Werling 2017-01-07 13:08:01 +01:00
parent 758e7ca41e
commit f4bfd8c080
1 changed files with 0 additions and 16 deletions

View File

@ -944,22 +944,6 @@ private:
void EnlargeIO(int iBy);
};
// helpers
// there seems to be no standard way to get these numbers, so let's do it the dirty way...
inline uint8_t &in_addr_b(in_addr &addr, int i)
{
assert(0 <= i && i < 4);
return *(reinterpret_cast<uint8_t *>(&addr.s_addr) + i);
}
inline void CompileFunc(in_addr &ip, StdCompiler *pComp)
{
pComp->Value(in_addr_b(ip, 0)); pComp->Separator(StdCompiler::SEP_PART);
pComp->Value(in_addr_b(ip, 1)); pComp->Separator(StdCompiler::SEP_PART);
pComp->Value(in_addr_b(ip, 2)); pComp->Separator(StdCompiler::SEP_PART);
pComp->Value(in_addr_b(ip, 3));
}
#ifdef HAVE_WINSOCK
bool AcquireWinSock();
void ReleaseWinSock();