Back to Site
Loading...
Searching...
No Matches
librats.h File Reference
#include "socket.h"
#include "dht.h"
#include "mdns.h"
#include "logger.h"
#include "threadmanager.h"
#include "gossipsub.h"
#include "file_transfer.h"
#include "noise.h"
#include "ice.h"
#include "storage.h"
#include "bittorrent.h"
#include "json.hpp"
#include <string>
#include <functional>
#include <thread>
#include <vector>
#include <mutex>
#include <atomic>
#include <unordered_map>
#include <memory>
#include <chrono>
#include <condition_variable>
#include <unordered_set>
#include <cstdint>
#include <cstring>
#include "rats_export.h"
Include dependency graph for librats.h:

Go to the source code of this file.

Classes

struct  librats::RatsPeer
 RatsPeer struct - comprehensive information about a connected rats peer. More...
 
struct  librats::ReconnectConfig
 ReconnectConfig - Configuration for automatic peer reconnection. More...
 
struct  librats::ReconnectInfo
 ReconnectInfo - Information about a peer pending reconnection. More...
 
struct  librats::MessageHeader
 Message header structure for librats messages Fixed 8-byte header format: [0-3]: Magic number "RATS" (4 bytes) [4]: Message data type (1 byte) [5-7]: Reserved for future use (3 bytes) More...
 
class  librats::RatsClient
 RatsClient - Core peer-to-peer networking client. More...
 

Namespaces

namespace  librats
 

Enumerations

enum class  librats::MessageDataType : uint8_t { librats::BINARY = 0x01 , librats::STRING = 0x02 , librats::JSON = 0x03 }
 Message data types for librats message headers. More...
 

Functions

std::unique_ptr< RatsClientlibrats::create_rats_client (int listen_port)
 
const char * librats::rats_get_library_version_string ()
 
void librats::rats_get_library_version (int *major, int *minor, int *patch, int *build)
 
const char * librats::rats_get_library_git_describe ()
 
uint32_t librats::rats_get_library_abi ()