Quantum Dice QEaaS API 1.0.5
 
Loading...
Searching...
No Matches
Qdremrand Class Reference

C++ wrapper class for the QDREMRAND functionality. More...

#include <qdremrand.h>

Public Member Functions

 Qdremrand ()
 
int connect (const char *rem_host, const char *rem_port, const char *peer_cert_file, const char *my_chain_file, const char *my_key_file)
 
ssize_t getrand (unsigned char *randbuf, size_t randlen)
 
 ~Qdremrand ()
 

Detailed Description

C++ wrapper class for the QDREMRAND functionality.

This class encapsulates the C-style QDREMRAND structure and its associated functions, providing an object-oriented interface for interacting with the Quantum Dice entropy server. It manages the lifecycle of the QDREMRAND structure, including initialization, connection, random data retrieval, and cleanup.

Usage of this class typically involves:

  1. Creating an instance of QDREMRAND
  2. Connecting to a Quantum Dice randomness server using the connect() method
  3. Retrieving random data using the getrand() or getrand_ce() methods
  4. The destructor automatically cleans up resources when the object goes out of scope
Note
This class is not copyable or movable to ensure proper resource management.

Constructor & Destructor Documentation

◆ Qdremrand()

Qdremrand ( )
inline

◆ ~Qdremrand()

~Qdremrand ( )
inline

Member Function Documentation

◆ connect()

int connect ( const char * rem_host,
const char * rem_port,
const char * peer_cert_file,
const char * my_chain_file,
const char * my_key_file )
inline

◆ getrand()

ssize_t getrand ( unsigned char * randbuf,
size_t randlen )
inline

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