Renamed types.hpp to transport_address.hpp.

This commit is contained in:
hiker 2015-10-29 18:39:01 +11:00
parent 83154ae3a7
commit ef310a5666
12 changed files with 15 additions and 11 deletions

View File

@ -21,6 +21,7 @@
#include "config/user_config.hpp" #include "config/user_config.hpp"
#include "io/file_manager.hpp" #include "io/file_manager.hpp"
#include "network/network_string.hpp" #include "network/network_string.hpp"
#include "network/transport_address.hpp"
#include "utils/time.hpp" #include "utils/time.hpp"
#include <string.h> #include <string.h>

View File

@ -22,8 +22,8 @@
#ifndef HEADER_NETWORK_HPP #ifndef HEADER_NETWORK_HPP
#define HEADER_NETWORK_HPP #define HEADER_NETWORK_HPP
#include "network/types.hpp"
#include "utils/synchronised.hpp" #include "utils/synchronised.hpp"
#include "utils/types.hpp"
// enet.h includes win32.h, which without lean_and_mean includes // enet.h includes win32.h, which without lean_and_mean includes
// winspool.h, which defines MAX_PRIORITY as a macro, which then // winspool.h, which defines MAX_PRIORITY as a macro, which then
@ -31,7 +31,10 @@
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <enet/enet.h> #include <enet/enet.h>
#include <stdio.h>
class NetworkString; class NetworkString;
class TransportAddress;
/** \class EnetHost /** \class EnetHost
* A small wrapper around enet to allow sending and receiving * A small wrapper around enet to allow sending and receiving

View File

@ -24,7 +24,6 @@
#define PROTOCOL_HPP #define PROTOCOL_HPP
#include "network/network_string.hpp" #include "network/network_string.hpp"
#include "network/types.hpp"
#include "utils/leak_check.hpp" #include "utils/leak_check.hpp"
#include "utils/no_copy.hpp" #include "utils/no_copy.hpp"
#include "utils/types.hpp" #include "utils/types.hpp"

View File

@ -2,7 +2,7 @@
#define CLIENT_LOBBY_ROOM_PROTOCOL_HPP #define CLIENT_LOBBY_ROOM_PROTOCOL_HPP
#include "network/protocols/lobby_room_protocol.hpp" #include "network/protocols/lobby_room_protocol.hpp"
#include "network/types.hpp" #include "network/transport_address.hpp"
class STKPeer; class STKPeer;

View File

@ -20,7 +20,7 @@
#define CONNECT_TO_SERVER_HPP #define CONNECT_TO_SERVER_HPP
#include "network/protocol.hpp" #include "network/protocol.hpp"
#include "network/types.hpp" #include "network/transport_address.hpp"
#include "utils/cpp2011.hpp" #include "utils/cpp2011.hpp"
#include <string> #include <string>

View File

@ -20,7 +20,7 @@
#define CONNECT_TO_SERVER_HPP #define CONNECT_TO_SERVER_HPP
#include "network/protocol.hpp" #include "network/protocol.hpp"
#include "network/types.hpp" #include "network/transport_address.hpp"
#include "utils/cpp2011.hpp" #include "utils/cpp2011.hpp"
#include <string> #include <string>

View File

@ -20,6 +20,7 @@
#define GET_PEER_ADDRESS_HPP #define GET_PEER_ADDRESS_HPP
#include "network/protocol.hpp" #include "network/protocol.hpp"
#include "network/transport_address.hpp"
namespace Online { class XMLRequest; } namespace Online { class XMLRequest; }

View File

@ -2,7 +2,7 @@
#define PING_PROTOCOL_HPP #define PING_PROTOCOL_HPP
#include "network/protocol.hpp" #include "network/protocol.hpp"
#include "network/transport_address.hpp"
class PingProtocol : public Protocol class PingProtocol : public Protocol
{ {

View File

@ -24,7 +24,7 @@
#include "network/network.hpp" #include "network/network.hpp"
#include "network/network_string.hpp" #include "network/network_string.hpp"
#include "network/types.hpp" #include "network/transport_address.hpp"
#include "utils/synchronised.hpp" #include "utils/synchronised.hpp"
// enet.h includes win32.h, which without lean_and_mean includes // enet.h includes win32.h, which without lean_and_mean includes

View File

@ -19,7 +19,7 @@
#include "network/stk_peer.hpp" #include "network/stk_peer.hpp"
#include "network/game_setup.hpp" #include "network/game_setup.hpp"
#include "network/network_string.hpp" #include "network/network_string.hpp"
#include "network/types.hpp" #include "network/transport_address.hpp"
#include "utils/log.hpp" #include "utils/log.hpp"
#include <string.h> #include <string.h>

View File

@ -19,8 +19,8 @@
/*! \file types.hpp /*! \file types.hpp
* \brief Declares the general types that are used by the network. * \brief Declares the general types that are used by the network.
*/ */
#ifndef HEADER_NETWORK_TYPES_HPP #ifndef HEADER_TRANSPORT_ADDRESS_HPP
#define HEADER_NETWORK_TYPES_HPP #define HEADER_TRANSPORT_ADDRESS_HPP
#include "utils/no_copy.hpp" #include "utils/no_copy.hpp"
#include "utils/string_utils.hpp" #include "utils/string_utils.hpp"