tdaq-develop-2025-02-12
|
Public Member Functions | |
TransceiverSocket (std::string IPAddress, unsigned int port=0) | |
int | acknowledge (const std::string &buffer, bool verbose=false) |
responds to last receive location More... | |
std::string | sendAndReceive (Socket &toSocket, const std::string &sendBuffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false) |
![]() | |
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) |
![]() | |
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 () |
![]() | |
ReceiverSocket (std::string IPAddress, unsigned int port=0) | |
int | receive (std::string &buffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false) |
int | receive (std::vector< uint32_t > &buffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false) |
int | receive (std::string &buffer, unsigned long &fromIPAddress, unsigned short &fromPort, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false) |
int | receive (std::vector< uint32_t > &buffer, unsigned long &fromIPAddress, unsigned short &fromPort, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false) |
std::string | getLastIncomingIPAddress (void) |
unsigned short | getLastIncomingPort (void) |
Additional Inherited Members | |
![]() | |
enum | { maxSocketSize_ = 65536 , defaultSocketReceiveSize_ = 0x10000 } |
enum | { FirstSocketPort = 10000 , LastSocketPort = 15000 } |
![]() | |
Socket (void) | |
protected constructor | |
![]() | |
ReceiverSocket (void) | |
protected constructor | |
![]() | |
struct sockaddr_in | socketAddress_ |
int | socketNumber_ |
std::string | IPAddress_ |
unsigned int | requestedPort_ |
Definition at line 11 of file TransceiverSocket.h.
int TransceiverSocket::acknowledge | ( | const std::string & | buffer, |
bool | verbose = false |
||
) |
responds to last receive location
returns 0 on success
Definition at line 27 of file TransceiverSocket.cc.