16 lines
370 B
C
16 lines
370 B
C
#ifndef IPADDRESS_H
|
|
#define IPADDRESS_H
|
|
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
#define MAX_LINE_LENGTH (1024)
|
|
|
|
// This code has been borrowed from this github repo https://github.com/wasmerio/c-http-server and modified by me.
|
|
|
|
int extract_ip_address_from_header(char *line, char *address);
|
|
char *get_ip_address(FILE *f);
|
|
|
|
#endif |