mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 18:22:18 +00:00
170 lines
19 KiB
HTML
170 lines
19 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.6"/>
|
|
<title>The Netsukuku Project: src/andns_net.h 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="../../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/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
|
</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="projectlogo"><img alt="Logo" src="../../Logo_netsukuku.jpg"/></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">The Netsukuku Project
|
|
 <span id="projectnumber">0.0.9</span>
|
|
</div>
|
|
<div id="projectbrief">An Alternative routing method</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.6 -->
|
|
<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="../../annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><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="../../files.html"><span>File List</span></a></li>
|
|
<li><a href="../../globals.html"><span>Globals</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('d6/de1/andns__net_8h_source.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)">
|
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a></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">andns_net.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="../../d6/de1/andns__net_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef ANDNS_NET_H</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define ANDNS_NET_H</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <errno.h></span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <netdb.h></span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <unistd.h></span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <stdio.h></span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <string.h></span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <sys/types.h></span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <sys/socket.h></span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <arpa/inet.h></span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keywordtype">int</span> <a class="code" href="../../d6/de1/andns__net_8h.html#ad2b329c25bb65c423d20f4b1e7691961">idp_inet_ntop</a>(<span class="keywordtype">int</span> <a class="code" href="../../d7/de2/if_8c.html#a4417150d9f858949bd9ea8794995ebcc">family</a>,<span class="keyword">struct</span> sockaddr *addr,<span class="keywordtype">char</span> *buf,<span class="keywordtype">int</span> buflen);</div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keywordtype">int</span> <a class="code" href="../../d6/de1/andns__net_8h.html#a9f0f84aac1723d4aff67f0c8049ba013">w_socket</a>(<span class="keywordtype">int</span> <a class="code" href="../../d7/de2/if_8c.html#a4417150d9f858949bd9ea8794995ebcc">family</a>,<span class="keywordtype">int</span> <a class="code" href="../../d8/d91/krnl__route_8c.html#ac765329451135abec74c45e1897abf26">type</a>, <span class="keywordtype">int</span> proto,<span class="keywordtype">int</span> die);</div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keywordtype">int</span> <a class="code" href="../../d6/de1/andns__net_8h.html#a50a2a14b83ff471e7374fa7b731be19b">w_connect</a>(<span class="keyword">struct</span> addrinfo *ai,<span class="keywordtype">int</span> die) ;</div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="keywordtype">int</span> <a class="code" href="../../d6/de1/andns__net_8h.html#a4f93b369bf1954796a452384355d423d">serial_connect</a>(<span class="keyword">struct</span> addrinfo *ai,<span class="keywordtype">int</span> die);</div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keywordtype">int</span> <a class="code" href="../../d6/de1/andns__net_8h.html#aa577f4e612c57b8ee36d7ee144e4454e">host_connect</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *host,uint16_t port,<span class="keywordtype">int</span> <a class="code" href="../../d8/d91/krnl__route_8c.html#ac765329451135abec74c45e1897abf26">type</a>,<span class="keywordtype">int</span> die) ;</div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keywordtype">int</span> <a class="code" href="../../d6/de1/andns__net_8h.html#a1f054a28fc118379cc55dd455a5cc39a">ai_connect</a>(<span class="keyword">struct</span> addrinfo *ai,<span class="keywordtype">int</span> die,<span class="keywordtype">int</span> free_ai);</div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> ssize_t <a class="code" href="../../d6/de1/andns__net_8h.html#a817c42151172f843cbc695820c85641d">w_send</a>(<span class="keywordtype">int</span> sk,<span class="keyword">const</span> <span class="keywordtype">void</span> *buf,<span class="keywordtype">size_t</span> len,<span class="keywordtype">int</span> die) ;</div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> ssize_t <a class="code" href="../../d6/de1/andns__net_8h.html#a0f43c36471630ec8c3775908acf3c2f9">w_recv</a>(<span class="keywordtype">int</span> sk,<span class="keywordtype">void</span> *buf,<span class="keywordtype">size_t</span> len,<span class="keywordtype">int</span> die);</div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> ssize_t <a class="code" href="../../d6/de1/andns__net_8h.html#a47d34cf4c1f9bf2edfea1d4410dbe2d8">w_send_timeout</a>(<span class="keywordtype">int</span> s,<span class="keyword">const</span> <span class="keywordtype">void</span> *buf,<span class="keywordtype">size_t</span> len,<span class="keywordtype">int</span> die,<span class="keywordtype">int</span> timeout);</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> ssize_t <a class="code" href="../../d6/de1/andns__net_8h.html#a89a79c4f515c2c8ab1e8841dc24966c1">w_recv_timeout</a>(<span class="keywordtype">int</span> s,<span class="keywordtype">void</span> *buf,<span class="keywordtype">size_t</span> len,<span class="keywordtype">int</span> die,<span class="keywordtype">int</span> timeout);</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> ssize_t <a class="code" href="../../d6/de1/andns__net_8h.html#a7af4b0897c6b267464dce4bd247d6e82">ai_send_recv_close</a>(<span class="keyword">struct</span> addrinfo *ai,<span class="keywordtype">void</span> *buf,<span class="keywordtype">size_t</span> buflen,</div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordtype">void</span> *anbuf,<span class="keywordtype">size_t</span> anlen,<span class="keywordtype">int</span> die,<span class="keywordtype">int</span> free_ai,<span class="keywordtype">int</span> timeout);</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> ssize_t <a class="code" href="../../d6/de1/andns__net_8h.html#a283bd5c64ce0d9183389ad4693f502a8">hn_send_recv_close</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *host,uint16_t port,<span class="keywordtype">int</span> <a class="code" href="../../d8/d91/krnl__route_8c.html#ac765329451135abec74c45e1897abf26">type</a>,<span class="keywordtype">void</span> *buf,</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordtype">size_t</span> buflen,<span class="keywordtype">void</span> *anbuf,<span class="keywordtype">size_t</span> anlen,<span class="keywordtype">int</span> die,<span class="keywordtype">int</span> timeout);</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keywordtype">void</span> <a class="code" href="../../d6/de1/andns__net_8h.html#a6f55b680c3f8c1e2c346d3bfd6583030">char_print</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> len);</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#endif </span><span class="comment">/* ANDNS_NET_H */</span><span class="preprocessor"></span></div>
|
|
<div class="ttc" id="andns__net_8h_html_a9f0f84aac1723d4aff67f0c8049ba013"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a9f0f84aac1723d4aff67f0c8049ba013">w_socket</a></div><div class="ttdeci">int w_socket(int family, int type, int proto, int die)</div><div class="ttdef"><b>Definition:</b> andns_net.c:48</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_a50a2a14b83ff471e7374fa7b731be19b"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a50a2a14b83ff471e7374fa7b731be19b">w_connect</a></div><div class="ttdeci">int w_connect(struct addrinfo *ai, int die)</div><div class="ttdef"><b>Definition:</b> andns_net.c:61</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_ad2b329c25bb65c423d20f4b1e7691961"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#ad2b329c25bb65c423d20f4b1e7691961">idp_inet_ntop</a></div><div class="ttdeci">int idp_inet_ntop(int family, struct sockaddr *addr, char *buf, int buflen)</div><div class="ttdef"><b>Definition:</b> andns_net.c:24</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_aa577f4e612c57b8ee36d7ee144e4454e"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#aa577f4e612c57b8ee36d7ee144e4454e">host_connect</a></div><div class="ttdeci">int host_connect(const char *host, uint16_t port, int type, int die)</div><div class="ttdef"><b>Definition:</b> andns_net.c:104</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_a817c42151172f843cbc695820c85641d"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a817c42151172f843cbc695820c85641d">w_send</a></div><div class="ttdeci">ssize_t w_send(int sk, const void *buf, size_t len, int die)</div><div class="ttdef"><b>Definition:</b> andns_net.c:141</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_a4f93b369bf1954796a452384355d423d"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a4f93b369bf1954796a452384355d423d">serial_connect</a></div><div class="ttdeci">int serial_connect(struct addrinfo *ai, int die)</div><div class="ttdef"><b>Definition:</b> andns_net.c:74</div></div>
|
|
<div class="ttc" id="krnl__route_8c_html_ac765329451135abec74c45e1897abf26"><div class="ttname"><a href="../../d8/d91/krnl__route_8c.html#ac765329451135abec74c45e1897abf26">type</a></div><div class="ttdeci">int type</div><div class="ttdef"><b>Definition:</b> krnl_route.c:49</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_a0f43c36471630ec8c3775908acf3c2f9"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a0f43c36471630ec8c3775908acf3c2f9">w_recv</a></div><div class="ttdeci">ssize_t w_recv(int sk, void *buf, size_t len, int die)</div><div class="ttdef"><b>Definition:</b> andns_net.c:154</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_a283bd5c64ce0d9183389ad4693f502a8"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a283bd5c64ce0d9183389ad4693f502a8">hn_send_recv_close</a></div><div class="ttdeci">ssize_t hn_send_recv_close(const char *host, uint16_t port, int type, void *buf, size_t buflen, void *anbuf, size_t anlen, int die, int timeout)</div><div class="ttdef"><b>Definition:</b> andns_net.c:234</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_a1f054a28fc118379cc55dd455a5cc39a"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a1f054a28fc118379cc55dd455a5cc39a">ai_connect</a></div><div class="ttdeci">int ai_connect(struct addrinfo *ai, int die, int free_ai)</div><div class="ttdef"><b>Definition:</b> andns_net.c:129</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_a47d34cf4c1f9bf2edfea1d4410dbe2d8"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a47d34cf4c1f9bf2edfea1d4410dbe2d8">w_send_timeout</a></div><div class="ttdeci">ssize_t w_send_timeout(int s, const void *buf, size_t len, int die, int timeout)</div><div class="ttdef"><b>Definition:</b> andns_net.c:180</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_a89a79c4f515c2c8ab1e8841dc24966c1"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a89a79c4f515c2c8ab1e8841dc24966c1">w_recv_timeout</a></div><div class="ttdeci">ssize_t w_recv_timeout(int s, void *buf, size_t len, int die, int timeout)</div><div class="ttdef"><b>Definition:</b> andns_net.c:204</div></div>
|
|
<div class="ttc" id="if_8c_html_a4417150d9f858949bd9ea8794995ebcc"><div class="ttname"><a href="../../d7/de2/if_8c.html#a4417150d9f858949bd9ea8794995ebcc">family</a></div><div class="ttdeci">int family</div><div class="ttdef"><b>Definition:</b> if.c:34</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_a7af4b0897c6b267464dce4bd247d6e82"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a7af4b0897c6b267464dce4bd247d6e82">ai_send_recv_close</a></div><div class="ttdeci">ssize_t ai_send_recv_close(struct addrinfo *ai, void *buf, size_t buflen, void *anbuf, size_t anlen, int die, int free_ai, int timeout)</div><div class="ttdef"><b>Definition:</b> andns_net.c:259</div></div>
|
|
<div class="ttc" id="andns__net_8h_html_a6f55b680c3f8c1e2c346d3bfd6583030"><div class="ttname"><a href="../../d6/de1/andns__net_8h.html#a6f55b680c3f8c1e2c346d3bfd6583030">char_print</a></div><div class="ttdeci">void char_print(char *buf, int len)</div><div class="ttdef"><b>Definition:</b> andns_net.c:284</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="../../d6/de1/andns__net_8h.html">andns_net.h</a></li>
|
|
<li class="footer">Generated on Wed Feb 19 2014 16:28:39 for The Netsukuku Project by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|