16 #ifndef MBS_ClientTransport
17 #define MBS_ClientTransport
19 #ifndef DABC_SocketThread
27 #ifndef MBS_MbsTypeDefs
Reference on memory from memory pool.
@ evntSocketLast
from this event number one can add more socket system events
Socket addon for handling I/O events.
Generic addon for dabc::Worker.
Client transport for different kinds of MBS server.
bool IsDabcEnabledOnMbsSide()
void MakeCallback(unsigned sz)
ClientTransport(int fd, int kind)
virtual unsigned Read_Size()
Defines required buffer size for next operation.
virtual unsigned Read_Complete(dabc::Buffer &buf)
Complete reading of the buffer from source,.
virtual void OnSocketError(int err, const std::string &info)
Generic error handler.
virtual dabc::WorkerAddon * Read_GetAddon()
Returns addon, provided by data input If specified, supposed that I/O object is double-deriver from D...
bool fSpanning
when true, MBS could deliver spanned events
virtual void OnSendCompleted()
Method called when send operation is completed.
dabc::Buffer fSpanBuffer
buffer rest, which should be copied and merged into next buffer
virtual unsigned Read_Start(dabc::Buffer &buf)
Prepare buffer for reading (if required)
mbs::BufferHeader fHeader
virtual double Read_Timeout()
Provide timeout value.
unsigned ReadBufferSize()
virtual double ProcessTimeout(double last_diff)
mbs::TransportInfo fServInfo
virtual ~ClientTransport()
virtual void OnThreadAssigned()
virtual void OnRecvCompleted()
Method called when receive operation is completed.
virtual void ProcessEvent(const dabc::EventId &)
virtual void ObjectCleanup()
User method to cleanup object content before it will be destroyed Main motivation is to release any r...
Support for MBS - standard GSI DAQ.
Event structure, exchanged between DABC threads.
MBS server info structure.