Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <netfulfilledman.h>

+ Collaboration diagram for CNetFulfilledRequestManager:

Public Member Functions

 CNetFulfilledRequestManager ()
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 
void AddFulfilledRequest (const CService &addr, const std::string &strRequest)
 
bool HasFulfilledRequest (const CService &addr, const std::string &strRequest)
 
void RemoveAllFulfilledRequests (const CService &addr)
 
void CheckAndRemove ()
 
void Clear ()
 
std::string ToString () const
 
void DoMaintenance ()
 

Public Attributes

 ADD_SERIALIZE_METHODS
 

Private Types

typedef std::map< std::string, int64_t > fulfilledreqmapentry_t
 
typedef std::map< CService, fulfilledreqmapentry_tfulfilledreqmap_t
 

Private Member Functions

void RemoveFulfilledRequest (const CService &addr, const std::string &strRequest)
 

Private Attributes

fulfilledreqmap_t mapFulfilledRequests
 
CCriticalSection cs_mapFulfilledRequests
 

Detailed Description

Definition at line 17 of file netfulfilledman.h.

Member Typedef Documentation

◆ fulfilledreqmap_t

◆ fulfilledreqmapentry_t

typedef std::map<std::string, int64_t> CNetFulfilledRequestManager::fulfilledreqmapentry_t
private

Definition at line 20 of file netfulfilledman.h.

Constructor & Destructor Documentation

◆ CNetFulfilledRequestManager()

CNetFulfilledRequestManager::CNetFulfilledRequestManager ( )
inline

Definition at line 30 of file netfulfilledman.h.

Member Function Documentation

◆ AddFulfilledRequest()

void CNetFulfilledRequestManager::AddFulfilledRequest ( const CService addr,
const std::string &  strRequest 
)

◆ CheckAndRemove()

void CNetFulfilledRequestManager::CheckAndRemove ( )

Definition at line 52 of file netfulfilledman.cpp.

References cs_mapFulfilledRequests, GetTime(), LOCK, and mapFulfilledRequests.

Referenced by DoMaintenance().

◆ Clear()

void CNetFulfilledRequestManager::Clear ( )

Definition at line 76 of file netfulfilledman.cpp.

References cs_mapFulfilledRequests, LOCK, and mapFulfilledRequests.

◆ DoMaintenance()

void CNetFulfilledRequestManager::DoMaintenance ( )

Definition at line 89 of file netfulfilledman.cpp.

References CheckAndRemove(), and ShutdownRequested().

Referenced by AppInitMain().

◆ HasFulfilledRequest()

bool CNetFulfilledRequestManager::HasFulfilledRequest ( const CService addr,
const std::string &  strRequest 
)

◆ RemoveAllFulfilledRequests()

void CNetFulfilledRequestManager::RemoveAllFulfilledRequests ( const CService addr)

◆ RemoveFulfilledRequest()

void CNetFulfilledRequestManager::RemoveFulfilledRequest ( const CService addr,
const std::string &  strRequest 
)
private

◆ SerializationOp()

template<typename Stream , typename Operation >
void CNetFulfilledRequestManager::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 35 of file netfulfilledman.h.

References cs_mapFulfilledRequests, LOCK, mapFulfilledRequests, and READWRITE.

◆ ToString()

std::string CNetFulfilledRequestManager::ToString ( ) const

Definition at line 82 of file netfulfilledman.cpp.

References mapFulfilledRequests.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CNetFulfilledRequestManager::ADD_SERIALIZE_METHODS

Definition at line 32 of file netfulfilledman.h.

◆ cs_mapFulfilledRequests

CCriticalSection CNetFulfilledRequestManager::cs_mapFulfilledRequests
private

◆ mapFulfilledRequests

fulfilledreqmap_t CNetFulfilledRequestManager::mapFulfilledRequests
private

The documentation for this class was generated from the following files:
Released under the MIT license