psync Namespace Reference

Namespaces

 detail
 
 tlv
 

Classes

class  CompressionError
 
class  Consumer
 Consumer logic to subscribe to producer's data. More...
 
class  FullProducer
 Full sync logic to synchronize with other nodes where all nodes wants to get all names prefixes synced. More...
 
struct  MissingDataInfo
 
class  PartialProducer
 Partial sync logic to publish data names. More...
 
class  ProducerBase
 Base class for PartialProducer and FullProducer. More...
 
class  SegmentPublisher
 Helper class to publish segmented data. More...
 

Typedefs

using ReceiveHelloCallback = std::function< void(const std::map< ndn::Name, uint64_t > &)>
 
using UpdateCallback = std::function< void(const std::vector< MissingDataInfo > &)>
 

Enumerations

enum class  CompressionScheme {
  NONE ,
  ZLIB ,
  GZIP ,
  BZIP2 ,
  LZMA ,
  ZSTD ,
  DEFAULT = ZLIB
}
 

Variables

const ndn::name::Component HELLO {"hello"}
 
constexpr ndn::time::milliseconds HELLO_INTEREST_LIFETIME = 1_s
 
constexpr ndn::time::milliseconds HELLO_REPLY_FRESHNESS = 1_s
 
const ndn::name::Component SYNC {"sync"}
 
constexpr ndn::time::milliseconds SYNC_INTEREST_LIFETIME = 1_s
 
constexpr ndn::time::milliseconds SYNC_REPLY_FRESHNESS = 1_s
 

Typedef Documentation

◆ ReceiveHelloCallback

using psync::ReceiveHelloCallback = typedef std::function<void(const std::map<ndn::Name, uint64_t>&)>

Definition at line 36 of file consumer.hpp.

◆ UpdateCallback

using psync::UpdateCallback = typedef std::function<void(const std::vector<MissingDataInfo>&)>

Definition at line 71 of file common.hpp.

Enumeration Type Documentation

◆ CompressionScheme

Enumerator
NONE 
ZLIB 
GZIP 
BZIP2 
LZMA 
ZSTD 
DEFAULT 

Definition at line 43 of file common.hpp.

Variable Documentation

◆ HELLO

const ndn::name::Component psync::HELLO {"hello"}

Definition at line 31 of file partial-producer.cpp.

◆ HELLO_INTEREST_LIFETIME

constexpr ndn::time::milliseconds psync::HELLO_INTEREST_LIFETIME = 1_s
inlineconstexpr

Definition at line 38 of file common.hpp.

◆ HELLO_REPLY_FRESHNESS

constexpr ndn::time::milliseconds psync::HELLO_REPLY_FRESHNESS = 1_s
inlineconstexpr

Definition at line 39 of file common.hpp.

◆ SYNC

const ndn::name::Component psync::SYNC {"sync"}

Definition at line 32 of file partial-producer.cpp.

◆ SYNC_INTEREST_LIFETIME

constexpr ndn::time::milliseconds psync::SYNC_INTEREST_LIFETIME = 1_s
inlineconstexpr

Definition at line 40 of file common.hpp.

◆ SYNC_REPLY_FRESHNESS

constexpr ndn::time::milliseconds psync::SYNC_REPLY_FRESHNESS = 1_s
inlineconstexpr

Definition at line 41 of file common.hpp.