Udpsocket (#507)

* udp socket refactor from reuss: closing socket before throwing for bind error in constructor, closing socket at destructor and not at shutdown to allow other thread to read with a -1, so the object can still be accessed

* check for size of packet for every detector

* nullptr to unique ptr to call its destructor, when deallocating resources moved out of shutdown

* minor
This commit is contained in:
Dhanya Thattil
2022-08-11 09:14:29 +02:00
committed by GitHub
parent 07ff28e9e5
commit e0207cfac1
4 changed files with 15 additions and 38 deletions

View File

@ -23,10 +23,6 @@ class UdpRxSocket {
void setBufferSize(int size);
ssize_t getPacketSize() const noexcept;
void Shutdown();
// Only for backwards compatibility, this drops the EIGER small pkt, may be
// removed
ssize_t ReceiveDataOnly(char *dst) noexcept;
};
} // namespace sls