OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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

struct C4Network2IO::AutoAccept

Definition at line 81 of file C4Network2IO.h.

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

Definition at line 246 of file C4Network2IO.h.

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

Enumeration Type Documentation

Enumerator
CS_Connect 
CS_Connected 
CS_HalfAccepted 
CS_Accepted 
CS_Closed 
CS_ConnectFail 

Definition at line 203 of file C4Network2IO.h.

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

const int C4NetAcceptTimeout = 10

Definition at line 37 of file C4Network2IO.h.

Referenced by C4Network2IO::CheckTimeout().

const int C4NetMaxClients = 256

Definition at line 41 of file C4Network2IO.h.

Referenced by C4PacketFwd::AddClient().

const int C4NetPingFreq = 1000

Definition at line 35 of file C4Network2IO.h.

Referenced by C4Network2IO::Execute().

const int C4NetPingTimeout = 30000

Definition at line 38 of file C4Network2IO.h.

Referenced by C4Network2IO::CheckTimeout().

const int C4NetStatisticsFreq = 1000

Definition at line 36 of file C4Network2IO.h.

Referenced by C4Network2IO::Execute().

const int C4NetTimer = 500

Definition at line 34 of file C4Network2IO.h.

Referenced by C4Network2IO::GetNextTick().