From cf69a83b026cd9c9ca7e15cd689256690e817ef3 Mon Sep 17 00:00:00 2001 From: jewelcodes Date: Sat, 7 Sep 2024 17:46:24 -0400 Subject: [PATCH] ipc: track lengths of data sent via sockets --- src/include/kernel/socket.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/kernel/socket.h b/src/include/kernel/socket.h index 2772c58..6dca555 100644 --- a/src/include/kernel/socket.h +++ b/src/include/kernel/socket.h @@ -54,6 +54,7 @@ typedef struct SocketDescriptor { int type, protocol, backlogMax, backlogCount; int inboundCount, outboundCount; void **inbound, **outbound; + size_t *inboundLen, *outboundLen; struct SocketDescriptor **backlog; // for incoming connections via connect() struct SocketDescriptor *peer; // for peer-to-peer connections } SocketDescriptor;