OpenTTD Source: src/network/core/tcp_content.h File Reference

OpenTTD Source 12.2

Data Structures | Functions
tcp_content.h File Reference
`#include "os_abstraction.h"`
`#include "tcp.h"`
`#include "packet.h"`
`#include "../../debug.h"`
`#include "tcp_content_type.h"`

Go to the source code of this file.

## Data Structures
class | NetworkContentSocketHandler
| Base socket handler for all Content TCP sockets. More...

## Functions
Subdirectory | GetContentInfoSubDir (ContentType type)
| Helper to get the subdirectory a ContentInfo is located in. More...

## Detailed Description

Basic functions to receive and send TCP packets to/from the content server.

Definition in file tcp_content.h.

## Function Documentation

## ◆ GetContentInfoSubDir()

Subdirectory GetContentInfoSubDir | ( | ContentType | type | ) |

Helper to get the subdirectory a ContentInfo is located in.

Parameters

  type | The type of content.

Returns
  The subdirectory the content is located in.

Definition at line 187 of file tcp_content.cpp.

References AI_DIR, AI_LIBRARY_DIR, BASESET_DIR, 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, CONTENT_TYPE_SCENARIO, GAME_DIR, GAME_LIBRARY_DIR, HEIGHTMAP_DIR, NEWGRF_DIR, NO_DIRECTORY, and SCENARIO_DIR.

Referenced by ClientNetworkContentSocketHandler::AfterDownload(), and GetFullFilename().