OpenClonk
C4Network2IO.h File Reference
#include "netpuncher/C4PuncherPacket.h"
#include "network/C4Client.h"
#include "network/C4InteractiveThread.h"
#include "network/C4NetIO.h"
#include <atomic>
Include dependency graph for C4Network2IO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  C4Network2IO
 
struct  C4Network2IO::AutoAccept
 
class  C4Network2IOConnection
 
struct  C4Network2IOConnection::PacketLogEntry
 
class  C4PacketPing
 
class  C4PacketConn
 
class  C4PacketConnRe
 
class  C4PacketFwd
 
class  C4PacketPostMortem
 

Enumerations

enum  C4Network2IOProtocol { P_UDP, P_TCP, P_NONE = -1 }
 
enum  C4Network2IOConnStatus {
  CS_Connect, CS_Connected, CS_HalfAccepted, CS_Accepted,
  CS_Closed, CS_ConnectFail
}
 

Variables

const int C4NetTimer = 500
 
const int C4NetPingFreq = 1000
 
const int C4NetStatisticsFreq = 1000
 
const int C4NetAcceptTimeout = 10
 
const int C4NetPingTimeout = 30000
 
const int C4NetMaxClients = 256
 

Class Documentation

◆ C4Network2IO::AutoAccept

struct C4Network2IO::AutoAccept

Definition at line 81 of file C4Network2IO.h.

Collaboration diagram for C4Network2IO::AutoAccept:
[legend]
Class Members
C4ClientCore CCore
AutoAccept * Next

◆ C4Network2IOConnection::PacketLogEntry

struct C4Network2IOConnection::PacketLogEntry

Definition at line 248 of file C4Network2IO.h.

Collaboration diagram for C4Network2IOConnection::PacketLogEntry:
[legend]
Class Members
PacketLogEntry * Next
uint32_t Number
C4NetIOPacket Pkt

Enumeration Type Documentation

◆ C4Network2IOConnStatus

Enumerator
CS_Connect 
CS_Connected 
CS_HalfAccepted 
CS_Accepted 
CS_Closed 
CS_ConnectFail 

Definition at line 204 of file C4Network2IO.h.

205 {
206  CS_Connect, // waiting for connection
207  CS_Connected, // waiting for Conn
208  CS_HalfAccepted, // got Conn (peer identified, client class created if neccessary)
209  CS_Accepted, // got ConnRe (peer did accept)
210  CS_Closed,
211  CS_ConnectFail // got closed before HalfAccepted was reached
212 };

◆ C4Network2IOProtocol

Enumerator
P_UDP 
P_TCP 
P_NONE 

Definition at line 29 of file C4Network2IO.h.

30 {
31  P_UDP, P_TCP, P_NONE = -1
32 };

Variable Documentation

◆ C4NetAcceptTimeout

const int C4NetAcceptTimeout = 10

Definition at line 37 of file C4Network2IO.h.

Referenced by C4Network2IO::CheckTimeout().

◆ C4NetMaxClients

const int C4NetMaxClients = 256

Definition at line 41 of file C4Network2IO.h.

Referenced by C4PacketFwd::AddClient().

◆ C4NetPingFreq

const int C4NetPingFreq = 1000

Definition at line 35 of file C4Network2IO.h.

Referenced by C4Network2IO::Execute().

◆ C4NetPingTimeout

const int C4NetPingTimeout = 30000

Definition at line 38 of file C4Network2IO.h.

Referenced by C4Network2IO::CheckTimeout().

◆ C4NetStatisticsFreq

const int C4NetStatisticsFreq = 1000

Definition at line 36 of file C4Network2IO.h.

Referenced by C4Network2IO::Execute().

◆ C4NetTimer

const int C4NetTimer = 500

Definition at line 34 of file C4Network2IO.h.

Referenced by C4Network2IO::GetNextTick().