[12632] Revert previous commit (see Notes)

This commit is contained in:
billy1arm 2013-05-31 13:50:57 +01:00 committed by Antz
parent 1cd806c02e
commit ef445ea523
1462 changed files with 9689 additions and 7080 deletions

View file

@ -1,33 +1,9 @@
#ifndef G3D_NETADDRESS_H
#define G3D_NETADDRESS_H
#ifndef G3D_NetAddress_h
#define G3D_NetAddress_h
#include "G3D/platform.h"
#include "G3D/Table.h"
/** These control the version of Winsock used by G3D.
Version 2.0 is standard for G3D 6.09 and later.
Version 1.1 is standard for G3D 6.08 and earlier.
*/
#define G3D_WINSOCK_MAJOR_VERSION 2
#define G3D_WINSOCK_MINOR_VERSION 0
#ifdef G3D_WIN32
# if (G3D_WINSOCK_MAJOR_VERSION == 2)
# include <winsock2.h>
# elif (G3D_WINSOCK_MAJOR_VERSION == 1)
# include <winsock.h>
# endif
#else
# include <sys/types.h>
# include <sys/socket.h>
# include <netinet/in.h>
# ifndef SOCKADDR_IN
# define SOCKADDR_IN struct sockaddr_in
# endif
# ifndef SOCKET
# define SOCKET int
# endif
#endif
#include "G3D/netheaders.h"
#include "G3D/g3dmath.h"
@ -48,22 +24,22 @@ private:
SOCKADDR_IN addr;
public:
/**
/*
In host byte order
*/
NetAddress(uint32 host, uint16 port = 0);
/**
/*
@param port Specified in host byte order (i.e., don't worry about endian issues)
*/
NetAddress(const std::string& hostname, uint16 port);
/**
/*
@param hostnameAndPort in the form "hostname:port" or "ip:port"
*/
NetAddress(const std::string& hostnameAndPort);
/**
/*
@deprecated Use G3D::NetworkDevice::broadcastAddressArray()
@brief Creates a UDP broadcast address for use with a
@ -114,7 +90,7 @@ template <> struct HashTrait<G3D::NetAddress> {
namespace G3D {
/**
/*
Two addresses may point to the same computer but be != because
they have different IP's.
*/