summaryrefslogtreecommitdiff
path: root/server.h
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2022-04-13 04:55:31 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2022-04-13 04:55:31 +0200
commit91d0b99b0fd0a6d12093af41b0147db52b335e49 (patch)
tree2161f007b44789a6ae46108ce1a69230770084f1 /server.h
parent729aac88a58b6589c0d1aeb82bd729b886555771 (diff)
server: Add support to PRIVMSG message
Diffstat (limited to 'server.h')
-rw-r--r--server.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.h b/server.h
index fb37b6f..1b2f564 100644
--- a/server.h
+++ b/server.h
@@ -18,6 +18,8 @@
#ifndef SERVER_H
#define SERVER_H
+#include "hash_table.h"
+
#include <stdint.h>
#include <stdbool.h>
#include <sys/epoll.h>
@@ -28,11 +30,12 @@ typedef struct server {
int fd;
int epoll_fd;
struct epoll_event events[MAXEVENTS];
- int connected_clients[MAXEVENTS];
+ hash_table_t *client_table;
bool running;
} server_t;
void server_init(server_t *server, uint32_t port);
void server_run(server_t *server);
+void server_destroy(server_t *server);
#endif /* SERVER_H */