OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Network2Res.h File Reference
#include "lib/StdAdaptors.h"
#include "platform/StdSync.h"
#include "lib/SHA1.h"
#include <atomic>
#include "network/C4PacketBase.h"
#include "network/C4Network2IO.h"
Include dependency graph for C4Network2Res.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  C4Network2ResCore
 
class  C4Network2ResLoad
 
class  C4Network2ResChunkData
 
struct  C4Network2ResChunkData::ChunkRange
 
class  C4Network2Res
 
class  C4Network2Res::Ref
 
struct  C4Network2Res::ClientChunks
 
class  C4Network2ResChunk
 
class  C4Network2ResList
 
class  C4PacketResStatus
 
class  C4PacketResDiscover
 
class  C4PacketResRequest
 

Enumerations

enum  C4Network2ResType {
  NRT_Null =0, NRT_Scenario, NRT_Dynamic, NRT_Player,
  NRT_Definitions, NRT_System, NRT_Material
}
 

Variables

const uint32_t C4NetResChunkSize = 10U * 1024U
 
const int32_t C4NetResDiscoverTimeout = 10
 
const int32_t C4NetResDiscoverInterval = 1
 
const int32_t C4NetResStatusInterval = 1
 
const int32_t C4NetResMaxLoad = 5
 
const int32_t C4NetResLoadTimeout = 60
 
const int32_t C4NetResDeleteTime = 60
 
const int32_t C4NetResMaxBigicon = 20
 
const int32_t C4NetResIDAnonymous = -2
 
const StdEnumEntry
< C4Network2ResType
C4Network2ResType_EnumMap []
 

Class Documentation

struct C4Network2ResChunkData::ChunkRange

Definition at line 147 of file C4Network2Res.h.

Collaboration diagram for C4Network2ResChunkData::ChunkRange:
[legend]
Class Members
int32_t Length
ChunkRange * Next
int32_t Start
struct C4Network2Res::ClientChunks

Definition at line 227 of file C4Network2Res.h.

Collaboration diagram for C4Network2Res::ClientChunks:
[legend]
Class Members
C4Network2ResChunkData Chunks
int32_t ClientID
ClientChunks * Next

Enumeration Type Documentation

Enumerator
NRT_Null 
NRT_Scenario 
NRT_Dynamic 
NRT_Player 
NRT_Definitions 
NRT_System 
NRT_Material 

Definition at line 40 of file C4Network2Res.h.

Variable Documentation

const uint32_t C4NetResChunkSize = 10U * 1024U
const int32_t C4NetResDeleteTime = 60

Definition at line 35 of file C4Network2Res.h.

Referenced by C4Network2ResList::OnShareFree().

const int32_t C4NetResDiscoverInterval = 1

Definition at line 31 of file C4Network2Res.h.

Referenced by C4Network2ResList::OnTimer().

const int32_t C4NetResDiscoverTimeout = 10

Definition at line 30 of file C4Network2Res.h.

Referenced by C4Network2Res::DoLoad().

const int32_t C4NetResIDAnonymous = -2

Definition at line 38 of file C4Network2Res.h.

Referenced by C4Network2Res::isAnonymous(), and C4Network2Res::SetDerived().

const int32_t C4NetResLoadTimeout = 60

Definition at line 34 of file C4Network2Res.h.

Referenced by C4Network2ResLoad::CheckTimeout().

const int32_t C4NetResMaxBigicon = 20
const int32_t C4NetResMaxLoad = 5

Definition at line 33 of file C4Network2Res.h.

Referenced by C4Network2Res::StartLoad(), and C4Network2Res::StartNewLoads().

const int32_t C4NetResStatusInterval = 1

Definition at line 32 of file C4Network2Res.h.

Referenced by C4Network2ResList::OnTimer().

const StdEnumEntry<C4Network2ResType> C4Network2ResType_EnumMap[]
Initial value:
=
{
{ "Scenario", NRT_Scenario },
{ "Dynamic", NRT_Dynamic },
{ "Player", NRT_Player },
{ "Definitions", NRT_Definitions },
{ "System", NRT_System },
{ "Material", NRT_Material },
}

Definition at line 51 of file C4Network2Res.h.

Referenced by C4Network2ResCore::CompileFunc().