-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(*.hpp): Moved error info to webserv.hpp and removed repeated in…
…cludes
- Loading branch information
Showing
4 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
#ifndef WEBSERV_HPP | ||
#define WEBSERV_HPP | ||
|
||
/* -------------------------------- INCLUDES -------------------------------- */ | ||
#include <iostream> | ||
#include <string> | ||
#include "debug.hpp" | ||
|
||
/* ----------------------------- ERROR MESSAGES ----------------------------- */ | ||
static std::string ERR_NULL("Socket: null ptr error"); | ||
static std::string ERR_CREAT("Socket: creation failed"); | ||
static std::string ERR_BIND("Socket: binding failed"); | ||
static std::string ERR_NBIND("Socket: not bound to a port"); | ||
static std::string ERR_LIST("Socket: listen failed"); | ||
static std::string ERR_NLIST("Socket: not listeing"); | ||
static std::string ERR_ACCP("Socket: accept failed"); | ||
|
||
#endif // WEBSERV_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters