|
OpenTTD Source 20260421-master-gc2fbc6fdeb
|
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"#include "tcp_content_type.h"Go to the source code of this file.
Data Structures | |
| struct | IsEnumPacketType< PacketContentType > |
| Mark PacketContentType as PacketType. More... | |
| class | NetworkContentSocketHandler |
| Base socket handler for all Content TCP sockets. More... | |
Enumerations | |
| enum class | PacketContentType : uint8_t { ClientInfoList , ClientInfoID , ClientInfoExternalID , ClientInfoExternalIDMD5 , ServerInfo , ClientContent , ServerContent } |
| Enum with all types of TCP content packets. More... | |
Functions | |
| Subdirectory | GetContentInfoSubDir (ContentType type) |
| Helper to get the subdirectory a ContentInfo is located in. | |
Basic functions to receive and send TCP packets to/from the content server.
Definition in file tcp_content.h.
|
strong |
Enum with all types of TCP content packets.
Definition at line 23 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 184 of file tcp_content.cpp.
References Ai, AiLibrary, BaseGraphics, BaseMusic, Baseset, BaseSounds, Gs, GsLibrary, Heightmap, NewGRF, NewGrf, None, and Scenario.
Referenced by ClientNetworkContentSocketHandler::AfterDownload(), ContentTextfileWindow::ContentTextfileWindow(), GetFullFilename(), and ContentInfo::GetTextfile().