summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mpu.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mpu.c b/src/mpu.c
index 9659c50..1df1559 100644
--- a/src/mpu.c
+++ b/src/mpu.c
@@ -60,9 +60,6 @@ static inline uint64_t get_time_now(void) {
+ ((uint64_t) ts.tv_nsec / 1000000ULL);
}
-// TODO: Zero-copy send() requiring the user to reserve space for the header.
-// Perhaps consider MSG_MORE for sending header & payload separately or sendmsg()
-
int mpu_send(mpu_ctx_t* ctx, const uint8_t* data, size_t len) {
if (!ctx || !data || len == 0 || len > MPU_MTU - sizeof(mpu_hdr_t)) {
errno = EINVAL;
@@ -93,9 +90,6 @@ int mpu_send(mpu_ctx_t* ctx, const uint8_t* data, size_t len) {
return 0;
}
-// TODO: Zero-copy recv() into reorder buffer slot, requiring the user to provide a callback
-// for processing received packets, instead of copying into a user buffer.
-
ssize_t mpu_recv(mpu_ctx_t* ctx, uint8_t* data, size_t len) {
if (!ctx || !data || !len) {
errno = EINVAL;