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.
180 lines
25 KiB
180 lines
25 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/load/Server.cpp Source File</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_b73b02d482d1c4a3db20c3d9ad52d395.html">srcs</a></li><li class="navelem"><a class="el" href="dir_5fca218e70541e091643ad2320ad7111.html">load</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">Server.cpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="Server_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include "<a class="code" href="webserv_8hpp.html">webserv.hpp</a>"</span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="classServer.html#aa7907c537140a174ab5096f7e25d9b40"> 20</a></span><a class="code hl_function" href="classServer.html#aa7907c537140a174ab5096f7e25d9b40">Server::Server</a>(<a class="code hl_class" href="classJSONNode.html">JSONNode</a> *server) : <a class="code hl_class" href="classRoute.html">Route</a>(NULL, <span class="stringliteral">"/"</span>, server) {</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <a class="code hl_typedef" href="webserv_8hpp.html#adfa52a9e5ae79ca0eff47012a29449e3">JSONObject</a> datas = server-><a class="code hl_function" href="classJSONNode.html#a6412ecbb284cfddb5de9818b72c785f9">obj</a>();</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keywordflow">if</span> (datas[<span class="stringliteral">"server_name"</span>])</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <a class="code hl_variable" href="classServer.html#a95c77245a1a0a9fd09926fc8e9661ebe">_name</a> = datas[<span class="stringliteral">"server_name"</span>]->str();</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keywordflow">if</span> (datas[<span class="stringliteral">"locations"</span>]) {</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <a class="code hl_typedef" href="webserv_8hpp.html#adfa52a9e5ae79ca0eff47012a29449e3">JSONObject</a> locations = datas[<span class="stringliteral">"locations"</span>]->obj();</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keywordflow">for</span> (JSONObject::iterator it = locations.begin(); it != locations.end(); it++) {</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <a class="code hl_class" href="classRoute.html">Route</a> *route = <span class="keyword">new</span> <a class="code hl_class" href="classRoute.html">Route</a>(<span class="keyword">this</span>, (*it).first, (*it).second);</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <a class="code hl_variable" href="classServer.html#aebc8d22ef79e648de88441c37fb1db46">_routes</a>[(*it).first] = route;</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> }</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> }</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span>}</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="classServer.html#a803b89b673283131d2ae765c82923f8d"> 38</a></span><a class="code hl_function" href="classServer.html#a803b89b673283131d2ae765c82923f8d">Server::~Server</a>(<span class="keywordtype">void</span>) {</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">for</span> (std::map<string, Route *>::iterator it = <a class="code hl_variable" href="classServer.html#aebc8d22ef79e648de88441c37fb1db46">_routes</a>.begin(); it != <a class="code hl_variable" href="classServer.html#aebc8d22ef79e648de88441c37fb1db46">_routes</a>.end(); it++)</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">delete</span> (*it).second;</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> cout << <span class="stringliteral">"Server destroyed!\n"</span>;</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>}</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="classServer.html#ab957b5aafbabdc8f108cf68bfb5968c9"> 47</a></span><span class="keywordtype">string</span> <a class="code hl_function" href="classServer.html#ab957b5aafbabdc8f108cf68bfb5968c9">Server::getName</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> <a class="code hl_variable" href="classServer.html#a95c77245a1a0a9fd09926fc8e9661ebe">_name</a>; }</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classServer.html#a6c46d7b86956f508b1c0bfe125b03993"> 56</a></span><a class="code hl_class" href="classMaster.html">Master</a> *<a class="code hl_function" href="classServer.html#a6c46d7b86956f508b1c0bfe125b03993">Server::create_master</a>(<span class="keywordtype">string</span> str) {</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <a class="code hl_struct" href="structip__port__s.html">ip_port_t</a> listen = <a class="code hl_function" href="tools_8cpp.html#a6e7e23c21ae956b6859a6f3ec9793358">get_ip_port_t</a>(str);</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keywordflow">if</span> (listen.<a class="code hl_variable" href="structip__port__s.html#afb20776a9723a50ac32fd9b8248b3e0c">ip</a>.at(0) != <span class="charliteral">'['</span>) {</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">try</span> {</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <a class="code hl_variable" href="classServer.html#a6fecdbd597c344d2ae004ff72fdbef74">_listens</a>.push_back(listen);</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <a class="code hl_class" href="classMaster.html">Master</a> *sock = <span class="keyword">new</span> <a class="code hl_class" href="classMaster.html">Master</a>(listen);</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">return</span> (sock);</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> } <span class="keywordflow">catch</span> (std::exception &e) {</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> std::cerr << e.what() << <span class="charliteral">'\n'</span>;</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> }</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> } <span class="keywordflow">else</span></div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> cout << <span class="stringliteral">"Listen: IPv6 isn't supported\n"</span>;</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">return</span> NULL;</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span>}</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classServer.html#a5738134631f6bab9a26ca0687d86f21f"> 79</a></span>std::vector<Master *> <a class="code hl_function" href="classServer.html#a5738134631f6bab9a26ca0687d86f21f">Server::get_sockets</a>(<a class="code hl_class" href="classJSONNode.html">JSONNode</a> *server) {</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <a class="code hl_typedef" href="webserv_8hpp.html#adfa52a9e5ae79ca0eff47012a29449e3">JSONObject</a> datas = server-><a class="code hl_function" href="classJSONNode.html#a6412ecbb284cfddb5de9818b72c785f9">obj</a>();</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> std::vector<Master *> ret;</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_class" href="classMaster.html">Master</a> *tmp;</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <a class="code hl_struct" href="structip__port__s.html">ip_port_t</a> listen;</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">if</span> (datas[<span class="stringliteral">"listens"</span>]) {</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_typedef" href="webserv_8hpp.html#aa3529ef9abc60facb73497ed5062d913">JSONList</a> listens = datas[<span class="stringliteral">"listens"</span>]->lst();</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keywordflow">for</span> (JSONList::iterator it = listens.begin(); it != listens.end(); it++) {</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">if</span> ((tmp = <a class="code hl_function" href="classServer.html#a6c46d7b86956f508b1c0bfe125b03993">create_master</a>((*it)->str())))</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> ret.push_back(tmp);</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> }</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((tmp = <a class="code hl_function" href="classServer.html#a6c46d7b86956f508b1c0bfe125b03993">create_master</a>(<span class="stringliteral">"0.0.0.0"</span>)))</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> ret.push_back(tmp);</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span>}</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> </div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classServer.html#a0664c62a66a7e3e41d48c286c55a90a9"> 102</a></span><a class="code hl_class" href="classRoute.html">Route</a> *<a class="code hl_function" href="classServer.html#a0664c62a66a7e3e41d48c286c55a90a9">Server::choose_route</a>(<span class="keywordtype">string</span> uri) {</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <a class="code hl_typedef" href="webserv_8hpp.html#aba96a6988a5bc02b5c8b908af07d0bbb">vec_string</a> uri_words, loc_words;</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> uri_words = <a class="code hl_function" href="tools_8cpp.html#a4a79e98b5dec14d16875307f7e77dfb3">split</a>(uri, <span class="stringliteral">"/"</span>);</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordflow">for</span> (std::map<string, Route *>::iterator loc_it = <a class="code hl_variable" href="classServer.html#aebc8d22ef79e648de88441c37fb1db46">_routes</a>.begin(); loc_it != <a class="code hl_variable" href="classServer.html#aebc8d22ef79e648de88441c37fb1db46">_routes</a>.end(); loc_it++) {</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> loc_words = <a class="code hl_function" href="tools_8cpp.html#a4a79e98b5dec14d16875307f7e77dfb3">split</a>((*loc_it).first, <span class="stringliteral">"/"</span>);</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> vec_string::iterator loc_word = loc_words.begin();</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keywordflow">for</span> (vec_string::iterator uri_word = uri_words.begin(); uri_word < uri_words.end(); uri_word++) {</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">while</span> (uri_word != uri_words.end() && *uri_word == <span class="stringliteral">""</span>)</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> uri_word++;</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">if</span> (*uri_word != *(loc_word++))</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keywordflow">while</span> (loc_word != loc_words.end() && *loc_word == <span class="stringliteral">""</span>)</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> loc_word++;</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keywordflow">if</span> (loc_word == loc_words.end())</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keywordflow">return</span> ((*loc_it).second);</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> }</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordflow">return</span> <span class="keyword">this</span>;</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span>}</div>
|
|
<div class="ttc" id="aclassJSONNode_html"><div class="ttname"><a href="classJSONNode.html">JSONNode</a></div><div class="ttdef"><b>Definition:</b> <a href="Nodes_8hpp_source.html#l00004">Nodes.hpp:4</a></div></div>
|
|
<div class="ttc" id="aclassJSONNode_html_a6412ecbb284cfddb5de9818b72c785f9"><div class="ttname"><a href="classJSONNode.html#a6412ecbb284cfddb5de9818b72c785f9">JSONNode::obj</a></div><div class="ttdeci">JSONObject obj()</div><div class="ttdef"><b>Definition:</b> <a href="Nodes_8cpp_source.html#l00003">Nodes.cpp:3</a></div></div>
|
|
<div class="ttc" id="aclassMaster_html"><div class="ttname"><a href="classMaster.html">Master</a></div><div class="ttdef"><b>Definition:</b> <a href="Master_8hpp_source.html#l00004">Master.hpp:4</a></div></div>
|
|
<div class="ttc" id="aclassRoute_html"><div class="ttname"><a href="classRoute.html">Route</a></div><div class="ttdef"><b>Definition:</b> <a href="Route_8hpp_source.html#l00004">Route.hpp:4</a></div></div>
|
|
<div class="ttc" id="aclassServer_html_a0664c62a66a7e3e41d48c286c55a90a9"><div class="ttname"><a href="classServer.html#a0664c62a66a7e3e41d48c286c55a90a9">Server::choose_route</a></div><div class="ttdeci">Route * choose_route(string uri)</div><div class="ttdoc">Choose the route an uri asked to the server.</div><div class="ttdef"><b>Definition:</b> <a href="Server_8cpp_source.html#l00102">Server.cpp:102</a></div></div>
|
|
<div class="ttc" id="aclassServer_html_a5738134631f6bab9a26ca0687d86f21f"><div class="ttname"><a href="classServer.html#a5738134631f6bab9a26ca0687d86f21f">Server::get_sockets</a></div><div class="ttdeci">std::vector< Master * > get_sockets(JSONNode *server)</div><div class="ttdoc">Create server's defined sockets:</div><div class="ttdef"><b>Definition:</b> <a href="Server_8cpp_source.html#l00079">Server.cpp:79</a></div></div>
|
|
<div class="ttc" id="aclassServer_html_a6c46d7b86956f508b1c0bfe125b03993"><div class="ttname"><a href="classServer.html#a6c46d7b86956f508b1c0bfe125b03993">Server::create_master</a></div><div class="ttdeci">Master * create_master(string str)</div><div class="ttdoc">Master socket safe creation.</div><div class="ttdef"><b>Definition:</b> <a href="Server_8cpp_source.html#l00056">Server.cpp:56</a></div></div>
|
|
<div class="ttc" id="aclassServer_html_a6fecdbd597c344d2ae004ff72fdbef74"><div class="ttname"><a href="classServer.html#a6fecdbd597c344d2ae004ff72fdbef74">Server::_listens</a></div><div class="ttdeci">std::vector< ip_port_t > _listens</div><div class="ttdoc">The list of listens the server which are linked to the server.</div><div class="ttdef"><b>Definition:</b> <a href="Server_8hpp_source.html#l00009">Server.hpp:9</a></div></div>
|
|
<div class="ttc" id="aclassServer_html_a803b89b673283131d2ae765c82923f8d"><div class="ttname"><a href="classServer.html#a803b89b673283131d2ae765c82923f8d">Server::~Server</a></div><div class="ttdeci">~Server(void)</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="Server_8cpp_source.html#l00038">Server.cpp:38</a></div></div>
|
|
<div class="ttc" id="aclassServer_html_a95c77245a1a0a9fd09926fc8e9661ebe"><div class="ttname"><a href="classServer.html#a95c77245a1a0a9fd09926fc8e9661ebe">Server::_name</a></div><div class="ttdeci">string _name</div><div class="ttdoc">The server name.</div><div class="ttdef"><b>Definition:</b> <a href="Server_8hpp_source.html#l00005">Server.hpp:5</a></div></div>
|
|
<div class="ttc" id="aclassServer_html_aa7907c537140a174ab5096f7e25d9b40"><div class="ttname"><a href="classServer.html#aa7907c537140a174ab5096f7e25d9b40">Server::Server</a></div><div class="ttdeci">Server(JSONNode *server)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="Server_8cpp_source.html#l00020">Server.cpp:20</a></div></div>
|
|
<div class="ttc" id="aclassServer_html_ab957b5aafbabdc8f108cf68bfb5968c9"><div class="ttname"><a href="classServer.html#ab957b5aafbabdc8f108cf68bfb5968c9">Server::getName</a></div><div class="ttdeci">string getName(void)</div><div class="ttdef"><b>Definition:</b> <a href="Server_8cpp_source.html#l00047">Server.cpp:47</a></div></div>
|
|
<div class="ttc" id="aclassServer_html_aebc8d22ef79e648de88441c37fb1db46"><div class="ttname"><a href="classServer.html#aebc8d22ef79e648de88441c37fb1db46">Server::_routes</a></div><div class="ttdeci">std::map< string, Route * > _routes</div><div class="ttdoc">The server's routings with a route object as object and his location as key.</div><div class="ttdef"><b>Definition:</b> <a href="Server_8hpp_source.html#l00006">Server.hpp:6</a></div></div>
|
|
<div class="ttc" id="astructip__port__s_html"><div class="ttname"><a href="structip__port__s.html">ip_port_s</a></div><div class="ttdef"><b>Definition:</b> <a href="webserv_8hpp_source.html#l00035">webserv.hpp:35</a></div></div>
|
|
<div class="ttc" id="astructip__port__s_html_afb20776a9723a50ac32fd9b8248b3e0c"><div class="ttname"><a href="structip__port__s.html#afb20776a9723a50ac32fd9b8248b3e0c">ip_port_s::ip</a></div><div class="ttdeci">string ip</div><div class="ttdef"><b>Definition:</b> <a href="webserv_8hpp_source.html#l00037">webserv.hpp:37</a></div></div>
|
|
<div class="ttc" id="atools_8cpp_html_a4a79e98b5dec14d16875307f7e77dfb3"><div class="ttname"><a href="tools_8cpp.html#a4a79e98b5dec14d16875307f7e77dfb3">split</a></div><div class="ttdeci">vec_string split(string str, string delim)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8cpp_source.html#l00020">tools.cpp:20</a></div></div>
|
|
<div class="ttc" id="atools_8cpp_html_a6e7e23c21ae956b6859a6f3ec9793358"><div class="ttname"><a href="tools_8cpp.html#a6e7e23c21ae956b6859a6f3ec9793358">get_ip_port_t</a></div><div class="ttdeci">ip_port_t get_ip_port_t(string listen)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8cpp_source.html#l00035">tools.cpp:35</a></div></div>
|
|
<div class="ttc" id="awebserv_8hpp_html"><div class="ttname"><a href="webserv_8hpp.html">webserv.hpp</a></div></div>
|
|
<div class="ttc" id="awebserv_8hpp_html_aa3529ef9abc60facb73497ed5062d913"><div class="ttname"><a href="webserv_8hpp.html#aa3529ef9abc60facb73497ed5062d913">JSONList</a></div><div class="ttdeci">std::vector< JSONNode * > JSONList</div><div class="ttdef"><b>Definition:</b> <a href="webserv_8hpp_source.html#l00049">webserv.hpp:49</a></div></div>
|
|
<div class="ttc" id="awebserv_8hpp_html_aba96a6988a5bc02b5c8b908af07d0bbb"><div class="ttname"><a href="webserv_8hpp.html#aba96a6988a5bc02b5c8b908af07d0bbb">vec_string</a></div><div class="ttdeci">std::vector< string > vec_string</div><div class="ttdef"><b>Definition:</b> <a href="webserv_8hpp_source.html#l00050">webserv.hpp:50</a></div></div>
|
|
<div class="ttc" id="awebserv_8hpp_html_adfa52a9e5ae79ca0eff47012a29449e3"><div class="ttname"><a href="webserv_8hpp.html#adfa52a9e5ae79ca0eff47012a29449e3">JSONObject</a></div><div class="ttdeci">std::map< string, JSONNode * > JSONObject</div><div class="ttdef"><b>Definition:</b> <a href="webserv_8hpp_source.html#l00048">webserv.hpp:48</a></div></div>
|
|
</div><!-- fragment --></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>
|
|
|