Concord - C Discord API library
A Discord API wrapper library written in C
discord_requestor Struct Reference

The handle used for handling asynchronous requests. More...

#include <discord-internal.h>

Collaboration diagram for discord_requestor:
[legend]

Data Fields

struct logconf conf
 
struct user_agent * ua
 
CURLM * mhandle
 
struct discord_ratelimiter ratelimiter
 
int retry_limit
 
struct {
} * queues
 
struct {
   pthread_mutex_t   recycling
 
   pthread_mutex_t   pending
 
   pthread_mutex_t   finished
 
} * qlocks
 

Detailed Description

The handle used for handling asynchronous requests.

Field Documentation

◆ conf

struct logconf discord_requestor::conf

DISCORD_REQUEST logging module

◆ ua

struct user_agent* discord_requestor::ua

the user agent handle for performing requests

◆ mhandle

CURLM* discord_requestor::mhandle

curl_multi handle for performing asynchronous requests

◆ ratelimiter

struct discord_ratelimiter discord_requestor::ratelimiter

enforce Discord's ratelimiting for requests

◆ retry_limit

int discord_requestor::retry_limit

max amount of retries before a failed request gives up

◆ 

struct { ... } * discord_requestor::queues

request queues

◆ recycling

pthread_mutex_t discord_requestor::recycling

recycling queue lock

◆ pending

pthread_mutex_t discord_requestor::pending

pending queue lock

◆ finished

pthread_mutex_t discord_requestor::finished

finished queue lock

◆ 

struct { ... } * discord_requestor::qlocks

queue locks


The documentation for this struct was generated from the following file: