AARE
Data analysis library for PSI hybrid detectors
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Static Protected Attributes
aare::ZmqSocket Class Reference

#include <ZmqSocket.hpp>

Inheritance diagram for aare::ZmqSocket:
aare::ZmqSocketReceiver aare::ZmqSocketSender

Public Member Functions

 ZmqSocket ()=default
 
 ~ZmqSocket ()
 
 ZmqSocket (const ZmqSocket &)=delete
 
ZmqSocket operator= (const ZmqSocket &)=delete
 
 ZmqSocket (ZmqSocket &&)=delete
 
void disconnect ()
 
void set_zmq_hwm (int hwm)
 
void set_timeout_ms (int n)
 
void set_potential_frame_size (size_t size)
 

Protected Attributes

void * m_context {nullptr}
 
void * m_socket {nullptr}
 
std::string m_endpoint
 
int m_zmq_hwm {1000}
 
int m_timeout_ms {1000}
 
size_t m_potential_frame_size {1024 * 1024}
 
char * m_header_buffer = new char[m_max_header_size]
 

Static Protected Attributes

static constexpr size_t m_max_header_size = 1024
 

Constructor & Destructor Documentation

◆ ZmqSocket() [1/3]

aare::ZmqSocket::ZmqSocket ( )
default

◆ ~ZmqSocket()

aare::ZmqSocket::~ZmqSocket ( )

◆ ZmqSocket() [2/3]

aare::ZmqSocket::ZmqSocket ( const ZmqSocket )
delete

◆ ZmqSocket() [3/3]

aare::ZmqSocket::ZmqSocket ( ZmqSocket &&  )
delete

Member Function Documentation

◆ disconnect()

void aare::ZmqSocket::disconnect ( )

◆ operator=()

ZmqSocket aare::ZmqSocket::operator= ( const ZmqSocket )
delete

◆ set_potential_frame_size()

void aare::ZmqSocket::set_potential_frame_size ( size_t  size)

◆ set_timeout_ms()

void aare::ZmqSocket::set_timeout_ms ( int  n)

◆ set_zmq_hwm()

void aare::ZmqSocket::set_zmq_hwm ( int  hwm)

Field Documentation

◆ m_context

void* aare::ZmqSocket::m_context {nullptr}
protected

◆ m_endpoint

std::string aare::ZmqSocket::m_endpoint
protected

◆ m_header_buffer

char* aare::ZmqSocket::m_header_buffer = new char[m_max_header_size]
protected

◆ m_max_header_size

constexpr size_t aare::ZmqSocket::m_max_header_size = 1024
staticconstexprprotected

◆ m_potential_frame_size

size_t aare::ZmqSocket::m_potential_frame_size {1024 * 1024}
protected

◆ m_socket

void* aare::ZmqSocket::m_socket {nullptr}
protected

◆ m_timeout_ms

int aare::ZmqSocket::m_timeout_ms {1000}
protected

◆ m_zmq_hwm

int aare::ZmqSocket::m_zmq_hwm {1000}
protected

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