Use recvmmsg for UDP socket
This commit is contained in:
@@ -100,15 +100,15 @@ public:
|
||||
|
||||
class UDP : public fd_base
|
||||
{
|
||||
std::shared_ptr<uint8_t[]> buffer;
|
||||
std::vector<std::span<uint8_t>> messages;
|
||||
|
||||
public:
|
||||
UDP();
|
||||
explicit UDP(int fd);
|
||||
|
||||
deserialization_packet receive_raw();
|
||||
deserialization_packet receive_pending()
|
||||
{
|
||||
return {};
|
||||
};
|
||||
deserialization_packet receive_pending();
|
||||
std::pair<xrt::drivers::wivrn::deserialization_packet, sockaddr_in6> receive_from_raw();
|
||||
void send_raw(const std::vector<uint8_t> & data);
|
||||
void send_raw(const std::vector<std::span<uint8_t>> & data);
|
||||
|
||||
Reference in New Issue
Block a user