D++ (DPP)  10.0.30
C++ Discord API Bot Library
discordclient.cpp File Reference
#include <string>
#include <iostream>
#include <fstream>
#include <dpp/exception.h>
#include <dpp/discordclient.h>
#include <dpp/cache.h>
#include <dpp/cluster.h>
#include <thread>
#include <dpp/json.h>
#include <dpp/etf.h>
#include <zlib.h>
#include <unistd.h>
#include <netinet/in.h>
#include <resolv.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
Include dependency graph for discordclient.cpp:

Classes

class  dpp::zlibcontext
 This is an opaque class containing zlib library specific structures. More...
 

Namespaces

 dpp
 The main namespace for D++ functions.
 

Macros

#define DECOMP_BUFFER_SIZE   512 * 1024
 
#define DPP_OS   unknown
 
#define PATH_COMPRESSED_ETF   "/?v=" DISCORD_API_VERSION "&encoding=etf&compress=zlib-stream"
 
#define PATH_COMPRESSED_JSON   "/?v=" DISCORD_API_VERSION "&encoding=json&compress=zlib-stream"
 
#define PATH_UNCOMPRESSED_ETF   "/?v=" DISCORD_API_VERSION "&encoding=etf"
 
#define PATH_UNCOMPRESSED_JSON   "/?v=" DISCORD_API_VERSION "&encoding=json"
 
#define STRINGIFY(a)   STRINGIFY_(a)
 
#define STRINGIFY_(a)   #a
 

Variables

static thread_local std::string dpp::last_ping_message
 Stores the most recent ping message on this shard, which we check for to monitor latency. More...
 

Macro Definition Documentation

◆ DECOMP_BUFFER_SIZE

#define DECOMP_BUFFER_SIZE   512 * 1024

◆ DPP_OS

#define DPP_OS   unknown

◆ PATH_COMPRESSED_ETF

#define PATH_COMPRESSED_ETF   "/?v=" DISCORD_API_VERSION "&encoding=etf&compress=zlib-stream"

◆ PATH_COMPRESSED_JSON

#define PATH_COMPRESSED_JSON   "/?v=" DISCORD_API_VERSION "&encoding=json&compress=zlib-stream"

◆ PATH_UNCOMPRESSED_ETF

#define PATH_UNCOMPRESSED_ETF   "/?v=" DISCORD_API_VERSION "&encoding=etf"

◆ PATH_UNCOMPRESSED_JSON

#define PATH_UNCOMPRESSED_JSON   "/?v=" DISCORD_API_VERSION "&encoding=json"

◆ STRINGIFY

#define STRINGIFY (   a)    STRINGIFY_(a)

◆ STRINGIFY_

#define STRINGIFY_ (   a)    #a