#ifndef NBD_NBTPD_HANDLERS_H #define NBD_NBTPD_HANDLERS_H #include #include "packet.h" #define NBD_NBTPD_ARGS_PATH_MAX 768 #define NBD_NBTPD_ARGS_MODE_MAX 32 typedef struct { char path[NBD_NBTPD_ARGS_PATH_MAX]; char mode[NBD_NBTPD_ARGS_MODE_MAX]; nbd_tftp_ecode err; struct sockaddr_in client; } nbd_nbtpd_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