Skip to content
Permalink
Browse files

Fix broken Ipv4 serialization on win32

  • Loading branch information...
sapier sapier
sapier authored and sapier committed Apr 11, 2014
1 parent 8bb8602 commit 960d731587f58036bd4957f4a77db41e145c2d04
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/socket.cpp
@@ -202,7 +202,8 @@ std::string Address::serializeString() const
#ifdef _WIN32
if(m_addr_family == AF_INET)
{
u8 a, b, c, d, addr;
u8 a, b, c, d;
u32 addr;
addr = ntohl(m_address.ipv4.sin_addr.s_addr);
a = (addr & 0xFF000000) >> 24;
b = (addr & 0x00FF0000) >> 16;

0 comments on commit 960d731

Please sign in to comment.
You can’t perform that action at this time.