aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/config.h b/config.h
index 039367d..626ccad 100644
--- a/config.h
+++ b/config.h
@@ -1,20 +1,11 @@
-#include <stdarg.h>
-#include <stdio.h>
-#include <unistd.h>
-
#define PORT 9983
// max size for a message sent
#define BUF_MAX 255
// max length of messages
#define MSG_MAX 256
+// max length of author field
+#define MSG_AUTHOR_LEN 12
+// max length of timestamp field
+#define MSG_TIMESTAMP_LEN 9
// current user's name
-#define USERNAME "unrtdqttr"
-
-void writef(char* format, ...);
-
-struct message {
- char buf[MSG_MAX];
- int buf_len;
- char timestamp[9]; // HH:MM:SS
- char author[12];
-};
+#define USERNAME "Jef Koek"