Initial commit

This commit is contained in:
Pin
2022-01-29 18:12:15 -05:00
commit 7ddfb06557
6 changed files with 177 additions and 0 deletions

9
include/httpStruct.h Normal file
View File

@@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdint.h>
// HTTP Request Struct
struct HTTPRequest {
char *requestType;
char *requestVersion;
char *requestHost;
};

5
include/socketHelp.h Normal file
View File

@@ -0,0 +1,5 @@
#include <stdio.h>
#include <netinet/in.h>
int createSocket(int port, int *server_fd, struct sockaddr_in *address, int *addrlen);