add response test
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef __MAIN_H__
|
||||
#define __MAIN_H__
|
||||
#ifndef CWS_MAIN_H
|
||||
#define CWS_MAIN_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef __HASHMAP_C__
|
||||
#define __HASHMAP_C__
|
||||
#ifndef CWS_HASHMAP_H
|
||||
#define CWS_HASHMAP_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user