Diarkis C++Client Library API Document
Diarkis::DiarkisP2PEventArgs Struct Reference

Arguments of the callback event called when start P2P connection. More...

#include <eventArgs.h>

Public Member Functions

bool IsSuccess () const
 Get whether the command was successful or not. More...
 
const StdVector< std::shared_ptr< P2PClientAddr > > & GetAddresses () const
 Get addresses of peers. More...
 
bool IsEncryptionEnabled () const
 
const StdVector< uint8_t > & EncryptionKey () const
 
const StdVector< uint8_t > & EncryptionIv () const
 
const StdVector< uint8_t > & EncryptionMkey () const
 
 DiarkisP2PEventArgs (bool success_, StdVector< std::shared_ptr< P2PClientAddr >> &addresses_, bool bEncryption_, StdVector< uint8_t > &key_, StdVector< uint8_t > &iv_, StdVector< uint8_t > &mkey_)
 
 DiarkisP2PEventArgs (DiarkisP2PEventArgs &)=delete
 
 DiarkisP2PEventArgs (DiarkisP2PEventArgs &&)=delete
 

Detailed Description

Arguments of the callback event called when start P2P connection.

Constructor & Destructor Documentation

◆ DiarkisP2PEventArgs() [1/3]

Diarkis::DiarkisP2PEventArgs::DiarkisP2PEventArgs ( bool  success_,
StdVector< std::shared_ptr< P2PClientAddr >> &  addresses_,
bool  bEncryption_,
StdVector< uint8_t > &  key_,
StdVector< uint8_t > &  iv_,
StdVector< uint8_t > &  mkey_ 
)

◆ DiarkisP2PEventArgs() [2/3]

Diarkis::DiarkisP2PEventArgs::DiarkisP2PEventArgs ( DiarkisP2PEventArgs )
delete

◆ DiarkisP2PEventArgs() [3/3]

Diarkis::DiarkisP2PEventArgs::DiarkisP2PEventArgs ( DiarkisP2PEventArgs &&  )
delete

Member Function Documentation

◆ IsSuccess()

bool Diarkis::DiarkisP2PEventArgs::IsSuccess ( ) const

Get whether the command was successful or not.

true=success false=failure

Here is the caller graph for this function:

◆ GetAddresses()

const StdVector<std::shared_ptr<P2PClientAddr> >& Diarkis::DiarkisP2PEventArgs::GetAddresses ( ) const

Get addresses of peers.

Here is the caller graph for this function:

◆ IsEncryptionEnabled()

bool Diarkis::DiarkisP2PEventArgs::IsEncryptionEnabled ( ) const
Here is the caller graph for this function:

◆ EncryptionKey()

const StdVector<uint8_t>& Diarkis::DiarkisP2PEventArgs::EncryptionKey ( ) const
Here is the caller graph for this function:

◆ EncryptionIv()

const StdVector<uint8_t>& Diarkis::DiarkisP2PEventArgs::EncryptionIv ( ) const
Here is the caller graph for this function:

◆ EncryptionMkey()

const StdVector<uint8_t>& Diarkis::DiarkisP2PEventArgs::EncryptionMkey ( ) const
Here is the caller graph for this function:

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