mirror of https://github.com/AxioDL/jbus.git
760 lines
32 KiB
HTML
760 lines
32 KiB
HTML
|
<!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.11"/>
|
||
|
<title>JBus: jbus::net::Socket Class 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="resize.js"></script>
|
||
|
<script type="text/javascript" src="navtreedata.js"></script>
|
||
|
<script type="text/javascript" src="navtree.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(initResizable);
|
||
|
$(window).load(resizeHeight);
|
||
|
</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>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function() { init_search(); });
|
||
|
</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 id="projectalign" style="padding-left: 0.5em;">
|
||
|
<div id="projectname">JBus
|
||
|
</div>
|
||
|
<div id="projectbrief">JoyBus communication server</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<!-- end header part -->
|
||
|
<!-- Generated by Doxygen 1.8.11 -->
|
||
|
<script type="text/javascript">
|
||
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||
|
</script>
|
||
|
<div id="navrow1" class="tabs">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||
|
<li><a href="files.html"><span>Files</span></a></li>
|
||
|
<li>
|
||
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
||
|
<span class="left">
|
||
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
alt=""/>
|
||
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
||
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
||
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
||
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
||
|
</span><span class="right">
|
||
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div id="navrow2" class="tabs2">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||
|
<li><a href="classes.html"><span>Class Index</span></a></li>
|
||
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div><!-- top -->
|
||
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||
|
<div id="nav-tree">
|
||
|
<div id="nav-tree-contents">
|
||
|
<div id="nav-sync" class="sync"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id="splitbar" style="-moz-user-select:none;"
|
||
|
class="ui-resizable-handle">
|
||
|
</div>
|
||
|
</div>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function(){initNavTree('classjbus_1_1net_1_1Socket.html','');});
|
||
|
</script>
|
||
|
<div id="doc-content">
|
||
|
<!-- 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">
|
||
|
<iframe src="javascript:void(0)" frameborder="0"
|
||
|
name="MSearchResults" id="MSearchResults">
|
||
|
</iframe>
|
||
|
</div>
|
||
|
|
||
|
<div class="header">
|
||
|
<div class="summary">
|
||
|
<a href="#pub-types">Public Types</a> |
|
||
|
<a href="#pub-methods">Public Member Functions</a> |
|
||
|
<a href="classjbus_1_1net_1_1Socket-members.html">List of all members</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<div class="title">jbus::net::Socket Class Reference</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
|
||
|
<p><code>#include <<a class="el" href="Socket_8hpp_source.html">Socket.hpp</a>></code></p>
|
||
|
<table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
||
|
Public Types</h2></td></tr>
|
||
|
<tr class="memitem:a3bfd450bea54d958e35330aa7faa113f"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> { <a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113fae0aa021e21dddbd6d8cecec71e9cf564">EResult::OK</a>,
|
||
|
<a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113fa902b0d55fddef6f8d651fe1035b7d4bd">EResult::Error</a>,
|
||
|
<a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113fad8a942ef2b04672adfafef0ad817a407">EResult::Busy</a>
|
||
|
}</td></tr>
|
||
|
<tr class="separator:a3bfd450bea54d958e35330aa7faa113f"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table><table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||
|
Public Member Functions</h2></td></tr>
|
||
|
<tr class="memitem:a87bf8bdb4a07533dc7eccfd5bb84857d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a87bf8bdb4a07533dc7eccfd5bb84857d">Socket</a> (bool blocking)</td></tr>
|
||
|
<tr class="separator:a87bf8bdb4a07533dc7eccfd5bb84857d"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a3d2700e84af823fb63c8119f033a799d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a3d2700e84af823fb63c8119f033a799d">~Socket</a> ()</td></tr>
|
||
|
<tr class="separator:a3d2700e84af823fb63c8119f033a799d"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:af2bbe556cdffa7e7e542318164c3496c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#af2bbe556cdffa7e7e542318164c3496c">Socket</a> (const <a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> &other)=delete</td></tr>
|
||
|
<tr class="separator:af2bbe556cdffa7e7e542318164c3496c"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a0f73de864690d7637be5ccdd2ab2cd02"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a0f73de864690d7637be5ccdd2ab2cd02">operator=</a> (const <a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> &other)=delete</td></tr>
|
||
|
<tr class="separator:a0f73de864690d7637be5ccdd2ab2cd02"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ae55b301ad32ba4a0fe54e7282c2e3e50"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#ae55b301ad32ba4a0fe54e7282c2e3e50">Socket</a> (<a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> &&other)</td></tr>
|
||
|
<tr class="separator:ae55b301ad32ba4a0fe54e7282c2e3e50"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:af761a3e1046b017ee919595af021bede"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#af761a3e1046b017ee919595af021bede">operator=</a> (<a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> &&other)</td></tr>
|
||
|
<tr class="separator:af761a3e1046b017ee919595af021bede"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a9ee7eee273fdb17fed00972dff0136ee"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a9ee7eee273fdb17fed00972dff0136ee">setBlocking</a> (bool blocking)</td></tr>
|
||
|
<tr class="separator:a9ee7eee273fdb17fed00972dff0136ee"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a31a6b806331c0856658e08fe9a77b32d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a31a6b806331c0856658e08fe9a77b32d">isOpen</a> () const </td></tr>
|
||
|
<tr class="separator:a31a6b806331c0856658e08fe9a77b32d"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:aa6baaf24a436a72735d0561f907864eb"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#aa6baaf24a436a72735d0561f907864eb">openAndListen</a> (const <a class="el" href="classjbus_1_1net_1_1IPAddress.html">IPAddress</a> &address, uint32_t port)</td></tr>
|
||
|
<tr class="separator:aa6baaf24a436a72735d0561f907864eb"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:afb79caaa1f0d96afb0088f9910c9c633"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#afb79caaa1f0d96afb0088f9910c9c633">accept</a> (<a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> &remoteSocketOut, sockaddr_in &fromAddress)</td></tr>
|
||
|
<tr class="separator:afb79caaa1f0d96afb0088f9910c9c633"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a4eac487033d8a6b855f5023955c6d1fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a4eac487033d8a6b855f5023955c6d1fc">accept</a> (<a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> &remoteSocketOut)</td></tr>
|
||
|
<tr class="separator:a4eac487033d8a6b855f5023955c6d1fc"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a7775d73e68c92ca6685cc2c9bbad4f99"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a7775d73e68c92ca6685cc2c9bbad4f99">accept</a> (<a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> &remoteSocketOut, std::string &fromHostname)</td></tr>
|
||
|
<tr class="separator:a7775d73e68c92ca6685cc2c9bbad4f99"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ad981ced8a7a6f1bf5a3e6067df1ada9d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#ad981ced8a7a6f1bf5a3e6067df1ada9d">close</a> ()</td></tr>
|
||
|
<tr class="separator:ad981ced8a7a6f1bf5a3e6067df1ada9d"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ae3e4995fb077912fa51764053e931bae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#ae3e4995fb077912fa51764053e931bae">send</a> (const void *buf, size_t len, size_t &transferred)</td></tr>
|
||
|
<tr class="separator:ae3e4995fb077912fa51764053e931bae"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:aeff335671da65f7397f86af7b712384f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#aeff335671da65f7397f86af7b712384f">send</a> (const void *buf, size_t len)</td></tr>
|
||
|
<tr class="separator:aeff335671da65f7397f86af7b712384f"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a145c616a39461c9ab57e021a51f746e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a145c616a39461c9ab57e021a51f746e4">recv</a> (void *buf, size_t len, size_t &transferred)</td></tr>
|
||
|
<tr class="separator:a145c616a39461c9ab57e021a51f746e4"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a5563c140f709a91585cafbb27151720a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a5563c140f709a91585cafbb27151720a">recv</a> (void *buf, size_t len)</td></tr>
|
||
|
<tr class="separator:a5563c140f709a91585cafbb27151720a"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a5417fa626737b38ed048595ff0cda452"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a5417fa626737b38ed048595ff0cda452">operator bool</a> () const </td></tr>
|
||
|
<tr class="separator:a5417fa626737b38ed048595ff0cda452"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a66864f8061a4d96fb9ceabc808532046"><td class="memItemLeft" align="right" valign="top">SocketTp </td><td class="memItemRight" valign="bottom"><a class="el" href="classjbus_1_1net_1_1Socket.html#a66864f8061a4d96fb9ceabc808532046">GetInternalSocket</a> () const </td></tr>
|
||
|
<tr class="separator:a66864f8061a4d96fb9ceabc808532046"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table>
|
||
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||
|
<div class="textblock"><p>Server-oriented TCP socket class derived from SFML </p>
|
||
|
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
|
||
|
<a class="anchor" id="a3bfd450bea54d958e35330aa7faa113f"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">enum <a class="el" href="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">jbus::net::Socket::EResult</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">strong</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
<table class="fieldtable">
|
||
|
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a3bfd450bea54d958e35330aa7faa113fae0aa021e21dddbd6d8cecec71e9cf564"></a>OK </td><td class="fielddoc">
|
||
|
</td></tr>
|
||
|
<tr><td class="fieldname"><a class="anchor" id="a3bfd450bea54d958e35330aa7faa113fa902b0d55fddef6f8d651fe1035b7d4bd"></a>Error </td><td class="fielddoc">
|
||
|
</td></tr>
|
||
|
<tr><td class="fieldname"><a class="anchor" id="a3bfd450bea54d958e35330aa7faa113fad8a942ef2b04672adfafef0ad817a407"></a>Busy </td><td class="fielddoc">
|
||
|
</td></tr>
|
||
|
</table>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||
|
<a class="anchor" id="a87bf8bdb4a07533dc7eccfd5bb84857d"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">jbus::net::Socket::Socket </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">bool </td>
|
||
|
<td class="paramname"><em>blocking</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="a3d2700e84af823fb63c8119f033a799d"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">jbus::net::Socket::~Socket </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></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="af2bbe556cdffa7e7e542318164c3496c"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">jbus::net::Socket::Socket </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> & </td>
|
||
|
<td class="paramname"><em>other</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ae55b301ad32ba4a0fe54e7282c2e3e50"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">jbus::net::Socket::Socket </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype"><a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> && </td>
|
||
|
<td class="paramname"><em>other</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>
|
||
|
<h2 class="groupheader">Member Function Documentation</h2>
|
||
|
<a class="anchor" id="afb79caaa1f0d96afb0088f9910c9c633"></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="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> jbus::net::Socket::accept </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype"><a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> & </td>
|
||
|
<td class="paramname"><em>remoteSocketOut</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">sockaddr_in & </td>
|
||
|
<td class="paramname"><em>fromAddress</em> </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="a4eac487033d8a6b855f5023955c6d1fc"></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="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> jbus::net::Socket::accept </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype"><a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> & </td>
|
||
|
<td class="paramname"><em>remoteSocketOut</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="a7775d73e68c92ca6685cc2c9bbad4f99"></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="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> jbus::net::Socket::accept </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype"><a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> & </td>
|
||
|
<td class="paramname"><em>remoteSocketOut</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">std::string & </td>
|
||
|
<td class="paramname"><em>fromHostname</em> </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="ad981ced8a7a6f1bf5a3e6067df1ada9d"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void jbus::net::Socket::close </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></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="a66864f8061a4d96fb9ceabc808532046"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">SocketTp jbus::net::Socket::GetInternalSocket </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td> const</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="a31a6b806331c0856658e08fe9a77b32d"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">bool jbus::net::Socket::isOpen </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td> const</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="aa6baaf24a436a72735d0561f907864eb"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">bool jbus::net::Socket::openAndListen </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classjbus_1_1net_1_1IPAddress.html">IPAddress</a> & </td>
|
||
|
<td class="paramname"><em>address</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">uint32_t </td>
|
||
|
<td class="paramname"><em>port</em> </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">
|
||
|
|
||
|
<p><div class="dynheader">
|
||
|
Here is the call graph for this function:</div>
|
||
|
<div class="dyncontent">
|
||
|
<div class="center"><img src="classjbus_1_1net_1_1Socket_aa6baaf24a436a72735d0561f907864eb_cgraph.png" border="0" usemap="#classjbus_1_1net_1_1Socket_aa6baaf24a436a72735d0561f907864eb_cgraph" alt=""/></div>
|
||
|
<map name="classjbus_1_1net_1_1Socket_aa6baaf24a436a72735d0561f907864eb_cgraph" id="classjbus_1_1net_1_1Socket_aa6baaf24a436a72735d0561f907864eb_cgraph">
|
||
|
<area shape="rect" id="node2" href="classjbus_1_1net_1_1IPAddress.html#a36ccdd7a0630a183c16943a21b3c908c" title="jbus::net::IPAddress\l::toInteger" alt="" coords="181,5,320,44"/>
|
||
|
</map>
|
||
|
</div>
|
||
|
</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a5417fa626737b38ed048595ff0cda452"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">jbus::net::Socket::operator bool </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td> const</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="a0f73de864690d7637be5ccdd2ab2cd02"></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="classjbus_1_1net_1_1Socket.html">Socket</a>& jbus::net::Socket::operator= </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> & </td>
|
||
|
<td class="paramname"><em>other</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="af761a3e1046b017ee919595af021bede"></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="classjbus_1_1net_1_1Socket.html">Socket</a>& jbus::net::Socket::operator= </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype"><a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a> && </td>
|
||
|
<td class="paramname"><em>other</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="a145c616a39461c9ab57e021a51f746e4"></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="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> jbus::net::Socket::recv </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">void * </td>
|
||
|
<td class="paramname"><em>buf</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">size_t </td>
|
||
|
<td class="paramname"><em>len</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">size_t & </td>
|
||
|
<td class="paramname"><em>transferred</em> </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="a5563c140f709a91585cafbb27151720a"></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="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> jbus::net::Socket::recv </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">void * </td>
|
||
|
<td class="paramname"><em>buf</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">size_t </td>
|
||
|
<td class="paramname"><em>len</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</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="ae3e4995fb077912fa51764053e931bae"></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="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> jbus::net::Socket::send </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const void * </td>
|
||
|
<td class="paramname"><em>buf</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">size_t </td>
|
||
|
<td class="paramname"><em>len</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">size_t & </td>
|
||
|
<td class="paramname"><em>transferred</em> </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="aeff335671da65f7397f86af7b712384f"></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="classjbus_1_1net_1_1Socket.html#a3bfd450bea54d958e35330aa7faa113f">EResult</a> jbus::net::Socket::send </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const void * </td>
|
||
|
<td class="paramname"><em>buf</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">size_t </td>
|
||
|
<td class="paramname"><em>len</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</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="a9ee7eee273fdb17fed00972dff0136ee"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void jbus::net::Socket::setBlocking </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">bool </td>
|
||
|
<td class="paramname"><em>blocking</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>
|
||
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
||
|
<li>include/jbus/<a class="el" href="Socket_8hpp_source.html">Socket.hpp</a></li>
|
||
|
</ul>
|
||
|
</div><!-- contents -->
|
||
|
</div><!-- doc-content -->
|
||
|
<!-- start footer part -->
|
||
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||
|
<ul>
|
||
|
<li class="navelem"><a class="el" href="namespacejbus.html">jbus</a></li><li class="navelem"><a class="el" href="namespacejbus_1_1net.html">net</a></li><li class="navelem"><a class="el" href="classjbus_1_1net_1_1Socket.html">Socket</a></li>
|
||
|
<li class="footer">Generated by
|
||
|
<a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|