Basic functions to receive and send TCP packets to/from the content server. More...
#include "os_abstraction.h"
#include "tcp.h"
#include "packet.h"
#include "../../debug.h"
Go to the source code of this file.
Basic functions to receive and send TCP packets to/from the content server.
Definition in file tcp_content.h.
enum ContentID |
Unique identifier for the content.
Definition at line 53 of file tcp_content.h.
enum ContentType |
The values in the enum are important; they are used as database 'keys'.
CONTENT_TYPE_BEGIN |
Helper to mark the begin of the types. |
CONTENT_TYPE_BASE_GRAPHICS |
The content consists of base graphics. |
CONTENT_TYPE_NEWGRF |
The content consists of a NewGRF. |
CONTENT_TYPE_AI |
The content consists of an AI. |
CONTENT_TYPE_AI_LIBRARY |
The content consists of an AI library. |
CONTENT_TYPE_SCENARIO |
The content consists of a scenario. |
CONTENT_TYPE_HEIGHTMAP |
The content consists of a heightmap. |
CONTENT_TYPE_BASE_SOUNDS |
The content consists of base sounds. |
CONTENT_TYPE_BASE_MUSIC |
The content consists of base music. |
CONTENT_TYPE_GAME |
The content consists of a game script. |
CONTENT_TYPE_GAME_LIBRARY |
The content consists of a GS library. |
CONTENT_TYPE_END |
Helper to mark the end of the types. |
Definition at line 25 of file tcp_content.h.
enum PacketContentType |
Enum with all types of TCP content packets.
The order MUST not be changed
Definition at line 41 of file tcp_content.h.
Subdirectory GetContentInfoSubDir | ( | ContentType | type | ) |
Helper to get the subdirectory a ContentInfo is located in.
type | The type of content. |
Definition at line 229 of file tcp_content.cpp.
References CONTENT_TYPE_AI, CONTENT_TYPE_AI_LIBRARY, CONTENT_TYPE_BASE_GRAPHICS, CONTENT_TYPE_BASE_MUSIC, CONTENT_TYPE_BASE_SOUNDS, CONTENT_TYPE_GAME, CONTENT_TYPE_GAME_LIBRARY, CONTENT_TYPE_HEIGHTMAP, CONTENT_TYPE_NEWGRF, and CONTENT_TYPE_SCENARIO.
Referenced by ClientNetworkContentSocketHandler::AfterDownload(), GetFullFilename(), and ContentInfo::GetTextfile().