blob: b7f771defbeae9ff087ff44f3e9f82f6927bba32 [file] [log] [blame]
<!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: process::network Namespace 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&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><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="namespaces.html"><span>Namespace&#160;List</span></a></li>
<li><a href="namespacemembers.html"><span>Namespace&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceprocess.html">process</a></li><li class="navelem"><a class="el" href="namespaceprocess_1_1network.html">network</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">process::network Namespace Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceprocess_1_1network_1_1inet"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network_1_1inet.html">inet</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespaceprocess_1_1network_1_1internal"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network_1_1internal.html">internal</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespaceprocess_1_1network_1_1openssl"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network_1_1openssl.html">openssl</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespaceprocess_1_1network_1_1unix"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network_1_1unix.html">unix</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprocess_1_1network_1_1Address.html">Address</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ac88a30c7132c85b7394664e9985aa8ae"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#ac88a30c7132c85b7394664e9985aa8ae">Socket</a> = <a class="el" href="classprocess_1_1network_1_1internal_1_1Socket.html">network::internal::Socket</a>&lt; <a class="el" href="classprocess_1_1network_1_1Address.html">network::Address</a> &gt;</td></tr>
<tr class="separator:ac88a30c7132c85b7394664e9985aa8ae"><td class="memSeparator" colspan="2">&#160;</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:a9feb5b1e8c5dcbed7a790c68abb97a78"><td class="memTemplParams" colspan="2">template&lt;typename AddressType &gt; </td></tr>
<tr class="memitem:a9feb5b1e8c5dcbed7a790c68abb97a78"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>&lt; AddressType &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#a9feb5b1e8c5dcbed7a790c68abb97a78">convert</a> (<a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="classprocess_1_1network_1_1Address.html">Address</a> &gt; &amp;&amp;<a class="el" href="namespaceprocess_1_1network.html#a1987d4376ac5e2f04ad72e6c84c7569c">address</a>)</td></tr>
<tr class="separator:a9feb5b1e8c5dcbed7a790c68abb97a78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfcc874cc7e06d1cc808b2e554bf1843"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:adfcc874cc7e06d1cc808b2e554bf1843"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="classprocess_1_1network_1_1Address.html">Address</a> &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#adfcc874cc7e06d1cc808b2e554bf1843">convert</a> (<a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="classprocess_1_1network_1_1Address.html">Address</a> &gt; &amp;&amp;<a class="el" href="namespaceprocess_1_1network.html#a1987d4376ac5e2f04ad72e6c84c7569c">address</a>)</td></tr>
<tr class="separator:adfcc874cc7e06d1cc808b2e554bf1843"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01e367136f97a794190645860e586eb9"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:a01e367136f97a794190645860e586eb9"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="classprocess_1_1network_1_1inet_1_1Address.html">inet::Address</a> &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#a01e367136f97a794190645860e586eb9">convert</a> (<a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="classprocess_1_1network_1_1Address.html">Address</a> &gt; &amp;&amp;<a class="el" href="namespaceprocess_1_1network.html#a1987d4376ac5e2f04ad72e6c84c7569c">address</a>)</td></tr>
<tr class="separator:a01e367136f97a794190645860e586eb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6257bdb56540143b296a6fd578d5feb8"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:a6257bdb56540143b296a6fd578d5feb8"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="classprocess_1_1network_1_1unix_1_1Address.html">unix::Address</a> &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#a6257bdb56540143b296a6fd578d5feb8">convert</a> (<a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="classprocess_1_1network_1_1Address.html">Address</a> &gt; &amp;&amp;<a class="el" href="namespaceprocess_1_1network.html#a1987d4376ac5e2f04ad72e6c84c7569c">address</a>)</td></tr>
<tr class="separator:a6257bdb56540143b296a6fd578d5feb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5272e0e693dc5fa8c9dd5cf610a5a213"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#a5272e0e693dc5fa8c9dd5cf610a5a213">operator&lt;&lt;</a> (std::ostream &amp;stream, const <a class="el" href="classprocess_1_1network_1_1Address.html">Address</a> &amp;<a class="el" href="namespaceprocess_1_1network.html#a1987d4376ac5e2f04ad72e6c84c7569c">address</a>)</td></tr>
<tr class="separator:a5272e0e693dc5fa8c9dd5cf610a5a213"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa05dd9eea0c1e4d3d49e2fc049c1a446"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#aa05dd9eea0c1e4d3d49e2fc049c1a446">accept</a> (<a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> s)</td></tr>
<tr class="separator:aa05dd9eea0c1e4d3d49e2fc049c1a446"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad067110a4b38cc83785a43f49bf6c8e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="structNothing.html">Nothing</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#ad067110a4b38cc83785a43f49bf6c8e2">bind</a> (<a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> s, const <a class="el" href="classprocess_1_1network_1_1Address.html">Address</a> &amp;<a class="el" href="namespaceprocess_1_1network.html#a1987d4376ac5e2f04ad72e6c84c7569c">address</a>)</td></tr>
<tr class="separator:ad067110a4b38cc83785a43f49bf6c8e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a502d62f6f908591b8677c90341af28cc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="structNothing.html">Nothing</a>, <a class="el" href="error_8hpp.html#a176f6fc34ea37d40201853a52a475762">SocketError</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#a502d62f6f908591b8677c90341af28cc">connect</a> (<a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> s, const <a class="el" href="classprocess_1_1network_1_1Address.html">Address</a> &amp;<a class="el" href="namespaceprocess_1_1network.html#a1987d4376ac5e2f04ad72e6c84c7569c">address</a>)</td></tr>
<tr class="separator:a502d62f6f908591b8677c90341af28cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1987d4376ac5e2f04ad72e6c84c7569c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="classprocess_1_1network_1_1Address.html">Address</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#a1987d4376ac5e2f04ad72e6c84c7569c">address</a> (<a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> s)</td></tr>
<tr class="memdesc:a1987d4376ac5e2f04ad72e6c84c7569c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <code><a class="el" href="classprocess_1_1network_1_1Address.html">Address</a></code> with the assigned ip and assigned port. <a href="#a1987d4376ac5e2f04ad72e6c84c7569c">More...</a><br/></td></tr>
<tr class="separator:a1987d4376ac5e2f04ad72e6c84c7569c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53b3d097e3d80075e841924f27ab8b36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>&lt; <a class="el" href="classprocess_1_1network_1_1Address.html">Address</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1network.html#a53b3d097e3d80075e841924f27ab8b36">peer</a> (<a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> s)</td></tr>
<tr class="memdesc:a53b3d097e3d80075e841924f27ab8b36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the peer's <code><a class="el" href="classprocess_1_1network_1_1Address.html">Address</a></code> for the accepted or connected socket. <a href="#a53b3d097e3d80075e841924f27ab8b36">More...</a><br/></td></tr>
<tr class="separator:a53b3d097e3d80075e841924f27ab8b36"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ac88a30c7132c85b7394664e9985aa8ae"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="namespaceprocess_1_1network.html#ac88a30c7132c85b7394664e9985aa8ae">process::network::Socket</a> = typedef <a class="el" href="classprocess_1_1network_1_1internal_1_1Socket.html">network::internal::Socket</a>&lt;<a class="el" href="classprocess_1_1network_1_1Address.html">network::Address</a>&gt;</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="aa05dd9eea0c1e4d3d49e2fc049c1a446"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTry.html">Try</a>&lt;<a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>&gt; process::network::accept </td>
<td>(</td>
<td class="paramtype"><a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>&#160;</td>
<td class="paramname"><em>s</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a1987d4376ac5e2f04ad72e6c84c7569c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTry.html">Try</a>&lt;<a class="el" href="classprocess_1_1network_1_1Address.html">Address</a>&gt; process::network::address </td>
<td>(</td>
<td class="paramtype"><a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>&#160;</td>
<td class="paramname"><em>s</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the <code><a class="el" href="classprocess_1_1network_1_1Address.html">Address</a></code> with the assigned ip and assigned port. </p>
<dl class="section return"><dt>Returns</dt><dd>An <code><a class="el" href="classprocess_1_1network_1_1Address.html">Address</a></code> or an error if the <code>getsockname</code> system call fails or the family type is not supported. </dd></dl>
</div>
</div>
<a class="anchor" id="ad067110a4b38cc83785a43f49bf6c8e2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTry.html">Try</a>&lt;<a class="el" href="structNothing.html">Nothing</a>&gt; process::network::bind </td>
<td>(</td>
<td class="paramtype"><a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>&#160;</td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const Address &amp;&#160;</td>
<td class="paramname"><em>address</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a502d62f6f908591b8677c90341af28cc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTry.html">Try</a>&lt;<a class="el" href="structNothing.html">Nothing</a>, <a class="el" href="error_8hpp.html#a176f6fc34ea37d40201853a52a475762">SocketError</a>&gt; process::network::connect </td>
<td>(</td>
<td class="paramtype"><a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>&#160;</td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const Address &amp;&#160;</td>
<td class="paramname"><em>address</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a9feb5b1e8c5dcbed7a790c68abb97a78"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename AddressType &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTry.html">Try</a>&lt;AddressType&gt; process::network::convert </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTry.html">Try</a>&lt; Address &gt; &amp;&amp;&#160;</td>
<td class="paramname"><em>address</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="adfcc874cc7e06d1cc808b2e554bf1843"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTry.html">Try</a>&lt;<a class="el" href="classprocess_1_1network_1_1Address.html">Address</a>&gt; process::network::convert </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTry.html">Try</a>&lt; Address &gt; &amp;&amp;&#160;</td>
<td class="paramname"><em>address</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a01e367136f97a794190645860e586eb9"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTry.html">Try</a>&lt;<a class="el" href="classprocess_1_1network_1_1inet_1_1Address.html">inet::Address</a>&gt; process::network::convert </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTry.html">Try</a>&lt; Address &gt; &amp;&amp;&#160;</td>
<td class="paramname"><em>address</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a6257bdb56540143b296a6fd578d5feb8"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTry.html">Try</a>&lt;<a class="el" href="classprocess_1_1network_1_1unix_1_1Address.html">unix::Address</a>&gt; process::network::convert </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTry.html">Try</a>&lt; Address &gt; &amp;&amp;&#160;</td>
<td class="paramname"><em>address</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a5272e0e693dc5fa8c9dd5cf610a5a213"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::ostream&amp; process::network::operator&lt;&lt; </td>
<td>(</td>
<td class="paramtype">std::ostream &amp;&#160;</td>
<td class="paramname"><em>stream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const Address &amp;&#160;</td>
<td class="paramname"><em>address</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a53b3d097e3d80075e841924f27ab8b36"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTry.html">Try</a>&lt;<a class="el" href="classprocess_1_1network_1_1Address.html">Address</a>&gt; process::network::peer </td>
<td>(</td>
<td class="paramtype"><a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>&#160;</td>
<td class="paramname"><em>s</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the peer's <code><a class="el" href="classprocess_1_1network_1_1Address.html">Address</a></code> for the accepted or connected socket. </p>
<dl class="section return"><dt>Returns</dt><dd>An <code><a class="el" href="classprocess_1_1network_1_1Address.html">Address</a></code> or an error if the <code>getpeername</code> system call fails or the family type is not supported. </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>