HAL_Linux: use SocketAPM_native

This commit is contained in:
Andrew Tridgell 2023-12-26 13:41:12 +11:00
parent 8aaedccacc
commit 34c737de36
4 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ private:
bool _check_hdr(ssize_t len);
SocketAPM _socket{true};
SocketAPM_native _socket{true};
uint64_t _last_usec = 0;
uint16_t _last_seq = 0;
union packet _packet;

View File

@ -15,7 +15,7 @@ public:
void init() override;
void _timer_tick(void) override;
private:
SocketAPM _socket{true};
SocketAPM_native _socket{true};
uint16_t _port;
struct rc_udp_packet_v3 _buf;
uint64_t _last_buf_ts;

View File

@ -20,8 +20,8 @@ public:
virtual ssize_t read(uint8_t *buf, uint16_t n) override;
private:
SocketAPM listener{false};
SocketAPM *sock = nullptr;
SocketAPM_native listener{false};
SocketAPM_native *sock = nullptr;
const char *_ip;
uint16_t _port;
bool _wait;

View File

@ -15,7 +15,7 @@ public:
virtual ssize_t write(const uint8_t *buf, uint16_t n) override;
virtual ssize_t read(uint8_t *buf, uint16_t n) override;
private:
SocketAPM socket{true};
SocketAPM_native socket{true};
const char *_ip;
uint16_t _port;
bool _bcast;