From e75d6f6b8f4512a5bbfecbfa8c17f0bb687e3d55 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Tue, 24 Dec 2024 21:11:06 -0800 Subject: first commit --- include/protocol.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/protocol.h (limited to 'include/protocol.h') diff --git a/include/protocol.h b/include/protocol.h new file mode 100644 index 0000000..7b5eb07 --- /dev/null +++ b/include/protocol.h @@ -0,0 +1,14 @@ +#ifndef PROTOCOL_H +#define PROTOCOL_H + +#define MAX_OP_LEN 10 +#define MAX_ARG_LEN 50 +#define MAX_ARGS 5 +#define MAX_BUFSIZE 4096 +#define DEFAULT_PORT 11111 +#define MAX_CONNECTIONS 32768 +#define DEFAULT_TIMEOUT 6000 +#define USERNAME_SIZE 30 +#define KEYLEN 512 + +#endif -- cgit