#pragma once #include "global.h" struct conn_data{ int fd; i64 bufsz,buflen; char *buffer; i64 protversion; // -1 if not negotiated yet i64 userid; // -1 if not logged in }; 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