ICP  1
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
TCPEventStreamConnection Class Reference

#include <TCPEventStreamer.h>

Inheritance diagram for TCPEventStreamConnection:
Inheritance graph

Public Member Functions

 TCPEventStreamConnection (const Poco::Net::StreamSocket &s, EventStore &es, const CRPTProxy &crpt)
 
 ~TCPEventStreamConnection ()
 
void run ()
 
void allEventCallback (const DAEEventHeader *head, const DetectorEvent32 *det_ev, int n, int event_source_id, const int *mapping)
 

Private Attributes

EventStorem_es
 
std::list
< TCPStreamEventDataNeutron * > 
m_buffers
 
LONGLONG m_discarded_events
 
bool m_discarding_events
 
Poco::RWLock m_lock
 
uint32_t m_bytes_backlog
 
const CRPTProxym_crpt
 
- Private Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Static Private Attributes

static uint32_t MAX_BYTES_BACKLOG = 10000
 

Additional Inherited Members

- Private Member Functions inherited from ISIS::Base
 Base (const std::string &logger_name="UNKNOWN")
 
void setLoggerName (const std::string &logger_name)
 
virtual ~Base ()
 
virtual std::string loggingPrefix () const
 
void setThisLoggerLevel (int level)
 
- Static Private Member Functions inherited from ISIS::Base
static void setAllLoggerLevel (int level)
 

Detailed Description

Definition at line 51 of file TCPEventStreamer.h.

Constructor & Destructor Documentation

TCPEventStreamConnection::TCPEventStreamConnection ( const Poco::Net::StreamSocket &  s,
EventStore es,
const CRPTProxy crpt 
)

Definition at line 7 of file TCPEventStreamer.cpp.

References ISIS::Base::setLoggerName().

TCPEventStreamConnection::~TCPEventStreamConnection ( )

Definition at line 12 of file TCPEventStreamer.cpp.

References LOGSTR_INFORMATION, m_buffers, and m_bytes_backlog.

Member Function Documentation

void TCPEventStreamConnection::allEventCallback ( const DAEEventHeader head,
const DetectorEvent32 det_ev,
int  n,
int  event_source_id,
const int *  mapping 
)
void TCPEventStreamConnection::run ( )

Member Data Documentation

std::list<TCPStreamEventDataNeutron*> TCPEventStreamConnection::m_buffers
private

Definition at line 55 of file TCPEventStreamer.h.

Referenced by allEventCallback(), run(), and ~TCPEventStreamConnection().

uint32_t TCPEventStreamConnection::m_bytes_backlog
private

Definition at line 59 of file TCPEventStreamer.h.

Referenced by ~TCPEventStreamConnection().

const CRPTProxy& TCPEventStreamConnection::m_crpt
private

Definition at line 60 of file TCPEventStreamer.h.

Referenced by allEventCallback(), and run().

LONGLONG TCPEventStreamConnection::m_discarded_events
private

Definition at line 56 of file TCPEventStreamer.h.

Referenced by allEventCallback(), and run().

bool TCPEventStreamConnection::m_discarding_events
private

Definition at line 57 of file TCPEventStreamer.h.

Referenced by allEventCallback().

EventStore& TCPEventStreamConnection::m_es
private

Definition at line 54 of file TCPEventStreamer.h.

Referenced by run().

Poco::RWLock TCPEventStreamConnection::m_lock
private

Definition at line 58 of file TCPEventStreamer.h.

Referenced by allEventCallback(), and run().

uint32_t TCPEventStreamConnection::MAX_BYTES_BACKLOG = 10000
staticprivate

Definition at line 61 of file TCPEventStreamer.h.


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