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.
 
 
 
 

221 lines
12 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: srcs/webserv.cpp 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&amp;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&amp;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_b73b02d482d1c4a3db20c3d9ad52d395.html">srcs</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">webserv.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>A http server written in c++.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="webserv_8hpp_source.html">webserv.hpp</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for webserv.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="webserv_8cpp__incl.png" border="0" usemap="#asrcs_2webserv_8cpp" alt=""/></div>
<map name="asrcs_2webserv_8cpp" id="asrcs_2webserv_8cpp">
<area shape="rect" title="A http server written in c++." alt="" coords="2015,5,2149,31"/>
<area shape="rect" href="webserv_8hpp.html" title=" " alt="" coords="2030,79,2134,104"/>
<area shape="rect" title=" " alt="" coords="5,152,97,177"/>
<area shape="rect" title=" " alt="" coords="122,152,194,177"/>
<area shape="rect" title=" " alt="" coords="219,152,281,177"/>
<area shape="rect" title=" " alt="" coords="306,152,402,177"/>
<area shape="rect" title=" " alt="" coords="427,152,529,177"/>
<area shape="rect" title=" " alt="" coords="554,152,639,177"/>
<area shape="rect" title=" " alt="" coords="663,152,754,177"/>
<area shape="rect" title=" " alt="" coords="778,152,874,177"/>
<area shape="rect" title=" " alt="" coords="898,152,986,177"/>
<area shape="rect" title=" " alt="" coords="1010,152,1077,177"/>
<area shape="rect" title=" " alt="" coords="1101,152,1175,177"/>
<area shape="rect" title=" " alt="" coords="1199,152,1285,177"/>
<area shape="rect" title=" " alt="" coords="1309,152,1375,177"/>
<area shape="rect" title=" " alt="" coords="1399,152,1461,177"/>
<area shape="rect" title=" " alt="" coords="1486,152,1553,177"/>
<area shape="rect" title=" " alt="" coords="1577,152,1638,177"/>
<area shape="rect" title=" " alt="" coords="1663,152,1728,177"/>
<area shape="rect" title=" " alt="" coords="1753,152,1819,177"/>
<area shape="rect" title=" " alt="" coords="1844,152,1917,177"/>
<area shape="rect" title=" " alt="" coords="1942,152,2022,177"/>
<area shape="rect" title=" " alt="" coords="2047,152,2117,177"/>
<area shape="rect" title=" " alt="" coords="2142,152,2217,177"/>
<area shape="rect" title=" " alt="" coords="2241,152,2299,177"/>
<area shape="rect" title=" " alt="" coords="2323,152,2374,177"/>
<area shape="rect" title=" " alt="" coords="2399,152,2461,177"/>
<area shape="rect" href="Client_8hpp.html" title=" " alt="" coords="2486,152,2574,177"/>
<area shape="rect" href="Master_8hpp.html" title=" " alt="" coords="2599,152,2693,177"/>
<area shape="rect" href="Nodes_8hpp.html" title=" " alt="" coords="2718,152,2809,177"/>
<area shape="rect" href="Token_8hpp.html" title=" " alt="" coords="2833,152,2920,177"/>
<area shape="rect" href="Parser_8hpp.html" title=" " alt="" coords="2944,152,3033,177"/>
<area shape="rect" href="Route_8hpp.html" title=" " alt="" coords="3058,152,3146,177"/>
<area shape="rect" href="Server_8hpp.html" title=" " alt="" coords="3170,152,3261,177"/>
<area shape="rect" href="Env_8hpp.html" title=" " alt="" coords="3285,152,3359,177"/>
</map>
</div>
</div>
<p><a href="webserv_8cpp_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="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0c99d968a34e803d378692bde2e3f18f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="webserv_8cpp.html#a0c99d968a34e803d378692bde2e3f18f">main</a> (int ac, char **av)</td></tr>
<tr class="memdesc:a0c99d968a34e803d378692bde2e3f18f"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; The amount of sockets listens <br /></td></tr>
<tr class="separator:a0c99d968a34e803d378692bde2e3f18f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A http server written in c++. </p>
<dl class="section author"><dt>Author</dt><dd>Narnaud </dd></dl>
<dl class="section version"><dt>Version</dt><dd>0.1 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2023-01-12 </dd></dl>
<p class="definition">Definition in file <a class="el" href="webserv_8cpp_source.html">webserv.cpp</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a0c99d968a34e803d378692bde2e3f18f" name="a0c99d968a34e803d378692bde2e3f18f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c99d968a34e803d378692bde2e3f18f">&#9670;&#160;</a></span>main()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>ac</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char **&#160;</td>
<td class="paramname"><em>av</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>&lt; The amount of sockets listens </p>
<p>The server launcher</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ac</td><td>arguments count, either 1 or 2. </td></tr>
<tr><td class="paramname">av</td><td>arguments values: executable name and an optional config file</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return EXIT_FAILURE if an exception occur </dd></dl>
<p class="definition">Definition at line <a class="el" href="webserv_8cpp_source.html#l00026">26</a> of file <a class="el" href="webserv_8cpp_source.html">webserv.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="webserv_8cpp_a0c99d968a34e803d378692bde2e3f18f_cgraph.png" border="0" usemap="#awebserv_8cpp_a0c99d968a34e803d378692bde2e3f18f_cgraph" alt=""/></div>
<map name="awebserv_8cpp_a0c99d968a34e803d378692bde2e3f18f_cgraph" id="awebserv_8cpp_a0c99d968a34e803d378692bde2e3f18f_cgraph">
<area shape="rect" title="&lt; The amount of sockets listens" alt="" coords="5,219,60,244"/>
<area shape="rect" href="classEnv.html#a0c8b92f45308987231f9b0be8751d39f" title="A Wevserv cycle:" alt="" coords="134,55,221,80"/>
<area shape="rect" href="classJSONParser.html#ac397e1ef199b5cd553c1dece740a045e" title=" " alt="" coords="108,383,247,408"/>
<area shape="rect" href="classEnv.html#a830b6a19d0ab40a20a67155e8e4fb713" title="Refresh all master_sockets and their clients datas (disconnect, new connection, etc...." alt="" coords="312,5,439,31"/>
<area shape="rect" href="classEnv.html#af4399c7f3d136ce2164dacef42f5c258" title="Append each master_sockets and their clients to list of fds SELECT must look at." alt="" coords="315,55,435,80"/>
<area shape="rect" href="classTokenizer.html#ad1c7c0a8f85fe189acefe26b857b7375" title=" " alt="" coords="981,383,1130,408"/>
<area shape="rect" href="classTokenizer.html#ace80ed64add3ef2d0ee9f659a182d935" title=" " alt="" coords="732,281,923,307"/>
<area shape="rect" href="classJSONParser.html#afc1f8f30a01440eae32445b153d6e572" title=" " alt="" coords="732,220,923,245"/>
<area shape="rect" href="classJSONParser.html#a7d5a3239976c55ca83d974c886146f88" title=" " alt="" coords="295,484,456,509"/>
<area shape="rect" href="classJSONParser.html#a2d1a9d64e8bedc107cb5c9e7c4143fdf" title=" " alt="" coords="732,636,923,661"/>
<area shape="rect" href="classJSONParser.html#acccb70f3b476f4bf15ac2ab4fc6b2389" title=" " alt="" coords="504,383,684,408"/>
<area shape="rect" href="classJSONParser.html#a1ca29ba38533304c6601eafd249d9ed4" title=" " alt="" coords="739,788,915,813"/>
<area shape="rect" href="classTokenizer.html#a49db8c86447ad2cb543b5b1ea877f34d" title=" " alt="" coords="737,585,918,611"/>
<area shape="rect" href="classTokenizer.html#a879cee0d079f48f300cb44ddfe3fb2c5" title=" " alt="" coords="1188,375,1389,415"/>
<area shape="rect" href="classJSONNode.html#a7cfe3d9edfbc49ef0d1d78fa3f294680" title=" " alt="" coords="971,220,1140,245"/>
<area shape="rect" href="classJSONNode.html#a3c65ea4af29daa3869273af827ebe43c" title=" " alt="" coords="1230,813,1347,839"/>
<area shape="rect" href="classJSONParser.html#a914758f808caf1443960df96d98810cc" title=" " alt="" coords="745,509,909,535"/>
<area shape="rect" href="classJSONNode.html#acc698e882b650c5679469ccd376b39db" title=" " alt="" coords="1232,965,1345,991"/>
<area shape="rect" href="classJSONNode.html#ae4e89e9fbf82c980d2facf7edc1ea68e" title=" " alt="" coords="525,484,663,509"/>
<area shape="rect" href="classJSONNode.html#a70bb6ffc78aae08eb6afead5cddadee9" title=" " alt="" coords="984,509,1127,535"/>
<area shape="rect" href="classJSONNode.html#a625fbde0f162e32c4de6b8df32f0a0af" title=" " alt="" coords="971,737,1139,763"/>
<area shape="rect" href="classJSONNode.html#a0abbf1d52e0c984569af190bcb70e640" title=" " alt="" coords="748,383,907,408"/>
<area shape="rect" href="classJSONNode.html#acfb95d8ee5d047099424d55f1fc07e3e" title=" " alt="" coords="978,940,1133,965"/>
</map>
</div>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<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>