LeftHookRoll
An HTTP/1.0 compliant web server, as specified by RFC1945
Loading...
Searching...
No Matches
Connection.hpp File Reference

Will be spawned when we accept() a new connection, will handle reading from the socket, writing to the socket, and the state of the connection. More...

#include <string>
#include <ctime>
#include <netinet/in.h>
#include <sys/types.h>
#include "ServerConf.hpp"
#include "LocationConf.hpp"
#include "Request.hpp"
#include "Response.hpp"
Include dependency graph for Connection.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Connection
 

Macros

#define MAX_HEADER_SIZE   8192
 

Enumerations

enum  ConnectionState {
  READING , WRITING , PROCESSING , WAITING_FOR_CGI ,
  FINISHED
}
 Represents the state of the CLIENT SOCKET. More...
 

Detailed Description

Will be spawned when we accept() a new connection, will handle reading from the socket, writing to the socket, and the state of the connection.

Definition in file Connection.hpp.

Macro Definition Documentation

◆ MAX_HEADER_SIZE

#define MAX_HEADER_SIZE   8192

Definition at line 8 of file Connection.hpp.

Enumeration Type Documentation

◆ ConnectionState

Represents the state of the CLIENT SOCKET.

Enumerator
READING 
WRITING 
PROCESSING 
WAITING_FOR_CGI 
FINISHED 

Definition at line 24 of file Connection.hpp.