add response test

This commit is contained in:
2024-11-14 22:42:29 +01:00
parent e5e40c795c
commit 718dbd50c0
14 changed files with 109 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
#ifndef __CLIENT_H__
#define __CLIENT_H__
#ifndef CWS_CLIENT_H
#define CWS_CLIENT_H
#include <arpa/inet.h>
#include <errno.h>

View File

@@ -1,5 +1,5 @@
#ifndef __HTTP_H__
#define __HTTP_H__
#ifndef CWS_HTTP_H
#define CWS_HTTP_H
#include <stdio.h> /* Debug */
#include <stdlib.h>

View File

@@ -1,5 +1,5 @@
#ifndef __MAIN_H__
#define __MAIN_H__
#ifndef CWS_MAIN_H
#define CWS_MAIN_H
#include <stdio.h>

View File

@@ -1,5 +1,5 @@
#ifndef __SERVER_H__
#define __SERVER_H__
#ifndef CWS_SERVER_H
#define CWS_SERVER_H
#include <arpa/inet.h>
#include <errno.h>
@@ -94,4 +94,6 @@ int handle_new_client(int sockfd, struct sockaddr_storage *their_sa, socklen_t *
*/
void close_fds(bucket_t *bucket);
void send_html_test(int sockfd);
#endif

View File

@@ -1,5 +1,5 @@
#ifndef __COLORS_H__
#define __COLORS_H__
#ifndef CWS_COLORS_H
#define CWS_COLORS_H
/* ANSI color escape sequences */
#define RED "\033[31m"

View File

@@ -1,5 +1,5 @@
#ifndef __HASHMAP_C__
#define __HASHMAP_C__
#ifndef CWS_HASHMAP_H
#define CWS_HASHMAP_H
#include <stdbool.h>
#include <stdlib.h>

View File

@@ -1,5 +1,5 @@
#ifndef __UTILS_H__
#define __UTILS_H__
#ifndef CWS_UTILS_H
#define CWS_UTILS_H
#include <arpa/inet.h>
#include <netdb.h>