diff options
author | Ren Kararou <[email protected]> | 2024-12-31 02:18:40 -0600 |
---|---|---|
committer | Ren Kararou <[email protected]> | 2024-12-31 02:18:40 -0600 |
commit | f6b4ac41eec72a25c703c63f43bd1104049a405c (patch) | |
tree | 6fc60798944ac010c22ede4e2e9e33d6b97d39e0 /inc/handlers.h | |
parent | 810de0a90148d5dc7fe5919949220a00d14f6447 (diff) | |
download | nbtpd-f6b4ac41eec72a25c703c63f43bd1104049a405c.tar.gz nbtpd-f6b4ac41eec72a25c703c63f43bd1104049a405c.tar.bz2 nbtpd-f6b4ac41eec72a25c703c63f43bd1104049a405c.zip |
complete setup code; complete initial packet handling
Diffstat (limited to 'inc/handlers.h')
-rw-r--r-- | inc/handlers.h | 10 |
1 files changed, 7 insertions, 3 deletions
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 |