You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
615 lines
35 KiB
615 lines
35 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.7"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Webserv: includes/webserv.hpp File Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">Webserv
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.7 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_09e761304027c904456130627fd4dcf5.html">includes</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Data Structures</a> |
|
|
<a href="#define-members">Macros</a> |
|
|
<a href="#typedef-members">Typedefs</a> |
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle"><div class="title">webserv.hpp File Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include <arpa/inet.h></code><br />
|
|
<code>#include <dirent.h></code><br />
|
|
<code>#include <fcntl.h></code><br />
|
|
<code>#include <netinet/in.h></code><br />
|
|
<code>#include <sys/socket.h></code><br />
|
|
<code>#include <sys/stat.h></code><br />
|
|
<code>#include <sys/time.h></code><br />
|
|
<code>#include <sys/types.h></code><br />
|
|
<code>#include <sys/wait.h></code><br />
|
|
<code>#include <stdio.h></code><br />
|
|
<code>#include <unistd.h></code><br />
|
|
<code>#include <algorithm></code><br />
|
|
<code>#include <cctype></code><br />
|
|
<code>#include <cerrno></code><br />
|
|
<code>#include <climits></code><br />
|
|
<code>#include <cstdio></code><br />
|
|
<code>#include <cstdlib></code><br />
|
|
<code>#include <cstring></code><br />
|
|
<code>#include <fstream></code><br />
|
|
<code>#include <iostream></code><br />
|
|
<code>#include <iterator></code><br />
|
|
<code>#include <sstream></code><br />
|
|
<code>#include <string></code><br />
|
|
<code>#include <map></code><br />
|
|
<code>#include <vector></code><br />
|
|
<code>#include "<a class="el" href="Client_8hpp_source.html">Client.hpp</a>"</code><br />
|
|
<code>#include "<a class="el" href="Master_8hpp_source.html">Master.hpp</a>"</code><br />
|
|
<code>#include "<a class="el" href="Nodes_8hpp_source.html">Nodes.hpp</a>"</code><br />
|
|
<code>#include "<a class="el" href="Token_8hpp_source.html">Token.hpp</a>"</code><br />
|
|
<code>#include "<a class="el" href="Parser_8hpp_source.html">Parser.hpp</a>"</code><br />
|
|
<code>#include "<a class="el" href="Route_8hpp_source.html">Route.hpp</a>"</code><br />
|
|
<code>#include "<a class="el" href="Server_8hpp_source.html">Server.hpp</a>"</code><br />
|
|
<code>#include "<a class="el" href="Env_8hpp_source.html">Env.hpp</a>"</code><br />
|
|
</div><div class="textblock"><div class="dynheader">
|
|
Include dependency graph for webserv.hpp:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="webserv_8hpp__incl.png" border="0" usemap="#aincludes_2webserv_8hpp" alt=""/></div>
|
|
<map name="aincludes_2webserv_8hpp" id="aincludes_2webserv_8hpp">
|
|
<area shape="rect" title=" " alt="" coords="2001,5,2163,31"/>
|
|
<area shape="rect" title=" " alt="" coords="5,79,97,104"/>
|
|
<area shape="rect" title=" " alt="" coords="122,79,194,104"/>
|
|
<area shape="rect" title=" " alt="" coords="219,79,281,104"/>
|
|
<area shape="rect" title=" " alt="" coords="306,79,402,104"/>
|
|
<area shape="rect" title=" " alt="" coords="427,79,529,104"/>
|
|
<area shape="rect" title=" " alt="" coords="554,79,639,104"/>
|
|
<area shape="rect" title=" " alt="" coords="663,79,754,104"/>
|
|
<area shape="rect" title=" " alt="" coords="778,79,874,104"/>
|
|
<area shape="rect" title=" " alt="" coords="898,79,986,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1010,79,1077,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1101,79,1175,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1199,79,1285,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1309,79,1375,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1399,79,1461,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1486,79,1553,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1577,79,1638,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1663,79,1728,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1753,79,1819,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1844,79,1917,104"/>
|
|
<area shape="rect" title=" " alt="" coords="1942,79,2022,104"/>
|
|
<area shape="rect" title=" " alt="" coords="2047,79,2117,104"/>
|
|
<area shape="rect" title=" " alt="" coords="2142,79,2217,104"/>
|
|
<area shape="rect" title=" " alt="" coords="2241,79,2299,104"/>
|
|
<area shape="rect" title=" " alt="" coords="2323,79,2374,104"/>
|
|
<area shape="rect" title=" " alt="" coords="2399,79,2461,104"/>
|
|
<area shape="rect" href="Client_8hpp.html" title=" " alt="" coords="2486,79,2574,104"/>
|
|
<area shape="rect" href="Master_8hpp.html" title=" " alt="" coords="2599,79,2693,104"/>
|
|
<area shape="rect" href="Nodes_8hpp.html" title=" " alt="" coords="2718,79,2809,104"/>
|
|
<area shape="rect" href="Token_8hpp.html" title=" " alt="" coords="2833,79,2920,104"/>
|
|
<area shape="rect" href="Parser_8hpp.html" title=" " alt="" coords="2944,79,3033,104"/>
|
|
<area shape="rect" href="Route_8hpp.html" title=" " alt="" coords="3058,79,3146,104"/>
|
|
<area shape="rect" href="Server_8hpp.html" title=" " alt="" coords="3170,79,3261,104"/>
|
|
<area shape="rect" href="Env_8hpp.html" title=" " alt="" coords="3285,79,3359,104"/>
|
|
</map>
|
|
</div>
|
|
</div><div class="textblock"><div class="dynheader">
|
|
This graph shows which files directly or indirectly include this file:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="webserv_8hpp__dep__incl.png" border="0" usemap="#aincludes_2webserv_8hppdep" alt=""/></div>
|
|
<map name="aincludes_2webserv_8hppdep" id="aincludes_2webserv_8hppdep">
|
|
<area shape="rect" title=" " alt="" coords="1015,5,1177,31"/>
|
|
<area shape="rect" href="Client_8hpp.html" title=" " alt="" coords="5,79,152,104"/>
|
|
<area shape="rect" href="Env_8hpp.html" title=" " alt="" coords="176,79,307,104"/>
|
|
<area shape="rect" href="Master_8hpp.html" title=" " alt="" coords="331,79,483,104"/>
|
|
<area shape="rect" href="Nodes_8hpp.html" title=" " alt="" coords="507,79,656,104"/>
|
|
<area shape="rect" href="Parser_8hpp.html" title=" " alt="" coords="680,79,827,104"/>
|
|
<area shape="rect" href="Route_8hpp.html" title=" " alt="" coords="851,79,997,104"/>
|
|
<area shape="rect" href="Server_8hpp.html" title=" " alt="" coords="1021,79,1171,104"/>
|
|
<area shape="rect" href="Token_8hpp.html" title=" " alt="" coords="1195,79,1341,104"/>
|
|
<area shape="rect" href="debug_8cpp.html" title=" " alt="" coords="1365,79,1483,104"/>
|
|
<area shape="rect" href="Nodes_8cpp.html" title=" " alt="" coords="1507,79,1658,104"/>
|
|
<area shape="rect" href="Parser_8cpp.html" title=" " alt="" coords="1683,79,1832,104"/>
|
|
<area shape="rect" href="Token_8cpp.html" title=" " alt="" coords="1856,79,2003,104"/>
|
|
<area shape="rect" href="Env_8cpp.html" title=" " alt="" coords="2027,79,2162,104"/>
|
|
<area shape="rect" href="Route_8cpp.html" title="A location class which handle." alt="" coords="2187,79,2336,104"/>
|
|
<area shape="rect" href="Server_8cpp.html" title="The servers object. One is created for each config server." alt="" coords="2360,79,2512,104"/>
|
|
<area shape="rect" href="Client_8cpp.html" title="The client sockets class which keep keep clients information and handle answer to them." alt="" coords="2537,79,2687,104"/>
|
|
<area shape="rect" href="Master_8cpp.html" title="The master sockets class which receive each incomming new client." alt="" coords="2712,79,2869,104"/>
|
|
<area shape="rect" href="tools_8cpp.html" title=" " alt="" coords="2894,79,3005,104"/>
|
|
<area shape="rect" href="webserv_8cpp.html" title="A http server written in c++." alt="" coords="3029,79,3163,104"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="webserv_8hpp_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
|
Data Structures</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structip__port__s.html">ip_port_s</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
|
|
Macros</h2></td></tr>
|
|
<tr class="memitem:ad72dbcf6d0153db1b8d8a58001feed83"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#ad72dbcf6d0153db1b8d8a58001feed83">DEBUG</a>   1</td></tr>
|
|
<tr class="separator:ad72dbcf6d0153db1b8d8a58001feed83"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
|
Typedefs</h2></td></tr>
|
|
<tr class="memitem:aca8ca4c81e9d413f6c6f1f3dc74906b4"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structip__port__s.html">ip_port_s</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#aca8ca4c81e9d413f6c6f1f3dc74906b4">ip_port_t</a></td></tr>
|
|
<tr class="separator:aca8ca4c81e9d413f6c6f1f3dc74906b4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adfa52a9e5ae79ca0eff47012a29449e3"><td class="memItemLeft" align="right" valign="top">typedef std::map< string, <a class="el" href="classJSONNode.html">JSONNode</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#adfa52a9e5ae79ca0eff47012a29449e3">JSONObject</a></td></tr>
|
|
<tr class="separator:adfa52a9e5ae79ca0eff47012a29449e3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa3529ef9abc60facb73497ed5062d913"><td class="memItemLeft" align="right" valign="top">typedef std::vector< <a class="el" href="classJSONNode.html">JSONNode</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#aa3529ef9abc60facb73497ed5062d913">JSONList</a></td></tr>
|
|
<tr class="separator:aa3529ef9abc60facb73497ed5062d913"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aba96a6988a5bc02b5c8b908af07d0bbb"><td class="memItemLeft" align="right" valign="top">typedef std::vector< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#aba96a6988a5bc02b5c8b908af07d0bbb">vec_string</a></td></tr>
|
|
<tr class="separator:aba96a6988a5bc02b5c8b908af07d0bbb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:a19d0a16cec67fe4c1af22f1571f4f8a6"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#a19d0a16cec67fe4c1af22f1571f4f8a6">ft_memset</a> (void *b, int c, size_t len)</td></tr>
|
|
<tr class="separator:a19d0a16cec67fe4c1af22f1571f4f8a6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a12c1f1864dfaa4d3ce407320c3877160"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#a12c1f1864dfaa4d3ce407320c3877160">isAPort</a> (string str)</td></tr>
|
|
<tr class="separator:a12c1f1864dfaa4d3ce407320c3877160"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4a79e98b5dec14d16875307f7e77dfb3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="webserv_8hpp.html#aba96a6988a5bc02b5c8b908af07d0bbb">vec_string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#a4a79e98b5dec14d16875307f7e77dfb3">split</a> (string str, string delim)</td></tr>
|
|
<tr class="separator:a4a79e98b5dec14d16875307f7e77dfb3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6e7e23c21ae956b6859a6f3ec9793358"><td class="memItemLeft" align="right" valign="top"><a class="el" href="webserv_8hpp.html#aca8ca4c81e9d413f6c6f1f3dc74906b4">ip_port_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#a6e7e23c21ae956b6859a6f3ec9793358">get_ip_port_t</a> (string listen)</td></tr>
|
|
<tr class="separator:a6e7e23c21ae956b6859a6f3ec9793358"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a850b23d7d19b54a0fd68cb2c59594f55"><td class="memItemLeft" align="right" valign="top"><a class="el" href="webserv_8hpp.html#aca8ca4c81e9d413f6c6f1f3dc74906b4">ip_port_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#a850b23d7d19b54a0fd68cb2c59594f55">get_ip_port_t</a> (string ip, int port)</td></tr>
|
|
<tr class="separator:a850b23d7d19b54a0fd68cb2c59594f55"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a07de4a3e033212959997f105daa49798"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#a07de4a3e033212959997f105daa49798">getMime</a> (string path)</td></tr>
|
|
<tr class="separator:a07de4a3e033212959997f105daa49798"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a044b9a41ee6f56019e039d36e91dc265"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#a044b9a41ee6f56019e039d36e91dc265">read_file</a> (string path)</td></tr>
|
|
<tr class="separator:a044b9a41ee6f56019e039d36e91dc265"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afb2639655e07c91426064b6bdfff7079"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8hpp.html#afb2639655e07c91426064b6bdfff7079">debug_block</a> (string name, string content)</td></tr>
|
|
<tr class="separator:afb2639655e07c91426064b6bdfff7079"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Macro Definition Documentation</h2>
|
|
<a id="ad72dbcf6d0153db1b8d8a58001feed83" name="ad72dbcf6d0153db1b8d8a58001feed83"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad72dbcf6d0153db1b8d8a58001feed83">◆ </a></span>DEBUG</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define DEBUG   1</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="webserv_8hpp_source.html#l00002">2</a> of file <a class="el" href="webserv_8hpp_source.html">webserv.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Typedef Documentation</h2>
|
|
<a id="aca8ca4c81e9d413f6c6f1f3dc74906b4" name="aca8ca4c81e9d413f6c6f1f3dc74906b4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aca8ca4c81e9d413f6c6f1f3dc74906b4">◆ </a></span>ip_port_t</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef struct <a class="el" href="structip__port__s.html">ip_port_s</a> <a class="el" href="webserv_8hpp.html#aca8ca4c81e9d413f6c6f1f3dc74906b4">ip_port_t</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa3529ef9abc60facb73497ed5062d913" name="aa3529ef9abc60facb73497ed5062d913"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa3529ef9abc60facb73497ed5062d913">◆ </a></span>JSONList</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef std::vector<<a class="el" href="classJSONNode.html">JSONNode</a> *> <a class="el" href="webserv_8hpp.html#aa3529ef9abc60facb73497ed5062d913">JSONList</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="webserv_8hpp_source.html#l00049">49</a> of file <a class="el" href="webserv_8hpp_source.html">webserv.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="adfa52a9e5ae79ca0eff47012a29449e3" name="adfa52a9e5ae79ca0eff47012a29449e3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#adfa52a9e5ae79ca0eff47012a29449e3">◆ </a></span>JSONObject</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef std::map<string, <a class="el" href="classJSONNode.html">JSONNode</a> *> <a class="el" href="webserv_8hpp.html#adfa52a9e5ae79ca0eff47012a29449e3">JSONObject</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="webserv_8hpp_source.html#l00048">48</a> of file <a class="el" href="webserv_8hpp_source.html">webserv.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aba96a6988a5bc02b5c8b908af07d0bbb" name="aba96a6988a5bc02b5c8b908af07d0bbb"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aba96a6988a5bc02b5c8b908af07d0bbb">◆ </a></span>vec_string</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef std::vector<string> <a class="el" href="webserv_8hpp.html#aba96a6988a5bc02b5c8b908af07d0bbb">vec_string</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="webserv_8hpp_source.html#l00050">50</a> of file <a class="el" href="webserv_8hpp_source.html">webserv.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a id="afb2639655e07c91426064b6bdfff7079" name="afb2639655e07c91426064b6bdfff7079"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#afb2639655e07c91426064b6bdfff7079">◆ </a></span>debug_block()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void debug_block </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>content</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="debug_8cpp_source.html#l00003">3</a> of file <a class="el" href="debug_8cpp_source.html">debug.cpp</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="webserv_8hpp_afb2639655e07c91426064b6bdfff7079_icgraph.png" border="0" usemap="#awebserv_8hpp_afb2639655e07c91426064b6bdfff7079_icgraph" alt=""/></div>
|
|
<map name="awebserv_8hpp_afb2639655e07c91426064b6bdfff7079_icgraph" id="awebserv_8hpp_afb2639655e07c91426064b6bdfff7079_icgraph">
|
|
<area shape="rect" title=" " alt="" coords="804,209,908,235"/>
|
|
<area shape="rect" href="classClient.html#acbcc94de0dd77b5635b574c9f23acdb8" title=" " alt="" coords="17,8,159,33"/>
|
|
<area shape="rect" href="classClient.html#aa3fd6ca9ee860544e53a84cae96c19cb" title=" " alt="" coords="5,209,171,235"/>
|
|
<area shape="rect" href="classClient.html#a44bd2f49f7a1d456c8ae9c4b22302540" title=" " alt="" coords="603,209,756,235"/>
|
|
<area shape="rect" href="classClient.html#a9f221331479aa9502ee2c372164095fc" title=" " alt="" coords="251,209,337,235"/>
|
|
<area shape="rect" href="classClient.html#a034a4f9166be42ffb3844b402a4f1881" title=" " alt="" coords="226,160,362,185"/>
|
|
<area shape="rect" href="classClient.html#ac5ee168964331e90a3afcf8531f3cca7" title=" " alt="" coords="417,108,555,133"/>
|
|
<area shape="rect" href="classClient.html#a0c6bb0009c8415f9e49130cd7b6ecc8c" title=" " alt="" coords="418,311,554,336"/>
|
|
<area shape="rect" href="classClient.html#a3e6860ba08a116dcc3e75d97d91297c7" title=" " alt="" coords="219,59,369,84"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a19d0a16cec67fe4c1af22f1571f4f8a6" name="a19d0a16cec67fe4c1af22f1571f4f8a6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a19d0a16cec67fe4c1af22f1571f4f8a6">◆ </a></span>ft_memset()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void * ft_memset </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>b</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>c</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t </td>
|
|
<td class="paramname"><em>len</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="tools_8cpp_source.html#l00003">3</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a850b23d7d19b54a0fd68cb2c59594f55" name="a850b23d7d19b54a0fd68cb2c59594f55"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a850b23d7d19b54a0fd68cb2c59594f55">◆ </a></span>get_ip_port_t() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="webserv_8hpp.html#aca8ca4c81e9d413f6c6f1f3dc74906b4">ip_port_t</a> get_ip_port_t </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>ip</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>port</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="tools_8cpp_source.html#l00051">51</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6e7e23c21ae956b6859a6f3ec9793358" name="a6e7e23c21ae956b6859a6f3ec9793358"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6e7e23c21ae956b6859a6f3ec9793358">◆ </a></span>get_ip_port_t() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="webserv_8hpp.html#aca8ca4c81e9d413f6c6f1f3dc74906b4">ip_port_t</a> get_ip_port_t </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>listen</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="tools_8cpp_source.html#l00035">35</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="webserv_8hpp_a6e7e23c21ae956b6859a6f3ec9793358_cgraph.png" border="0" usemap="#awebserv_8hpp_a6e7e23c21ae956b6859a6f3ec9793358_cgraph" alt=""/></div>
|
|
<map name="awebserv_8hpp_a6e7e23c21ae956b6859a6f3ec9793358_cgraph" id="awebserv_8hpp_a6e7e23c21ae956b6859a6f3ec9793358_cgraph">
|
|
<area shape="rect" title=" " alt="" coords="5,5,112,31"/>
|
|
<area shape="rect" href="tools_8cpp.html#a12c1f1864dfaa4d3ce407320c3877160" title=" " alt="" coords="160,5,228,31"/>
|
|
</map>
|
|
</div>
|
|
<div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="webserv_8hpp_a6e7e23c21ae956b6859a6f3ec9793358_icgraph.png" border="0" usemap="#awebserv_8hpp_a6e7e23c21ae956b6859a6f3ec9793358_icgraph" alt=""/></div>
|
|
<map name="awebserv_8hpp_a6e7e23c21ae956b6859a6f3ec9793358_icgraph" id="awebserv_8hpp_a6e7e23c21ae956b6859a6f3ec9793358_icgraph">
|
|
<area shape="rect" title=" " alt="" coords="543,31,649,56"/>
|
|
<area shape="rect" href="classServer.html#a6c46d7b86956f508b1c0bfe125b03993" title="Master socket safe creation." alt="" coords="328,5,495,31"/>
|
|
<area shape="rect" href="classMaster.html#a3ffb0ce7702a04ab7a9ec5dfa1ff6e42" title=" " alt="" coords="337,55,486,80"/>
|
|
<area shape="rect" href="classServer.html#a5738134631f6bab9a26ca0687d86f21f" title="Create server's defined sockets:" alt="" coords="131,5,280,31"/>
|
|
<area shape="rect" href="classEnv.html#ace0ebeb150673fa69526c14d8417d587" title=" " alt="" coords="5,5,83,31"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a07de4a3e033212959997f105daa49798" name="a07de4a3e033212959997f105daa49798"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a07de4a3e033212959997f105daa49798">◆ </a></span>getMime()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">string getMime </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>path</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="tools_8cpp_source.html#l00080">80</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="webserv_8hpp_a07de4a3e033212959997f105daa49798_icgraph.png" border="0" usemap="#awebserv_8hpp_a07de4a3e033212959997f105daa49798_icgraph" alt=""/></div>
|
|
<map name="awebserv_8hpp_a07de4a3e033212959997f105daa49798_icgraph" id="awebserv_8hpp_a07de4a3e033212959997f105daa49798_icgraph">
|
|
<area shape="rect" title=" " alt="" coords="519,31,599,56"/>
|
|
<area shape="rect" href="tools_8cpp.html#a044b9a41ee6f56019e039d36e91dc265" title=" " alt="" coords="392,31,471,56"/>
|
|
<area shape="rect" href="classRoute.html#aa71b39273ba7bc2f683f40a6573ff810" title="Search for an index while generating autoindex." alt="" coords="219,5,344,31"/>
|
|
<area shape="rect" href="classClient.html#aa3fd6ca9ee860544e53a84cae96c19cb" title=" " alt="" coords="5,31,171,56"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a12c1f1864dfaa4d3ce407320c3877160" name="a12c1f1864dfaa4d3ce407320c3877160"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a12c1f1864dfaa4d3ce407320c3877160">◆ </a></span>isAPort()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool isAPort </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>str</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="tools_8cpp_source.html#l00012">12</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="webserv_8hpp_a12c1f1864dfaa4d3ce407320c3877160_icgraph.png" border="0" usemap="#awebserv_8hpp_a12c1f1864dfaa4d3ce407320c3877160_icgraph" alt=""/></div>
|
|
<map name="awebserv_8hpp_a12c1f1864dfaa4d3ce407320c3877160_icgraph" id="awebserv_8hpp_a12c1f1864dfaa4d3ce407320c3877160_icgraph">
|
|
<area shape="rect" title=" " alt="" coords="697,31,765,56"/>
|
|
<area shape="rect" href="tools_8cpp.html#a6e7e23c21ae956b6859a6f3ec9793358" title=" " alt="" coords="543,31,649,56"/>
|
|
<area shape="rect" href="classServer.html#a6c46d7b86956f508b1c0bfe125b03993" title="Master socket safe creation." alt="" coords="328,5,495,31"/>
|
|
<area shape="rect" href="classMaster.html#a3ffb0ce7702a04ab7a9ec5dfa1ff6e42" title=" " alt="" coords="337,55,486,80"/>
|
|
<area shape="rect" href="classServer.html#a5738134631f6bab9a26ca0687d86f21f" title="Create server's defined sockets:" alt="" coords="131,5,280,31"/>
|
|
<area shape="rect" href="classEnv.html#ace0ebeb150673fa69526c14d8417d587" title=" " alt="" coords="5,5,83,31"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a044b9a41ee6f56019e039d36e91dc265" name="a044b9a41ee6f56019e039d36e91dc265"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a044b9a41ee6f56019e039d36e91dc265">◆ </a></span>read_file()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">string read_file </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>path</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="tools_8cpp_source.html#l00058">58</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="webserv_8hpp_a044b9a41ee6f56019e039d36e91dc265_cgraph.png" border="0" usemap="#awebserv_8hpp_a044b9a41ee6f56019e039d36e91dc265_cgraph" alt=""/></div>
|
|
<map name="awebserv_8hpp_a044b9a41ee6f56019e039d36e91dc265_cgraph" id="awebserv_8hpp_a044b9a41ee6f56019e039d36e91dc265_cgraph">
|
|
<area shape="rect" title=" " alt="" coords="5,5,84,31"/>
|
|
<area shape="rect" href="tools_8cpp.html#a07de4a3e033212959997f105daa49798" title=" " alt="" coords="132,5,212,31"/>
|
|
</map>
|
|
</div>
|
|
<div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="webserv_8hpp_a044b9a41ee6f56019e039d36e91dc265_icgraph.png" border="0" usemap="#awebserv_8hpp_a044b9a41ee6f56019e039d36e91dc265_icgraph" alt=""/></div>
|
|
<map name="awebserv_8hpp_a044b9a41ee6f56019e039d36e91dc265_icgraph" id="awebserv_8hpp_a044b9a41ee6f56019e039d36e91dc265_icgraph">
|
|
<area shape="rect" title=" " alt="" coords="392,31,471,56"/>
|
|
<area shape="rect" href="classRoute.html#aa71b39273ba7bc2f683f40a6573ff810" title="Search for an index while generating autoindex." alt="" coords="219,5,344,31"/>
|
|
<area shape="rect" href="classClient.html#aa3fd6ca9ee860544e53a84cae96c19cb" title=" " alt="" coords="5,31,171,56"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4a79e98b5dec14d16875307f7e77dfb3" name="a4a79e98b5dec14d16875307f7e77dfb3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4a79e98b5dec14d16875307f7e77dfb3">◆ </a></span>split()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="webserv_8hpp.html#aba96a6988a5bc02b5c8b908af07d0bbb">vec_string</a> split </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>str</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>delim</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="tools_8cpp_source.html#l00020">20</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="webserv_8hpp_a4a79e98b5dec14d16875307f7e77dfb3_icgraph.png" border="0" usemap="#awebserv_8hpp_a4a79e98b5dec14d16875307f7e77dfb3_icgraph" alt=""/></div>
|
|
<map name="awebserv_8hpp_a4a79e98b5dec14d16875307f7e77dfb3_icgraph" id="awebserv_8hpp_a4a79e98b5dec14d16875307f7e77dfb3_icgraph">
|
|
<area shape="rect" title=" " alt="" coords="612,132,663,157"/>
|
|
<area shape="rect" href="classServer.html#a0664c62a66a7e3e41d48c286c55a90a9" title="Choose the route an uri asked to the server." alt="" coords="400,5,559,31"/>
|
|
<area shape="rect" href="classClient.html#a3e6860ba08a116dcc3e75d97d91297c7" title=" " alt="" coords="196,81,347,107"/>
|
|
<area shape="rect" href="classClient.html#acbcc94de0dd77b5635b574c9f23acdb8" title=" " alt="" coords="5,157,148,183"/>
|
|
<area shape="rect" href="classMaster.html#a5486cb0d32ba29cd31b212c3457942b1" title=" " alt="" coords="395,107,564,132"/>
|
|
<area shape="rect" href="classRoute.html#a5826254afb1e57c980c4b671bea8370a" title="Find the local path corresponding to the uri asked by te client." alt="" coords="413,208,545,233"/>
|
|
<area shape="rect" href="classClient.html#a8d671d9129091ed238c9833f4d3b5dda" title=" " alt="" coords="210,233,333,259"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
|
|
</small></address>
|
|
</body>
|
|
</html>
|
|
|