HAL_Linux: use SocketAPM_native
This commit is contained in:
parent
8aaedccacc
commit
34c737de36
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user