mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
format
This commit is contained in:
parent
53a3656d5e
commit
f42e87e37f
@ -97,12 +97,7 @@ class UdpRxSocket {
|
|||||||
const char *LastPacket() const noexcept { return buff.get(); }
|
const char *LastPacket() const noexcept { return buff.get(); }
|
||||||
constexpr ssize_t getPacketSize() const noexcept { return packet_size; }
|
constexpr ssize_t getPacketSize() const noexcept { return packet_size; }
|
||||||
|
|
||||||
bool ReceivePacket() noexcept {
|
bool ReceivePacket() noexcept { return ReceivePacket(buff.get()); }
|
||||||
return ReceivePacket(buff.get());
|
|
||||||
// auto bytes_received =
|
|
||||||
// recvfrom(sockfd, buff.get(), packet_size, 0, nullptr, nullptr);
|
|
||||||
// return bytes_received == packet_size;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ReceivePacket(char *dst) noexcept {
|
bool ReceivePacket(char *dst) noexcept {
|
||||||
auto bytes_received =
|
auto bytes_received =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user