EUDAQ
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
eudaq::TransportServer Class Referenceabstract
Inheritance diagram for eudaq::TransportServer:
eudaq::TransportBase eudaq::NULLServer eudaq::TCPServer

Public Member Functions

virtual std::string ConnectionString () const =0
 
size_t NumConnections () const
 
const ConnectionInfoGetConnection (size_t i) const
 
- Public Member Functions inherited from eudaq::TransportBase
virtual void SendPacket (const unsigned char *data, size_t len, const ConnectionInfo &=ConnectionInfo::ALL, bool duringconnect=false)=0
 
void SendPacket (const std::string &data, const ConnectionInfo &inf=ConnectionInfo::ALL, bool duringconnect=false)
 
void SendPacket (const char *str, const ConnectionInfo &inf=ConnectionInfo::ALL, bool duringconnect=false)
 
void SendPacket (const BufferSerializer &t, const ConnectionInfo &inf=ConnectionInfo::ALL, bool duringconnect=false)
 
virtual void Close (const ConnectionInfo &)
 
virtual void ProcessEvents (int timeout)=0
 
void Process (int timeout=-1)
 
bool ReceivePacket (std::string *packet, int timeout=-1, const ConnectionInfo &=ConnectionInfo::ALL)
 
bool SendReceivePacket (const std::string &sendpacket, std::string *recpacket, const ConnectionInfo &connection, int timeout=-1)
 
template<typename T >
SendReceivePacket (const std::string &packet, const ConnectionInfo &connection, int timeout=-1)
 
void SetCallback (const TransportCallback &)
 
virtual bool IsNull () const
 

Protected Attributes

std::vector< std::shared_ptr
< ConnectionInfo > > 
m_conn
 
- Protected Attributes inherited from eudaq::TransportBase
std::queue< TransportEventm_events
 A buffer to queue up events until they are handled.
 
TransportCallback m_callback
 The callback function to invoke on a transport event.
 
Mutex m_mutex
 

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