diff options
Diffstat (limited to 'conn_data.h')
-rw-r--r-- | conn_data.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/conn_data.h b/conn_data.h new file mode 100644 index 0000000..871af07 --- /dev/null +++ b/conn_data.h @@ -0,0 +1,13 @@ +#pragma once + +#include "global.h" + + +struct conn_data{ + int fd; + i64 bufsz,buflen; + char *buffer; +}; + +void conn_data_init(struct conn_data *data,int fd); // Initialises buffers +void conn_data_nullify(struct conn_data *data); // Frees buffers but not the data itself |