Commit d74740df authored by pengelstein's avatar pengelstein
Browse files

Added documentation as Doxygen format

parent 245175ae
<!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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TCP Server: src/thread/Socket/Client.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="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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">TCP Server
&#160;<span id="projectnumber">1.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_client_8hpp_source.html','');});
/* @license-end */
</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="headertitle">
<div class="title">Client.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef CLIENT_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define CLIENT_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;cstring&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;unistd.h&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#ifdef __linux</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &lt;netdb.h&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;arpa/inet.h&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#elif defined __WIN32</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;winsock2.h&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &lt;windows.h&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;windef.h&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &lt;ws2tcpip.h&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">int</span> __socklen_t;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define ACCEPT_MAX 5</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>sockaddr_in address_t;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacethreads.html">threads</a></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;{</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classthreads_1_1_client.html"> 30</a></span>&#160; <span class="keyword">class </span><a class="code" href="classthreads_1_1_client.html">Client</a></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classthreads_1_1_client.html#a28c57bc0a1cc21ce8d8f3eb81c596e52"> 34</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1_client.html#a28c57bc0a1cc21ce8d8f3eb81c596e52">nb_client_socket</a>;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <a class="code" href="classthreads_1_1_client.html">Client</a>();</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classthreads_1_1_client.html">Client</a>();</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; std::string <a class="code" href="classthreads_1_1_client.html#ad7402801db23143512f3e7e1377f69bf">IP</a>();</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; uint16_t <a class="code" href="classthreads_1_1_client.html#a0d9231d5bcd729958c9ac83efa480ff7">Port</a>();</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1_client.html#ae8b5b837c28fdca7af5d86b6fc7430fe">Socket</a>();</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; __socklen_t <a class="code" href="classthreads_1_1_client.html#ab89cbf6635b041a23636581c5d8c3fce">Socket_Length</a>();</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classthreads_1_1_client.html#a20a4ba9f29551dbc72b633b092e8d9a2">Set</a>();</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1_client.html#a2210037971520845b2304073ca827414">SetSocket</a>(<span class="keywordtype">int</span> server_socket);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1_client.html#a243a6bb440e0edb4505e7d066a1e9b3f">CloseClient</a>();</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1_client.html#ae4dc1c2cf2724313d9dfde24fb5f79e2">Close</a>(<span class="keywordtype">int</span> socket);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; std::string ToString();</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="comment">/* All the client description */</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; std::string ip;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; uint16_t port;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordtype">int</span> socket;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">bool</span> active;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; __socklen_t socket_length;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keyword">struct </span>sockaddr_in socket_address;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; };</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;}</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classthreads_1_1_client_html_a243a6bb440e0edb4505e7d066a1e9b3f"><div class="ttname"><a href="classthreads_1_1_client.html#a243a6bb440e0edb4505e7d066a1e9b3f">threads::Client::CloseClient</a></div><div class="ttdeci">int CloseClient()</div><div class="ttdef"><b>Definition:</b> Client.cpp:100</div></div>
<div class="ttc" id="classthreads_1_1_client_html_a0d9231d5bcd729958c9ac83efa480ff7"><div class="ttname"><a href="classthreads_1_1_client.html#a0d9231d5bcd729958c9ac83efa480ff7">threads::Client::Port</a></div><div class="ttdeci">uint16_t Port()</div><div class="ttdef"><b>Definition:</b> Client.cpp:23</div></div>
<div class="ttc" id="classthreads_1_1_client_html_a20a4ba9f29551dbc72b633b092e8d9a2"><div class="ttname"><a href="classthreads_1_1_client.html#a20a4ba9f29551dbc72b633b092e8d9a2">threads::Client::Set</a></div><div class="ttdeci">void Set()</div><div class="ttdef"><b>Definition:</b> Client.cpp:38</div></div>
<div class="ttc" id="classthreads_1_1_client_html_ab89cbf6635b041a23636581c5d8c3fce"><div class="ttname"><a href="classthreads_1_1_client.html#ab89cbf6635b041a23636581c5d8c3fce">threads::Client::Socket_Length</a></div><div class="ttdeci">__socklen_t Socket_Length()</div><div class="ttdef"><b>Definition:</b> Client.cpp:33</div></div>
<div class="ttc" id="classthreads_1_1_client_html_ae8b5b837c28fdca7af5d86b6fc7430fe"><div class="ttname"><a href="classthreads_1_1_client.html#ae8b5b837c28fdca7af5d86b6fc7430fe">threads::Client::Socket</a></div><div class="ttdeci">int Socket()</div><div class="ttdef"><b>Definition:</b> Client.cpp:28</div></div>
<div class="ttc" id="classthreads_1_1_client_html_ae4dc1c2cf2724313d9dfde24fb5f79e2"><div class="ttname"><a href="classthreads_1_1_client.html#ae4dc1c2cf2724313d9dfde24fb5f79e2">threads::Client::Close</a></div><div class="ttdeci">static int Close(int socket)</div><div class="ttdef"><b>Definition:</b> Client.cpp:83</div></div>
<div class="ttc" id="namespacethreads_html"><div class="ttname"><a href="namespacethreads.html">threads</a></div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:4</div></div>
<div class="ttc" id="classthreads_1_1_client_html"><div class="ttname"><a href="classthreads_1_1_client.html">threads::Client</a></div><div class="ttdef"><b>Definition:</b> Client.hpp:30</div></div>
<div class="ttc" id="classthreads_1_1_client_html_a28c57bc0a1cc21ce8d8f3eb81c596e52"><div class="ttname"><a href="classthreads_1_1_client.html#a28c57bc0a1cc21ce8d8f3eb81c596e52">threads::Client::nb_client_socket</a></div><div class="ttdeci">static int nb_client_socket</div><div class="ttdef"><b>Definition:</b> Client.hpp:34</div></div>
<div class="ttc" id="classthreads_1_1_client_html_a2210037971520845b2304073ca827414"><div class="ttname"><a href="classthreads_1_1_client.html#a2210037971520845b2304073ca827414">threads::Client::SetSocket</a></div><div class="ttdeci">int SetSocket(int server_socket)</div><div class="ttdef"><b>Definition:</b> Client.cpp:50</div></div>
<div class="ttc" id="classthreads_1_1_client_html_ad7402801db23143512f3e7e1377f69bf"><div class="ttname"><a href="classthreads_1_1_client.html#ad7402801db23143512f3e7e1377f69bf">threads::Client::IP</a></div><div class="ttdeci">std::string IP()</div><div class="ttdef"><b>Definition:</b> Client.cpp:18</div></div>
</div><!-- fragment --></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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_bfedb72b9d87795234454f6223b9ab1e.html">thread</a></li><li class="navelem"><a class="el" href="dir_c793c3145cd2e2fdfb23c91bf02cf270.html">Socket</a></li><li class="navelem"><b>Client.hpp</b></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.14 </li>
</ul>
</div>
</body>
</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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TCP Server: src/thread/Delay/DelayThread.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="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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">TCP Server
&#160;<span id="projectnumber">1.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_delay_thread_8hpp_source.html','');});
/* @license-end */
</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="headertitle">
<div class="title">DelayThread.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef DELAYTHREAD_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define DELAYTHREAD_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;thread/IThread.hpp&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacethreads.html">threads</a></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;{</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classthreads_1_1ip__cooldown.html"> 12</a></span>&#160; <span class="keyword">class </span><a class="code" href="classthreads_1_1ip__cooldown.html">ip_cooldown</a></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; {</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <a class="code" href="classthreads_1_1ip__cooldown.html#ab85c991dd7e3fdc2b26274c3ab396494">ip_cooldown</a>(std::string ip, <span class="keywordtype">int</span> cooldown);</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; ~<a class="code" href="classthreads_1_1ip__cooldown.html">ip_cooldown</a>();</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1ip__cooldown.html#acd2cb51171cab4b5283de28ec94030a9">Cooldown</a>();</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classthreads_1_1ip__cooldown.html#add992dee6399b958abc712ebd6e92b34">Decrease</a>();</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classthreads_1_1ip__cooldown.html#a08f108a92bd7a06458e30521cbdc0796">Compare</a>(std::string ip);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; std::string ToString();</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; std::string IP();</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; std::string _ip;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordtype">int</span> _cooldown;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; };</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classthreads_1_1_delay_thread.html"> 45</a></span>&#160; <span class="keyword">class </span><a class="code" href="classthreads_1_1_delay_thread.html">DelayThread</a> : <span class="keyword">public</span> <a class="code" href="classthreads_1_1_i_thread.html">IThread</a></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="classthreads_1_1_delay_thread.html">DelayThread</a>();</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; ~<a class="code" href="classthreads_1_1_delay_thread.html">DelayThread</a>();</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classthreads_1_1_delay_thread.html#af127812eed74407cdcde027e733d7ff3">Run</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; std::string ToString() <span class="keyword">override</span>;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1_delay_thread.html#ab98e6cd05ebe3f00f3d9d709d1d24de6">IsOnCooldown</a>(std::string ip);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classthreads_1_1_delay_thread.html#aa1567c9a2d4e0ebd84f36f3a6ca1891c">AddIP</a>(std::string ip);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; std::vector&lt;ip_cooldown&gt; cooldown_list;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordtype">void</span> Decrease_All();</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; };</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;}</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classthreads_1_1ip__cooldown_html"><div class="ttname"><a href="classthreads_1_1ip__cooldown.html">threads::ip_cooldown</a></div><div class="ttdef"><b>Definition:</b> DelayThread.hpp:12</div></div>
<div class="ttc" id="classthreads_1_1ip__cooldown_html_ab85c991dd7e3fdc2b26274c3ab396494"><div class="ttname"><a href="classthreads_1_1ip__cooldown.html#ab85c991dd7e3fdc2b26274c3ab396494">threads::ip_cooldown::ip_cooldown</a></div><div class="ttdeci">ip_cooldown(std::string ip, int cooldown)</div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:70</div></div>
<div class="ttc" id="classthreads_1_1_delay_thread_html_af127812eed74407cdcde027e733d7ff3"><div class="ttname"><a href="classthreads_1_1_delay_thread.html#af127812eed74407cdcde027e733d7ff3">threads::DelayThread::Run</a></div><div class="ttdeci">void Run() override</div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:25</div></div>
<div class="ttc" id="classthreads_1_1_delay_thread_html"><div class="ttname"><a href="classthreads_1_1_delay_thread.html">threads::DelayThread</a></div><div class="ttdef"><b>Definition:</b> DelayThread.hpp:45</div></div>
<div class="ttc" id="classthreads_1_1_delay_thread_html_aa1567c9a2d4e0ebd84f36f3a6ca1891c"><div class="ttname"><a href="classthreads_1_1_delay_thread.html#aa1567c9a2d4e0ebd84f36f3a6ca1891c">threads::DelayThread::AddIP</a></div><div class="ttdeci">void AddIP(std::string ip)</div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:60</div></div>
<div class="ttc" id="classthreads_1_1_delay_thread_html_ab98e6cd05ebe3f00f3d9d709d1d24de6"><div class="ttname"><a href="classthreads_1_1_delay_thread.html#ab98e6cd05ebe3f00f3d9d709d1d24de6">threads::DelayThread::IsOnCooldown</a></div><div class="ttdeci">int IsOnCooldown(std::string ip)</div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:52</div></div>
<div class="ttc" id="classthreads_1_1ip__cooldown_html_acd2cb51171cab4b5283de28ec94030a9"><div class="ttname"><a href="classthreads_1_1ip__cooldown.html#acd2cb51171cab4b5283de28ec94030a9">threads::ip_cooldown::Cooldown</a></div><div class="ttdeci">int Cooldown()</div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:81</div></div>
<div class="ttc" id="namespacethreads_html"><div class="ttname"><a href="namespacethreads.html">threads</a></div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:4</div></div>
<div class="ttc" id="classthreads_1_1ip__cooldown_html_a08f108a92bd7a06458e30521cbdc0796"><div class="ttname"><a href="classthreads_1_1ip__cooldown.html#a08f108a92bd7a06458e30521cbdc0796">threads::ip_cooldown::Compare</a></div><div class="ttdeci">bool Compare(std::string ip)</div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:91</div></div>
<div class="ttc" id="classthreads_1_1ip__cooldown_html_add992dee6399b958abc712ebd6e92b34"><div class="ttname"><a href="classthreads_1_1ip__cooldown.html#add992dee6399b958abc712ebd6e92b34">threads::ip_cooldown::Decrease</a></div><div class="ttdeci">void Decrease()</div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:86</div></div>
<div class="ttc" id="classthreads_1_1_i_thread_html"><div class="ttname"><a href="classthreads_1_1_i_thread.html">threads::IThread</a></div><div class="ttdef"><b>Definition:</b> IThread.hpp:14</div></div>
</div><!-- fragment --></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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_bfedb72b9d87795234454f6223b9ab1e.html">thread</a></li><li class="navelem"><a class="el" href="dir_c4f7121178f4efcbe350c469af998e34.html">Delay</a></li><li class="navelem"><b>DelayThread.hpp</b></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.14 </li>
</ul>
</div>
</body>
</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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TCP Server: src/thread/Message/IMessage.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="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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">TCP Server
&#160;<span id="projectnumber">1.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_i_message_8hpp_source.html','');});
/* @license-end */
</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="headertitle">
<div class="title">IMessage.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#define STRLEN 128</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define DATLEN 20</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#ifndef IMESSAGE_H</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#define IMESSAGE_H</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacethreads.html">threads</a></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;{</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classthreads_1_1_i_message_handler.html"> 16</a></span>&#160; <span class="keyword">class </span><a class="code" href="classthreads_1_1_i_message_handler.html">IMessageHandler</a></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; {</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; <a class="code" href="classthreads_1_1_i_message_handler.html">IMessageHandler</a>() {};</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classthreads_1_1_i_message_handler.html">IMessageHandler</a>() {};</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1_i_message_handler.html#a4006f050a837d118711c73c98edd8f97">TreatData</a>(std::vector&lt;char&gt; buffer) = 0;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; };</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;}</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="namespacethreads_html"><div class="ttname"><a href="namespacethreads.html">threads</a></div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:4</div></div>
<div class="ttc" id="classthreads_1_1_i_message_handler_html_a4006f050a837d118711c73c98edd8f97"><div class="ttname"><a href="classthreads_1_1_i_message_handler.html#a4006f050a837d118711c73c98edd8f97">threads::IMessageHandler::TreatData</a></div><div class="ttdeci">virtual int TreatData(std::vector&lt; char &gt; buffer)=0</div></div>
<div class="ttc" id="classthreads_1_1_i_message_handler_html"><div class="ttname"><a href="classthreads_1_1_i_message_handler.html">threads::IMessageHandler</a></div><div class="ttdef"><b>Definition:</b> IMessage.hpp:16</div></div>
</div><!-- fragment --></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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_bfedb72b9d87795234454f6223b9ab1e.html">thread</a></li><li class="navelem"><a class="el" href="dir_79c82e1e45026161416e21db00977b34.html">Message</a></li><li class="navelem"><b>IMessage.hpp</b></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.14 </li>
</ul>
</div>
</body>
</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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TCP Server: src/thread/IThread.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="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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">TCP Server
&#160;<span id="projectnumber">1.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_i_thread_8hpp_source.html','');});
/* @license-end */
</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="headertitle">
<div class="title">IThread.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef ITHREAD_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define ITHREAD_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;thread&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;cstring&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;sys/socket.h&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacethreads.html">threads</a></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;{</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classthreads_1_1_i_thread.html"> 14</a></span>&#160; <span class="keyword">class </span><a class="code" href="classthreads_1_1_i_thread.html">IThread</a></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; {</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; <a class="code" href="classthreads_1_1_i_thread.html">IThread</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>);</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classthreads_1_1_i_thread.html">IThread</a>();</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classthreads_1_1_i_thread.html#aedb09a73602b3958c7d016e115dc487f">Run</a>();</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classthreads_1_1_i_thread.html#aded84a5ba9c2be7dd40dd73a66f37aa4">Running</a>();</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classthreads_1_1_i_thread.html#aa0c32697286de07339542863d99b509a">End</a>();</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keyword">virtual</span> std::string ToString() = 0;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1_i_thread.html#abccf51b9b460b99f0576e9a0978151b9">Create</a>();</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1_i_thread.html#ab911fe1ef87f4606f361f94a97035021">Join</a>();</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classthreads_1_1_i_thread.html#a4fda08e9ecef750342aa9057ac03634d">Detach</a>();</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordtype">bool</span> _running;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordtype">int</span> _id;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; std::thread _thread;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; };</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;}</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="namespacethreads_html"><div class="ttname"><a href="namespacethreads.html">threads</a></div><div class="ttdef"><b>Definition:</b> DelayThread.cpp:4</div></div>
<div class="ttc" id="classthreads_1_1_i_thread_html_aa0c32697286de07339542863d99b509a"><div class="ttname"><a href="classthreads_1_1_i_thread.html#aa0c32697286de07339542863d99b509a">threads::IThread::End</a></div><div class="ttdeci">void End()</div><div class="ttdef"><b>Definition:</b> IThread.cpp:63</div></div>
<div class="ttc" id="classthreads_1_1_i_thread_html_aedb09a73602b3958c7d016e115dc487f"><div class="ttname"><a href="classthreads_1_1_i_thread.html#aedb09a73602b3958c7d016e115dc487f">threads::IThread::Run</a></div><div class="ttdeci">virtual void Run()</div><div class="ttdef"><b>Definition:</b> IThread.cpp:56</div></div>
<div class="ttc" id="classthreads_1_1_i_thread_html_abccf51b9b460b99f0576e9a0978151b9"><div class="ttname"><a href="classthreads_1_1_i_thread.html#abccf51b9b460b99f0576e9a0978151b9">threads::IThread::Create</a></div><div class="ttdeci">int Create()</div><div class="ttdef"><b>Definition:</b> IThread.cpp:17</div></div>
<div class="ttc" id="classthreads_1_1_i_thread_html_ab911fe1ef87f4606f361f94a97035021"><div class="ttname"><a href="classthreads_1_1_i_thread.html#ab911fe1ef87f4606f361f94a97035021">threads::IThread::Join</a></div><div class="ttdeci">int Join()</div><div class="ttdef"><b>Definition:</b> IThread.cpp:30</div></div>
<div class="ttc" id="classthreads_1_1_i_thread_html_aded84a5ba9c2be7dd40dd73a66f37aa4"><div class="ttname"><a href="classthreads_1_1_i_thread.html#aded84a5ba9c2be7dd40dd73a66f37aa4">threads::IThread::Running</a></div><div class="ttdeci">bool Running()</div><div class="ttdef"><b>Definition:</b> IThread.cpp:58</div></div>
<div class="ttc" id="classthreads_1_1_i_thread_html_a4fda08e9ecef750342aa9057ac03634d"><div class="ttname"><a href="classthreads_1_1_i_thread.html#a4fda08e9ecef750342aa9057ac03634d">threads::IThread::Detach</a></div><div class="ttdeci">int Detach()</div><div class="ttdef"><b>Definition:</b> IThread.cpp:43</div></div>
<div class="ttc" id="classthreads_1_1_i_thread_html"><div class="ttname"><a href="classthreads_1_1_i_thread.html">threads::IThread</a></div><div class="ttdef"><b>Definition:</b> IThread.hpp:14</div></div>
</div><!-- fragment --></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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_bfedb72b9d87795234454f6223b9ab1e.html">thread</a></li><li class="navelem"><b>IThread.hpp</b></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.14 </li>
</ul>
</div>
</body>
</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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TCP Server: src/thread/Socket/SocketThread.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="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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">TCP Server
&#160;<span id="projectnumber">1.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></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>