http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b298f58/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp.html index 2ae4598..564622e 100644 --- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp.html +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp.html @@ -85,7 +85,7 @@ Namespaces</h2></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> -<tr class="memitem:a06b5d831710f3993abe32fbb3ff69f12"><td class="memItemLeft" align="right" valign="top"><a class="el" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12">os::clone</a> (const lambda::function< int()> &func, int flags, <a class="el" href="classOption.html">Option</a>< Stack > stack=<a class="el" href="structNone.html">None</a>())</td></tr> +<tr class="memitem:a06b5d831710f3993abe32fbb3ff69f12"><td class="memItemLeft" align="right" valign="top"><a class="el" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12">os::clone</a> (const lambda::function< int()> &func, int <a class="el" href="decoder_8hpp.html#abb0829cce9dd20a40ae0d86890ae85c6">flags</a>, <a class="el" href="classOption.html">Option</a>< Stack > stack=<a class="el" href="structNone.html">None</a>())</td></tr> <tr class="separator:a06b5d831710f3993abe32fbb3ff69f12"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae19e4161a51b86a1f330f3bf1dc75389"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classResult.html">Result</a>< Process > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">os::process</a> (<a class="el" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> pid)</td></tr> <tr class="separator:ae19e4161a51b86a1f330f3bf1dc75389"><td class="memSeparator" colspan="2"> </td></tr>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b298f58/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp_source.html index 4502c8a..55cd86a 100644 --- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp_source.html +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp_source.html @@ -156,7 +156,7 @@ <div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div> <div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12"> 103</a></span> <span class="keyword">inline</span> <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> <a class="code" href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12">clone</a>(</div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">const</span> lambda::function<<span class="keywordtype">int</span>()>& func,</div> -<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">int</span> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">flags</a>,</div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">int</span> <a class="code" href="decoder_8hpp.html#abb0829cce9dd20a40ae0d86890ae85c6">flags</a>,</div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="classOption.html">Option<Stack></a> stack = <a class="code" href="structNone.html">None</a>())</div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span> {</div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">// Stack for the child.</span></div> @@ -176,7 +176,7 @@ <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  cleanup = <span class="keyword">true</span>;</div> <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  }</div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div> -<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> pid = <a class="code" href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12">::clone</a>(childMain, stack->start(), <a class="code" href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">flags</a>, (<span class="keywordtype">void</span>*) &func);</div> +<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> pid = <a class="code" href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12">::clone</a>(childMain, stack->start(), <a class="code" href="decoder_8hpp.html#abb0829cce9dd20a40ae0d86890ae85c6">flags</a>, (<span class="keywordtype">void</span>*) &func);</div> <div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="comment">// Given we allocated the stack ourselves, there are two</span></div> <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="comment">// circumstances where we need to delete the allocated stack to</span></div> @@ -317,6 +317,7 @@ <div class="ttc" id="namespaceproc_html_a4ba22836c31ab565d5670129aac0a34d"><div class="ttname"><a href="namespaceproc.html#a4ba22836c31ab565d5670129aac0a34d">proc::cmdline</a></div><div class="ttdeci">Result< std::string > cmdline(const Option< pid_t > &pid=None())</div><div class="ttdef"><b>Definition:</b> proc.hpp:256</div></div> <div class="ttc" id="structproc_1_1ProcessStatus_html_afd1efc7ade695e958b4f523cb4c65bbd"><div class="ttname"><a href="structproc_1_1ProcessStatus.html#afd1efc7ade695e958b4f523cb4c65bbd">proc::ProcessStatus::pid</a></div><div class="ttdeci">const pid_t pid</div><div class="ttdef"><b>Definition:</b> proc.hpp:126</div></div> <div class="ttc" id="namespaceos_html_ae19e4161a51b86a1f330f3bf1dc75389"><div class="ttname"><a href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">os::process</a></div><div class="ttdeci">Result< Process > process(pid_t pid)</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:30</div></div> +<div class="ttc" id="decoder_8hpp_html_abb0829cce9dd20a40ae0d86890ae85c6"><div class="ttname"><a href="decoder_8hpp.html#abb0829cce9dd20a40ae0d86890ae85c6">flags</a></div><div class="ttdeci">#define flags</div><div class="ttdef"><b>Definition:</b> decoder.hpp:18</div></div> <div class="ttc" id="error_8hpp_html"><div class="ttname"><a href="error_8hpp.html">error.hpp</a></div></div> <div class="ttc" id="structNone_html"><div class="ttname"><a href="structNone.html">None</a></div><div class="ttdef"><b>Definition:</b> none.hpp:27</div></div> <div class="ttc" id="classTry_html_a0b98f95163b8a38daafd1651b043a276"><div class="ttname"><a href="classTry.html#a0b98f95163b8a38daafd1651b043a276">Try::isError</a></div><div class="ttdeci">bool isError() const </div><div class="ttdef"><b>Definition:</b> try.hpp:71</div></div> @@ -328,11 +329,10 @@ <div class="ttc" id="classResult_html_aeca16ad17d299ad885c9b46c83b12a3d"><div class="ttname"><a href="classResult.html#aeca16ad17d299ad885c9b46c83b12a3d">Result::isError</a></div><div class="ttdeci">bool isError() const </div><div class="ttdef"><b>Definition:</b> result.hpp:110</div></div> <div class="ttc" id="classos_1_1Stack_html_ab75d73670daab10124d04b9e8e4e72b0"><div class="ttname"><a href="classos_1_1Stack.html#ab75d73670daab10124d04b9e8e4e72b0">os::Stack::start</a></div><div class="ttdeci">char * start()</div><div class="ttdef"><b>Definition:</b> linux.hpp:90</div></div> <div class="ttc" id="classBytes_html"><div class="ttname"><a href="classBytes.html">Bytes</a></div><div class="ttdef"><b>Definition:</b> bytes.hpp:30</div></div> -<div class="ttc" id="namespaceos_html_a23a7b8f4b4c145ad212381e89d4b6dc4"><div class="ttname"><a href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">os::memory</a></div><div class="ttdeci">Try< Memory > memory()</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:77</div></div> -<div class="ttc" id="namespaceos_html_a42af1cab63434cedf2b698cd6f49f073"><div class="ttname"><a href="namespaceos.html#a42af1cab63434cedf2b698cd6f49f073">os::pids</a></div><div class="ttdeci">Try< std::set< pid_t > > pids()</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:61</div></div> +<div class="ttc" id="namespaceos_html_a23a7b8f4b4c145ad212381e89d4b6dc4"><div class="ttname"><a href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">os::memory</a></div><div class="ttdeci">Try< Memory > memory()</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:78</div></div> +<div class="ttc" id="namespaceos_html_a42af1cab63434cedf2b698cd6f49f073"><div class="ttname"><a href="namespaceos.html#a42af1cab63434cedf2b698cd6f49f073">os::pids</a></div><div class="ttdeci">Try< std::set< pid_t > > pids()</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:62</div></div> <div class="ttc" id="classTry_html_a7be0768038e0628632492edf6cc1515a"><div class="ttname"><a href="classTry.html#a7be0768038e0628632492edf6cc1515a">Try::get</a></div><div class="ttdeci">const T & get() const </div><div class="ttdef"><b>Definition:</b> try.hpp:73</div></div> <div class="ttc" id="namespaceprocess_1_1internal_html_a902e2646d88c41ce674a3009cafe0aad"><div class="ttname"><a href="namespaceprocess_1_1internal.html#a902e2646d88c41ce674a3009cafe0aad">process::internal::childMain</a></div><div class="ttdeci">int childMain(const std::string &path, char **argv, char **envp, const InputFileDescriptors &stdinfds, const OutputFileDescriptors &stdoutfds, const OutputFileDescriptors &stderrfds, bool blocking, int pipes[2], const std::vector< Subprocess::ChildHook > &child_hooks)</div><div class="ttdef"><b>Definition:</b> subprocess.hpp:106</div></div> -<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_af8289f648a916c3f66923867452c7b1b"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">mesos::internal::tests::flags</a></div><div class="ttdeci">Flags flags</div></div> <div class="ttc" id="classos_1_1Stack_html"><div class="ttname"><a href="classos_1_1Stack.html">os::Stack</a></div><div class="ttdef"><b>Definition:</b> linux.hpp:54</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b298f58/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2raw_2environment_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2raw_2environment_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2raw_2environment_8hpp_source.html index 0e3d1a4..dcc2e0c 100644 --- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2raw_2environment_8hpp_source.html +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2raw_2environment_8hpp_source.html @@ -110,7 +110,7 @@ <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment">//</span></div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment">// NOTE: These functions were originally called `environment` and not `environ`</span></div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment">// because on Windows, `environ` is a macro, and not an `extern char**` as it</span></div> -<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment">// is in the POSIX standard. The existance of this macro on Windows makes it</span></div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment">// is in the POSIX standard. The existence of this macro on Windows makes it</span></div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment">// impossible to use a function called `os::environ`.</span></div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">namespace </span>os {</div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">namespace </span>raw {</div> @@ -249,18 +249,18 @@ <div class="line"><a name="l00195"></a><span class="lineno"> 195</span> } <span class="comment">// namespace os {</span></div> <div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div> <div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="preprocessor">#endif // __STOUT_OS_RAW_ENVIRONMENT_HPP__</span></div> -<div class="ttc" id="structJSON_1_1Value_html_a32ddf233c0ec159c4d72252529219cf6"><div class="ttname"><a href="structJSON_1_1Value.html#a32ddf233c0ec159c4d72252529219cf6">JSON::Value::as</a></div><div class="ttdeci">const T & as() const </div><div class="ttdef"><b>Definition:</b> json.hpp:339</div></div> +<div class="ttc" id="structJSON_1_1Value_html_a32ddf233c0ec159c4d72252529219cf6"><div class="ttname"><a href="structJSON_1_1Value.html#a32ddf233c0ec159c4d72252529219cf6">JSON::Value::as</a></div><div class="ttdeci">const T & as() const </div><div class="ttdef"><b>Definition:</b> json.hpp:342</div></div> <div class="ttc" id="json_8hpp_html"><div class="ttname"><a href="json_8hpp.html">json.hpp</a></div></div> <div class="ttc" id="namespaceos_1_1raw_html_a255f9fd6996adf47571d24586f9ba8fe"><div class="ttname"><a href="namespaceos_1_1raw.html#a255f9fd6996adf47571d24586f9ba8fe">os::raw::environmentp</a></div><div class="ttdeci">char *** environmentp()</div><div class="ttdef"><b>Definition:</b> environment.hpp:88</div></div> -<div class="ttc" id="structJSON_1_1Object_html"><div class="ttname"><a href="structJSON_1_1Object.html">JSON::Object</a></div><div class="ttdef"><b>Definition:</b> json.hpp:151</div></div> +<div class="ttc" id="structJSON_1_1Object_html"><div class="ttname"><a href="structJSON_1_1Object.html">JSON::Object</a></div><div class="ttdef"><b>Definition:</b> json.hpp:154</div></div> <div class="ttc" id="classos_1_1raw_1_1Envp_html_adff3c86f4cc4cc59a05e99e390a2ca36"><div class="ttname"><a href="classos_1_1raw_1_1Envp.html#adff3c86f4cc4cc59a05e99e390a2ca36">os::raw::Envp::Envp</a></div><div class="ttdeci">Envp(const JSON::Object &object)</div><div class="ttdef"><b>Definition:</b> environment.hpp:149</div></div> <div class="ttc" id="namespacerouting_1_1link_html_a26486cdba01ef1c80706b1e07e8a6d3f"><div class="ttname"><a href="namespacerouting_1_1link.html#a26486cdba01ef1c80706b1e07e8a6d3f">routing::link::index</a></div><div class="ttdeci">Result< int > index(const std::string &link)</div></div> <div class="ttc" id="classos_1_1raw_1_1Envp_html"><div class="ttname"><a href="classos_1_1raw_1_1Envp.html">os::raw::Envp</a></div><div class="ttdef"><b>Definition:</b> environment.hpp:119</div></div> <div class="ttc" id="foreach_8hpp_html_a66900b166526abe66464d6597536b111"><div class="ttname"><a href="foreach_8hpp.html#a66900b166526abe66464d6597536b111">foreachpair</a></div><div class="ttdeci">#define foreachpair(KEY, VALUE, ELEMS)</div><div class="ttdef"><b>Definition:</b> foreach.hpp:51</div></div> -<div class="ttc" id="structJSON_1_1Value_html"><div class="ttname"><a href="structJSON_1_1Value.html">JSON::Value</a></div><div class="ttdef"><b>Definition:</b> json.hpp:242</div></div> +<div class="ttc" id="structJSON_1_1Value_html"><div class="ttname"><a href="structJSON_1_1Value.html">JSON::Value</a></div><div class="ttdef"><b>Definition:</b> json.hpp:245</div></div> <div class="ttc" id="foreach_8hpp_html"><div class="ttname"><a href="foreach_8hpp.html">foreach.hpp</a></div></div> <div class="ttc" id="classos_1_1raw_1_1Envp_html_a190fc8106950a6e562fc9acca51b0844"><div class="ttname"><a href="classos_1_1raw_1_1Envp.html#a190fc8106950a6e562fc9acca51b0844">os::raw::Envp::Envp</a></div><div class="ttdeci">Envp(const Map &map)</div><div class="ttdef"><b>Definition:</b> environment.hpp:131</div></div> -<div class="ttc" id="structJSON_1_1String_html"><div class="ttname"><a href="structJSON_1_1String.html">JSON::String</a></div><div class="ttdef"><b>Definition:</b> json.hpp:72</div></div> +<div class="ttc" id="structJSON_1_1String_html"><div class="ttname"><a href="structJSON_1_1String.html">JSON::String</a></div><div class="ttdef"><b>Definition:</b> json.hpp:75</div></div> <div class="ttc" id="stringify_8hpp_html"><div class="ttname"><a href="stringify_8hpp.html">stringify.hpp</a></div></div> <div class="ttc" id="3rdparty_2stout_2include_2stout_2os_2raw_2environment_8hpp_html_aa006daaf11f1e2e45a6ababaf463212b"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2os_2raw_2environment_8hpp.html#aa006daaf11f1e2e45a6ababaf463212b">environ</a></div><div class="ttdeci">char ** environ</div></div> <div class="ttc" id="classos_1_1raw_1_1Envp_html_ade95b03756bcee62904337357ddaeee3"><div class="ttname"><a href="classos_1_1raw_1_1Envp.html#ade95b03756bcee62904337357ddaeee3">os::raw::Envp::Envp</a></div><div class="ttdeci">Envp(Envp &&that)</div><div class="ttdef"><b>Definition:</b> environment.hpp:122</div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b298f58/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2windows_2read_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2windows_2read_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2windows_2read_8hpp_source.html index f7bbf26..7543e54 100644 --- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2windows_2read_8hpp_source.html +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2windows_2read_8hpp_source.html @@ -108,7 +108,7 @@ <div class="ttc" id="stout_2include_2stout_2os_2socket_8hpp_html"><div class="ttname"><a href="stout_2include_2stout_2os_2socket_8hpp.html">socket.hpp</a></div></div> <div class="ttc" id="result_8hpp_html"><div class="ttname"><a href="result_8hpp.html">result.hpp</a></div></div> <div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div> -<div class="ttc" id="namespacenet_html_a5b5c23ac2d0fa4ccaedff024f2d9a32c"><div class="ttname"><a href="namespacenet.html#a5b5c23ac2d0fa4ccaedff024f2d9a32c">net::recv</a></div><div class="ttdeci">ssize_t recv(const os::WindowsFD &fd, void *buf, size_t len, int flags)</div><div class="ttdef"><b>Definition:</b> socket.hpp:140</div></div> +<div class="ttc" id="namespacenet_html_a5b5c23ac2d0fa4ccaedff024f2d9a32c"><div class="ttname"><a href="namespacenet.html#a5b5c23ac2d0fa4ccaedff024f2d9a32c">net::recv</a></div><div class="ttdeci">ssize_t recv(const os::WindowsFD &fd, void *buf, size_t len, int flags)</div><div class="ttdef"><b>Definition:</b> socket.hpp:144</div></div> <div class="ttc" id="namespaceos_1_1stat_html_aac17a91dd3f91341b8c4021025e89b04"><div class="ttname"><a href="namespaceos_1_1stat.html#aac17a91dd3f91341b8c4021025e89b04">os::stat::size</a></div><div class="ttdeci">Try< Bytes > size(const std::string &path, const FollowSymlink follow=FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:88</div></div> <div class="ttc" id="unreachable_8hpp_html_a0bc63b24b654ca433be7b97a3edde132"><div class="ttname"><a href="unreachable_8hpp.html#a0bc63b24b654ca433be7b97a3edde132">UNREACHABLE</a></div><div class="ttdeci">#define UNREACHABLE()</div><div class="ttdef"><b>Definition:</b> unreachable.hpp:22</div></div> <div class="ttc" id="namespaceos_html_aa1d97ff0a93229e1fe6b33e3e2d567f7"><div class="ttname"><a href="namespaceos.html#aa1d97ff0a93229e1fe6b33e3e2d567f7">os::read</a></div><div class="ttdeci">Result< std::string > read(int_fd fd, size_t size)</div><div class="ttdef"><b>Definition:</b> read.hpp:50</div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b298f58/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2ip_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2ip_8hpp.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2ip_8hpp.html new file mode 100644 index 0000000..a1b3930 --- /dev/null +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2ip_8hpp.html @@ -0,0 +1,80 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.5"/> +<title>Apache Mesos: 3rdparty/stout/include/stout/posix/ip.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="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 style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_aa547de1d719d14adccfca1dfb1735b3.html">stout</a></li><li class="navelem"><a class="el" href="dir_1a1b923d951dd999d43396870333fc33.html">include</a></li><li class="navelem"><a class="el" href="dir_dbd52553d038069c1ed93e3477ea333d.html">stout</a></li><li class="navelem"><a class="el" href="dir_9cb1ae816c363e37a0e44de226ea8c89.html">posix</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#namespaces">Namespaces</a> </div> + <div class="headertitle"> +<div class="title">ip.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <ifaddrs.h></code><br/> +<code>#include <sys/types.h></code><br/> +<code>#include <string></code><br/> +<code>#include <<a class="el" href="error_8hpp_source.html">stout/error.hpp</a>></code><br/> +<code>#include <<a class="el" href="none_8hpp_source.html">stout/none.hpp</a>></code><br/> +<code>#include <<a class="el" href="result_8hpp_source.html">stout/result.hpp</a>></code><br/> +<code>#include <<a class="el" href="try_8hpp_source.html">stout/try.hpp</a>></code><br/> +</div> +<p><a href="3rdparty_2stout_2include_2stout_2posix_2ip_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 name="namespaces"></a> +Namespaces</h2></td></tr> +<tr class="memitem:namespacenet"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenet.html">net</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table> +</div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b298f58/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2ip_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2ip_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2ip_8hpp_source.html new file mode 100644 index 0000000..427a173 --- /dev/null +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2ip_8hpp_source.html @@ -0,0 +1,179 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.5"/> +<title>Apache Mesos: 3rdparty/stout/include/stout/posix/ip.hpp 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="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 style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_aa547de1d719d14adccfca1dfb1735b3.html">stout</a></li><li class="navelem"><a class="el" href="dir_1a1b923d951dd999d43396870333fc33.html">include</a></li><li class="navelem"><a class="el" href="dir_dbd52553d038069c1ed93e3477ea333d.html">stout</a></li><li class="navelem"><a class="el" href="dir_9cb1ae816c363e37a0e44de226ea8c89.html">posix</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">ip.hpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="3rdparty_2stout_2include_2stout_2posix_2ip_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_POSIX_IP_HPP__</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span><span class="preprocessor">#define __STOUT_POSIX_IP_HPP__</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <ifaddrs.h></span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <sys/types.h></span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <string></span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="none_8hpp.html">stout/none.hpp</a>></span></div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="result_8hpp.html">stout/result.hpp</a>></span></div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">namespace </span>net {</div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> +<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classnet_1_1IPNetwork.html#ae3b0f30eb04ac069e377f62afae08a42"> 30</a></span> <span class="keyword">inline</span> <a class="code" href="classResult.html">Result<IPNetwork></a> <a class="code" href="classnet_1_1IPNetwork.html#ae3b0f30eb04ac069e377f62afae08a42">IPNetwork::fromLinkDevice</a>(</div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">const</span> std::string& <a class="code" href="namespaceos_1_1Shell.html#acfe16ef2b1146ad49a8651c0a457ce46">name</a>,</div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordtype">int</span> family)</div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">if</span> (family != AF_INET && family != AF_INET6) {</div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Unsupported family type: "</span> + <a class="code" href="namespacens.html#a28116b46e6543597a11733424cd1aa20">stringify</a>(family));</div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  }</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">struct </span>ifaddrs* ifaddr = <span class="keyword">nullptr</span>;</div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">if</span> (getifaddrs(&ifaddr) == -1) {</div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">return</span> <a class="code" href="classErrnoError.html">ErrnoError</a>();</div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  }</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="comment">// Indicates whether the link device is found or not.</span></div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">for</span> (<span class="keyword">struct</span> ifaddrs* ifa = ifaddr; ifa != <span class="keyword">nullptr</span>; ifa = ifa->ifa_next) {</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">if</span> (ifa->ifa_name != <span class="keyword">nullptr</span> && !strcmp(ifa->ifa_name, name.c_str())) {</div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  found = <span class="keyword">true</span>;</div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">if</span> (ifa->ifa_addr != <span class="keyword">nullptr</span> && ifa->ifa_addr->sa_family == family) {</div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="classnet_1_1IP.html">IP</a> <a class="code" href="classnet_1_1IPNetwork.html#a9986306f9653245f55f4570771726a67">address</a> = <a class="code" href="classnet_1_1IP.html#ada206eb1ab14c032f071daf9b8c1b96c">IP::create</a>(*ifa->ifa_addr).get();</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">if</span> (ifa->ifa_netmask != <span class="keyword">nullptr</span> &&</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  ifa->ifa_netmask->sa_family == family) {</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classnet_1_1IP.html">IP</a> <a class="code" href="classnet_1_1IPNetwork.html#a68e36065af86781ad06a285bcb120ed4">netmask</a> = <a class="code" href="classnet_1_1IP.html#ada206eb1ab14c032f071daf9b8c1b96c">IP::create</a>(*ifa->ifa_netmask).get();</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  freeifaddrs(ifaddr);</div> +<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classTry.html">Try<IPNetwork></a> network = <a class="code" href="classnet_1_1IPNetwork.html#a29645a80f4a422825dcd402f86f138e6">IPNetwork::create</a>(address, netmask);</div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">if</span> (network.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(network.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">return</span> network.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>();</div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  }</div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  freeifaddrs(ifaddr);</div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// Note that this is the case where netmask is not specified.</span></div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="comment">// We've seen such cases when VPN is used. In that case, a</span></div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="comment">// default /32 prefix for IPv4 and /64 for IPv6 is used.</span></div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordtype">int</span> <a class="code" href="classnet_1_1IPNetwork.html#a119a8f122571f5532146b8130c0c0a50">prefix</a> = (family == AF_INET ? 32 : 64);</div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="classTry.html">Try<IPNetwork></a> network = <a class="code" href="classnet_1_1IPNetwork.html#a29645a80f4a422825dcd402f86f138e6">IPNetwork::create</a>(address, prefix);</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">if</span> (network.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(network.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">return</span> network.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>();</div> +<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div> +<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  }</div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div> +<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div> +<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  freeifaddrs(ifaddr);</div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div> +<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">if</span> (!found) {</div> +<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Cannot find the link device"</span>);</div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div> +<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div> +<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> }</div> +<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> } <span class="comment">// namespace net {</span></div> +<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="preprocessor">#endif // __STOUT_POSIX_IP_HPP__</span></div> +<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div> +<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> try.hpp:34</div></div> +<div class="ttc" id="none_8hpp_html"><div class="ttname"><a href="none_8hpp.html">none.hpp</a></div></div> +<div class="ttc" id="classErrnoError_html"><div class="ttname"><a href="classErrnoError.html">ErrnoError</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:44</div></div> +<div class="ttc" id="result_8hpp_html"><div class="ttname"><a href="result_8hpp.html">result.hpp</a></div></div> +<div class="ttc" id="classResult_html"><div class="ttname"><a href="classResult.html">Result</a></div><div class="ttdef"><b>Definition:</b> result.hpp:40</div></div> +<div class="ttc" id="classnet_1_1IPNetwork_html_a29645a80f4a422825dcd402f86f138e6"><div class="ttname"><a href="classnet_1_1IPNetwork.html#a29645a80f4a422825dcd402f86f138e6">net::IPNetwork::create</a></div><div class="ttdeci">static Try< IPNetwork > create(const IP &address, const IP &netmask)</div><div class="ttdef"><b>Definition:</b> ip.hpp:458</div></div> +<div class="ttc" id="classnet_1_1IP_html"><div class="ttname"><a href="classnet_1_1IP.html">net::IP</a></div><div class="ttdef"><b>Definition:</b> ip.hpp:75</div></div> +<div class="ttc" id="classTry_html_aec4a11ddd3c036e889d90b7eb6258ba7"><div class="ttname"><a href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">Try::error</a></div><div class="ttdeci">static Try error(const E &e)</div><div class="ttdef"><b>Definition:</b> try.hpp:42</div></div> +<div class="ttc" id="error_8hpp_html"><div class="ttname"><a href="error_8hpp.html">error.hpp</a></div></div> +<div class="ttc" id="structNone_html"><div class="ttname"><a href="structNone.html">None</a></div><div class="ttdef"><b>Definition:</b> none.hpp:27</div></div> +<div class="ttc" id="classTry_html_a0b98f95163b8a38daafd1651b043a276"><div class="ttname"><a href="classTry.html#a0b98f95163b8a38daafd1651b043a276">Try::isError</a></div><div class="ttdeci">bool isError() const </div><div class="ttdef"><b>Definition:</b> try.hpp:71</div></div> +<div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div> +<div class="ttc" id="classnet_1_1IPNetwork_html_a68e36065af86781ad06a285bcb120ed4"><div class="ttname"><a href="classnet_1_1IPNetwork.html#a68e36065af86781ad06a285bcb120ed4">net::IPNetwork::netmask</a></div><div class="ttdeci">IP netmask() const </div><div class="ttdef"><b>Definition:</b> ip.hpp:375</div></div> +<div class="ttc" id="classnet_1_1IPNetwork_html_a119a8f122571f5532146b8130c0c0a50"><div class="ttname"><a href="classnet_1_1IPNetwork.html#a119a8f122571f5532146b8130c0c0a50">net::IPNetwork::prefix</a></div><div class="ttdeci">int prefix() const </div><div class="ttdef"><b>Definition:</b> ip.hpp:378</div></div> +<div class="ttc" id="namespacens_html_a28116b46e6543597a11733424cd1aa20"><div class="ttname"><a href="namespacens.html#a28116b46e6543597a11733424cd1aa20">ns::stringify</a></div><div class="ttdeci">std::string stringify(int flags)</div><div class="ttdef"><b>Definition:</b> ns.hpp:688</div></div> +<div class="ttc" id="classnet_1_1IPNetwork_html_ae3b0f30eb04ac069e377f62afae08a42"><div class="ttname"><a href="classnet_1_1IPNetwork.html#ae3b0f30eb04ac069e377f62afae08a42">net::IPNetwork::fromLinkDevice</a></div><div class="ttdeci">static Result< IPNetwork > fromLinkDevice(const std::string &name, int family)</div><div class="ttdef"><b>Definition:</b> ip.hpp:30</div></div> +<div class="ttc" id="classnet_1_1IP_html_ada206eb1ab14c032f071daf9b8c1b96c"><div class="ttname"><a href="classnet_1_1IP.html#ada206eb1ab14c032f071daf9b8c1b96c">net::IP::create</a></div><div class="ttdeci">static Try< IP > create(const struct sockaddr_storage &_storage)</div><div class="ttdef"><b>Definition:</b> ip.hpp:259</div></div> +<div class="ttc" id="classTry_html_a7be0768038e0628632492edf6cc1515a"><div class="ttname"><a href="classTry.html#a7be0768038e0628632492edf6cc1515a">Try::get</a></div><div class="ttdeci">const T & get() const </div><div class="ttdef"><b>Definition:</b> try.hpp:73</div></div> +<div class="ttc" id="namespaceos_1_1Shell_html_acfe16ef2b1146ad49a8651c0a457ce46"><div class="ttname"><a href="namespaceos_1_1Shell.html#acfe16ef2b1146ad49a8651c0a457ce46">os::Shell::name</a></div><div class="ttdeci">constexpr const char * name</div><div class="ttdef"><b>Definition:</b> shell.hpp:41</div></div> +<div class="ttc" id="classnet_1_1IPNetwork_html_a9986306f9653245f55f4570771726a67"><div class="ttname"><a href="classnet_1_1IPNetwork.html#a9986306f9653245f55f4570771726a67">net::IPNetwork::address</a></div><div class="ttdeci">IP address() const </div><div class="ttdef"><b>Definition:</b> ip.hpp:373</div></div> +</div><!-- fragment --></div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b298f58/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2net_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2net_8hpp.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2net_8hpp.html index faf04dd..3bfa504 100644 --- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2net_8hpp.html +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2net_8hpp.html @@ -56,6 +56,7 @@ </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <unistd.h></code><br/> +<code>#include <set></code><br/> <code>#include <string></code><br/> <code>#include <<a class="el" href="error_8hpp_source.html">stout/error.hpp</a>></code><br/> <code>#include <<a class="el" href="nothing_8hpp_source.html">stout/nothing.hpp</a>></code><br/> @@ -70,6 +71,8 @@ Namespaces</h2></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> +<tr class="memitem:a308dd33768b3b5ce01dc7a5e4fa1f2d1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< std::set< std::string > > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenet.html#a308dd33768b3b5ce01dc7a5e4fa1f2d1">net::links</a> ()</td></tr> +<tr class="separator:a308dd33768b3b5ce01dc7a5e4fa1f2d1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a804670c0d91cb5433d021ede36dfc341"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< <a class="el" href="structNothing.html">Nothing</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacenet.html#a804670c0d91cb5433d021ede36dfc341">net::setHostname</a> (const std::string &hostname)</td></tr> <tr class="separator:a804670c0d91cb5433d021ede36dfc341"><td class="memSeparator" colspan="2"> </td></tr> </table> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/6b298f58/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2net_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2net_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2net_8hpp_source.html index f6b26de..bb1b691 100644 --- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2net_8hpp_source.html +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2posix_2net_8hpp_source.html @@ -69,34 +69,56 @@ <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <unistd.h></span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div> -<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <string></span></div> -<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div> -<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div> -<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div> -<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <set></span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <string></span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> -<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">namespace </span>net {</div> -<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> -<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// Returns a `Try` of the result of attempting to set the `hostname`.</span></div> -<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="namespacenet.html#a804670c0d91cb5433d021ede36dfc341"> 28</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespacenet.html#a804670c0d91cb5433d021ede36dfc341">setHostname</a>(<span class="keyword">const</span> std::string& <a class="code" href="namespacenet.html#a18b188d54e864e4cdd1f7cac6fb140e4">hostname</a>)</div> -<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> {</div> -<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">if</span> (sethostname(hostname.c_str(), hostname.size()) != 0) {</div> -<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordflow">return</span> <a class="code" href="classErrnoError.html">ErrnoError</a>();</div> -<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div> -<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> -<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div> -<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div> -<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div> -<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> } <span class="comment">// namespace net {</span></div> -<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#endif // __STOUT_POSIX_NET_HPP__</span></div> -<div class="ttc" id="namespacenet_html_a804670c0d91cb5433d021ede36dfc341"><div class="ttname"><a href="namespacenet.html#a804670c0d91cb5433d021ede36dfc341">net::setHostname</a></div><div class="ttdeci">Try< Nothing > setHostname(const std::string &hostname)</div><div class="ttdef"><b>Definition:</b> net.hpp:28</div></div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">namespace </span>net {</div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// Returns the names of all the link devices in the system.</span></div> +<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="namespacenet.html#a308dd33768b3b5ce01dc7a5e4fa1f2d1"> 29</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<std::set<std::string></a>> <a class="code" href="namespacenet.html#a308dd33768b3b5ce01dc7a5e4fa1f2d1">links</a>()</div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">struct </span>ifaddrs* ifaddr = <span class="keyword">nullptr</span>;</div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">if</span> (getifaddrs(&ifaddr) == -1) {</div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">return</span> <a class="code" href="classErrnoError.html">ErrnoError</a>();</div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  }</div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  std::set<std::string> names;</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">for</span> (<span class="keyword">struct</span> ifaddrs* ifa = ifaddr; ifa != <span class="keyword">nullptr</span>; ifa = ifa->ifa_next) {</div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">if</span> (ifa->ifa_name != <span class="keyword">nullptr</span>) {</div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  names.insert(ifa->ifa_name);</div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  }</div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  }</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  freeifaddrs(ifaddr);</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">return</span> names;</div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">// Returns a `Try` of the result of attempting to set the `hostname`.</span></div> +<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespacenet.html#a804670c0d91cb5433d021ede36dfc341"> 49</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespacenet.html#a804670c0d91cb5433d021ede36dfc341">setHostname</a>(<span class="keyword">const</span> std::string& <a class="code" href="namespacenet.html#a18b188d54e864e4cdd1f7cac6fb140e4">hostname</a>)</div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> {</div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">if</span> (sethostname(hostname.c_str(), hostname.size()) != 0) {</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> <a class="code" href="classErrnoError.html">ErrnoError</a>();</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> }</div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> +<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> } <span class="comment">// namespace net {</span></div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor">#endif // __STOUT_POSIX_NET_HPP__</span></div> +<div class="ttc" id="namespacenet_html_a804670c0d91cb5433d021ede36dfc341"><div class="ttname"><a href="namespacenet.html#a804670c0d91cb5433d021ede36dfc341">net::setHostname</a></div><div class="ttdeci">Try< Nothing > setHostname(const std::string &hostname)</div><div class="ttdef"><b>Definition:</b> net.hpp:49</div></div> <div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div> <div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> try.hpp:34</div></div> <div class="ttc" id="classErrnoError_html"><div class="ttname"><a href="classErrnoError.html">ErrnoError</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:44</div></div> <div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div> -<div class="ttc" id="namespacenet_html_a18b188d54e864e4cdd1f7cac6fb140e4"><div class="ttname"><a href="namespacenet.html#a18b188d54e864e4cdd1f7cac6fb140e4">net::hostname</a></div><div class="ttdeci">Try< std::string > hostname()</div><div class="ttdef"><b>Definition:</b> net.hpp:208</div></div> +<div class="ttc" id="namespacenet_html_a308dd33768b3b5ce01dc7a5e4fa1f2d1"><div class="ttname"><a href="namespacenet.html#a308dd33768b3b5ce01dc7a5e4fa1f2d1">net::links</a></div><div class="ttdeci">Try< std::set< std::string > > links()</div><div class="ttdef"><b>Definition:</b> net.hpp:29</div></div> +<div class="ttc" id="namespacenet_html_a18b188d54e864e4cdd1f7cac6fb140e4"><div class="ttname"><a href="namespacenet.html#a18b188d54e864e4cdd1f7cac6fb140e4">net::hostname</a></div><div class="ttdeci">Try< std::string > hostname()</div><div class="ttdef"><b>Definition:</b> net.hpp:209</div></div> <div class="ttc" id="error_8hpp_html"><div class="ttname"><a href="error_8hpp.html">error.hpp</a></div></div> <div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div> </div><!-- fragment --></div><!-- contents -->
