DDraceNetwork Documentation
Loading...
Searching...
No Matches
types.h File Reference
#include <cstdint>
#include <ctime>
#include <functional>
#include <base/detect.h>
#include <sys/types.h>
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CFsFileInfo
 
struct  NETADDR
 
struct  std::hash< NETADDR >
 
struct  NETSTATS
 

Typedefs

typedef voidIOHANDLE
 
typedef int(* FS_LISTDIR_CALLBACK) (const char *name, int is_dir, int dir_type, void *user)
 
typedef int(* FS_LISTDIR_CALLBACK_FILEINFO) (const CFsFileInfo *info, int is_dir, int dir_type, void *user)
 
typedef struct NETSOCKET_INTERNALNETSOCKET
 
typedef struct NETADDR NETADDR
 
typedef struct NETSTATS NETSTATS
 
typedef pid_t PROCESS
 

Enumerations

enum class  TRISTATE { NONE , SOME , ALL }
 

Variables

constexpr auto UTF8_BYTE_LENGTH = 4
 
constexpr auto IO_MAX_PATH_LENGTH = 512
 
constexpr auto NETADDR_MAXSTRSIZE = 1 + (8 * 4 + 7) + 1 + 1 + 5 + 1
 
constexpr auto NETTYPE_INVALID = 0
 
constexpr auto NETTYPE_IPV4 = 1 << 0
 
constexpr auto NETTYPE_IPV6 = 1 << 1
 
constexpr auto NETTYPE_WEBSOCKET_IPV4 = 1 << 2
 
constexpr auto NETTYPE_WEBSOCKET_IPV6 = 1 << 3
 
constexpr auto NETTYPE_LINK_BROADCAST = 1 << 4
 
constexpr auto NETTYPE_TW7 = 1 << 5
 
constexpr auto NETTYPE_ALL = NETTYPE_IPV4 | NETTYPE_IPV6 | NETTYPE_WEBSOCKET_IPV4 | NETTYPE_WEBSOCKET_IPV6
 
constexpr auto NETTYPE_MASK = NETTYPE_ALL | NETTYPE_LINK_BROADCAST | NETTYPE_TW7
 
constexpr PROCESS INVALID_PROCESS = 0
 

Typedef Documentation

◆ FS_LISTDIR_CALLBACK

typedef int(* FS_LISTDIR_CALLBACK) (const char *name, int is_dir, int dir_type, void *user)

◆ FS_LISTDIR_CALLBACK_FILEINFO

typedef int(* FS_LISTDIR_CALLBACK_FILEINFO) (const CFsFileInfo *info, int is_dir, int dir_type, void *user)

Enumeration Type Documentation

◆ TRISTATE

Enumerator
NONE 
SOME 
ALL 

Variable Documentation

◆ IO_MAX_PATH_LENGTH

constexpr auto IO_MAX_PATH_LENGTH = 512
inlineconstexpr

◆ NETADDR_MAXSTRSIZE

constexpr auto NETADDR_MAXSTRSIZE = 1 + (8 * 4 + 7) + 1 + 1 + 5 + 1
inlineconstexpr

◆ NETTYPE_ALL

◆ NETTYPE_INVALID

constexpr auto NETTYPE_INVALID = 0
inlineconstexpr

◆ NETTYPE_IPV4

constexpr auto NETTYPE_IPV4 = 1 << 0
inlineconstexpr

◆ NETTYPE_IPV6

constexpr auto NETTYPE_IPV6 = 1 << 1
inlineconstexpr

◆ NETTYPE_LINK_BROADCAST

constexpr auto NETTYPE_LINK_BROADCAST = 1 << 4
inlineconstexpr

◆ NETTYPE_MASK

constexpr auto NETTYPE_MASK = NETTYPE_ALL | NETTYPE_LINK_BROADCAST | NETTYPE_TW7
inlineconstexpr

◆ NETTYPE_TW7

constexpr auto NETTYPE_TW7 = 1 << 5
inlineconstexpr

0.7 address. This is a flag in NETADDR to avoid introducing a parameter to every networking function to differenciate between 0.6 and 0.7 connections.

◆ NETTYPE_WEBSOCKET_IPV4

constexpr auto NETTYPE_WEBSOCKET_IPV4 = 1 << 2
inlineconstexpr

◆ NETTYPE_WEBSOCKET_IPV6

constexpr auto NETTYPE_WEBSOCKET_IPV6 = 1 << 3
inlineconstexpr

◆ UTF8_BYTE_LENGTH

constexpr auto UTF8_BYTE_LENGTH = 4
inlineconstexpr

The maximum bytes necessary to encode one Unicode codepoint with UTF-8.