tdaq-develop-2025-02-12
ots::UDPDataStreamerBase Class Reference
Inheritance diagram for ots::UDPDataStreamerBase:
ots::TransmitterSocket ots::Socket ots::UDPDataStreamerConsumer

Public Member Functions

 UDPDataStreamerBase (std::string IPAddress, unsigned int port, std::string toIPAddress, unsigned int toPort)
 
int send (const std::string &buffer)
 
int send (const std::vector< uint32_t > &buffer)
 
- Public Member Functions inherited from ots::TransmitterSocket
 TransmitterSocket (const std::string &IPAddress, unsigned int port=0)
 
int send (Socket &toSocket, const std::string &buffer, bool verbose=false)
 
int send (Socket &toSocket, const std::vector< uint32_t > &buffer, bool verbose=false)
 
int send (Socket &toSocket, const std::vector< uint16_t > &buffer, bool verbose=false)
 
- Public Member Functions inherited from ots::Socket
 Socket (const std::string &IPAddress, unsigned int port=0)
 
virtual void initialize (unsigned int socketReceiveBufferSize=defaultSocketReceiveSize_)
 
const struct sockaddr_in & getSocketAddress (void)
 
const std::string & getIPAddress ()
 
uint16_t getPort ()
 

Protected Attributes

ReceiverSocket streamToSocket_
 
- Protected Attributes inherited from ots::Socket
struct sockaddr_in socketAddress_
 
int socketNumber_
 
std::string IPAddress_
 
unsigned int requestedPort_
 

Additional Inherited Members

- Protected Types inherited from ots::Socket
enum  { maxSocketSize_ = 65536 , defaultSocketReceiveSize_ = 0x10000 }
 
enum  { FirstSocketPort = 10000 , LastSocketPort = 15000 }
 
- Protected Member Functions inherited from ots::Socket
 Socket (void)
 protected constructor
 

Detailed Description

Definition at line 10 of file UDPDataStreamerBase.h.

Constructor & Destructor Documentation

◆ UDPDataStreamerBase()

UDPDataStreamerBase::UDPDataStreamerBase ( std::string  IPAddress,
unsigned int  port,
std::string  toIPAddress,
unsigned int  toPort 
)

NOTE: if you want to inherit from this one you MUST initialize the Socket Constructor that is commented out here in your class

Definition at line 11 of file UDPDataStreamerBase.cc.


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