1 #ifndef TCP_EVENT_STREAMER_H
2 #define TCP_EVENT_STREAMER_H
15 virtual void advance(
int offset) = 0;
16 virtual bool done()
const = 0;
80 Poco::Net::TCPServerConnection*
createConnection(
const Poco::Net::StreamSocket& socket)
~TCPEventStreamConnection()
virtual void advance(int offset)=0
TCPEventBufferT(const TCPEventBufferT &eb)
TCPEventBufferT(T *b, uint32_t n)
void allEventCallback(const DAEEventHeader *head, const DetectorEvent32 *det_ev, int n, int event_source_id, const int *mapping)
unsigned char * m_bytes
original data to send
Poco::Net::TCPServer * m_srv
virtual const unsigned char * currentBytes() const
virtual void advance(int offset)
virtual int numBytes() const =0
std::list< TCPStreamEventDataNeutron * > m_buffers
virtual TCPEventBufferT & operator=(const TCPEventBufferT &eb)
TCPEventBufferT()
currrent byte offset
virtual bool done() const =0
Poco::Net::TCPServerConnection * createConnection(const Poco::Net::StreamSocket &socket)
Poco::SharedPtr< T > m_ptr
total number of bytes to send
virtual TCPEventBuffer & operator=(const TCPEventBuffer &eb)=0
A factory for TimeServerConnection.
uint32_t m_num_bytes
current position in m_bytes stream
virtual bool done() const
virtual ~TCPEventBuffer()
TCPEventStreamConnection(const Poco::Net::StreamSocket &s, EventStore &es, const CRPTProxy &crpt)
static uint32_t MAX_BYTES_BACKLOG
Poco::Net::ServerSocket * m_svs
virtual int numBytes() const
virtual const unsigned char * currentBytes() const =0
TCPEventStreamConnectionFactory(EventStore &es, const CRPTProxy &crpt)
TCPEventStreamer(EventStore &es, const CRPTProxy &crpt)
LONGLONG m_discarded_events
virtual int numBytesRemaining() const =0
virtual int numBytesRemaining() const