37 #include "ip/NetworkingUtils.h"
40 #include <sys/socket.h>
41 #include <netinet/in.h>
47 NetworkInitializer::NetworkInitializer() {}
49 NetworkInitializer::~NetworkInitializer() {}
52 unsigned long GetHostByName(
const char *name )
54 unsigned long result = 0;
56 struct hostent *h = gethostbyname( name );
59 std::memcpy( &a, h->h_addr_list[0], h->h_length );
60 result = ntohl(a.s_addr);