Make the address in thing work cross platform.

This commit is contained in:
Charles Lohr
2005-12-01 16:46:16 +00:00
parent bf24714529
commit 2f3a58ae45
3 changed files with 12 additions and 1 deletions
+9
View File
@@ -265,6 +265,15 @@ void EzSockets::update()
pUpdateWrite();
}
unsigned long EzSockets::LongFromAddrIn( const sockaddr_in & s )
{
#if defined(_XBOX) || defined(_WINDOWS)
return ntohl(s.sin_addr.S_un.S_addr);
#else
return ntohl(s.sin_addr.s_addr);
#endif
}
/*********************\
| Raw Data System |