mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 01:20:34 +08:00
Send RTPS header and payload in one stream
This avoids assembling the header and payload on the receiver side
This commit is contained in:
@@ -46,6 +46,8 @@ public:
|
||||
virtual uint8_t close() {return 0;}
|
||||
ssize_t read(uint8_t *topic_ID, char out_buffer[], size_t buffer_len);
|
||||
ssize_t write(const uint8_t topic_ID, char buffer[], size_t length);
|
||||
/* Get the Length of struct Header to make headroom for the size of struct Header alongwith payload*/
|
||||
ssize_t get_header_length();
|
||||
|
||||
protected:
|
||||
virtual ssize_t node_read(void *buffer, size_t len) = 0;
|
||||
|
||||
Reference in New Issue
Block a user