Raven Core  3.0.0
P2P Digital Currency
Classes | Enumerations | Functions | Variables
messages.h File Reference
#include <uint256.h>
#include <serialize.h>
Include dependency graph for messages.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMessage
 
class  CZMQMessage
 

Enumerations

enum  MessageStatus {
  MessageStatus::READ = 0, MessageStatus::UNREAD = 1, MessageStatus::EXPIRED = 2, MessageStatus::SPAM = 3,
  MessageStatus::HIDDEN = 4, MessageStatus::ORPHAN = 5, MessageStatus::MSG_ERROR = 6
}
 

Functions

size_t GetMessageDirtyCacheSize ()
 
bool IsChannelSubscribed (const std::string &name)
 
bool GetMessage (const COutPoint &out, CMessage &message)
 
void AddChannel (const std::string &name)
 
void RemoveChannel (const std::string &name)
 
void AddMessage (const CMessage &message)
 
void RemoveMessage (const CMessage &message)
 
void RemoveMessage (const COutPoint &out)
 
void OrphanMessage (const CMessage &message)
 
void OrphanMessage (const COutPoint &out)
 
bool ScanForMessageChannels (std::string &strError)
 
bool IsAddressSeen (const std::string &address)
 
void AddAddressSeen (const std::string &address)
 
int8_t IntFromMessageStatus (MessageStatus status)
 
MessageStatus MessageStatusFromInt (int8_t nStatus)
 
std::string MessageStatusToString (MessageStatus status)
 

Variables

std::set< COutPointsetDirtyMessagesRemove
 
std::map< COutPoint, CMessagemapDirtyMessagesAdd
 
std::map< COutPoint, CMessagemapDirtyMessagesOrphaned
 
std::set< std::string > setDirtyChannelsAdd
 
std::set< std::string > setDirtyChannelsRemove
 
std::set< std::string > setSubscribedChannelsAskedForFalse
 
std::set< std::string > setDirtySeenAddressAdd
 
std::set< std::string > setAddressAskedForFalse
 
CCriticalSection cs_messaging
 

Enumeration Type Documentation

◆ MessageStatus

enum MessageStatus
strong
Enumerator
READ 
UNREAD 
EXPIRED 
SPAM 
HIDDEN 
ORPHAN 
MSG_ERROR 

Definition at line 53 of file messages.h.

Function Documentation

◆ AddAddressSeen()

void AddAddressSeen ( const std::string &  address)

Definition at line 293 of file messages.cpp.

Here is the caller graph for this function:

◆ AddChannel()

void AddChannel ( const std::string &  name)

Definition at line 130 of file messages.cpp.

Here is the caller graph for this function:

◆ AddMessage()

void AddMessage ( const CMessage message)

Definition at line 149 of file messages.cpp.

◆ GetMessage()

bool GetMessage ( const COutPoint out,
CMessage message 
)

Definition at line 100 of file messages.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMessageDirtyCacheSize()

size_t GetMessageDirtyCacheSize ( )

Definition at line 299 of file messages.cpp.

◆ IntFromMessageStatus()

int8_t IntFromMessageStatus ( MessageStatus  status)

Definition at line 29 of file messages.cpp.

Here is the caller graph for this function:

◆ IsAddressSeen()

bool IsAddressSeen ( const std::string &  address)

Definition at line 267 of file messages.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsChannelSubscribed()

bool IsChannelSubscribed ( const std::string &  name)

Definition at line 67 of file messages.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MessageStatusFromInt()

MessageStatus MessageStatusFromInt ( int8_t  nStatus)

Definition at line 34 of file messages.cpp.

Here is the caller graph for this function:

◆ MessageStatusToString()

std::string MessageStatusToString ( MessageStatus  status)

Definition at line 39 of file messages.cpp.

◆ OrphanMessage() [1/2]

void OrphanMessage ( const CMessage message)

Definition at line 181 of file messages.cpp.

◆ OrphanMessage() [2/2]

void OrphanMessage ( const COutPoint out)

Definition at line 174 of file messages.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveChannel()

void RemoveChannel ( const std::string &  name)

Definition at line 140 of file messages.cpp.

Here is the caller graph for this function:

◆ RemoveMessage() [1/2]

void RemoveMessage ( const CMessage message)

Definition at line 159 of file messages.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveMessage() [2/2]

void RemoveMessage ( const COutPoint out)

Definition at line 164 of file messages.cpp.

◆ ScanForMessageChannels()

bool ScanForMessageChannels ( std::string &  strError)

Definition at line 189 of file messages.cpp.

Here is the call graph for this function:

Variable Documentation

◆ cs_messaging

CCriticalSection cs_messaging

Definition at line 26 of file messages.cpp.

◆ mapDirtyMessagesAdd

std::map<COutPoint, CMessage> mapDirtyMessagesAdd

Definition at line 16 of file messages.cpp.

◆ mapDirtyMessagesOrphaned

std::map<COutPoint, CMessage> mapDirtyMessagesOrphaned

Definition at line 17 of file messages.cpp.

◆ setAddressAskedForFalse

std::set<std::string> setAddressAskedForFalse

Definition at line 24 of file messages.cpp.

◆ setDirtyChannelsAdd

std::set<std::string> setDirtyChannelsAdd

Definition at line 19 of file messages.cpp.

◆ setDirtyChannelsRemove

std::set<std::string> setDirtyChannelsRemove

Definition at line 20 of file messages.cpp.

◆ setDirtyMessagesRemove

std::set<COutPoint> setDirtyMessagesRemove

Definition at line 15 of file messages.cpp.

◆ setDirtySeenAddressAdd

std::set<std::string> setDirtySeenAddressAdd

Definition at line 23 of file messages.cpp.

◆ setSubscribedChannelsAskedForFalse

std::set<std::string> setSubscribedChannelsAskedForFalse

Definition at line 21 of file messages.cpp.