From f6b4ac41eec72a25c703c63f43bd1104049a405c Mon Sep 17 00:00:00 2001 From: Ren Kararou Date: Tue, 31 Dec 2024 02:18:40 -0600 Subject: complete setup code; complete initial packet handling --- inc/handlers.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'inc/handlers.h') diff --git a/inc/handlers.h b/inc/handlers.h index 9f1988f..5aa0733 100644 --- a/inc/handlers.h +++ b/inc/handlers.h @@ -7,11 +7,15 @@ typedef struct { char path[768]; char mode[32]; + int err; struct sockaddr_in client; } nbd_nbtpd_args; -void read_req_resp(nbd_nbtpd_args args); -void write_req_resp(nbd_nbtpd_args args); -void nbd_nbtpd_resp_error(nbd_nbtpd_args args); +/// WARNING: use this only if you know what you are doing +void *read_req_resp(void *args); +/// WARNING: use this only if you know what you are doing +void *write_req_resp(void *args); +/// WARNING: use this only if you know what you are doing +void *nbd_nbtpd_resp_error(void *args); #endif -- cgit 1.4.1-2-gfad0