<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>UbixOS V2: src/sys/lib/net.c File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.7 --> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="classes.html"><span>Data Structures</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul></div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul></div> <div class="nav"> <a class="el" href="dir_897b6a2d7bab147dd1db58381aad3984.html">src</a> » <a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a> » <a class="el" href="dir_d9dcf62a8e8b4cc91cbf2445d76a799b.html">lib</a></div> <h1>net.c File Reference</h1><code>#include <<a class="el" href="types_8h-source.html">ubixos/types.h</a>></code><br> <code>#include <net/sockets.h></code><br> <code>#include <<a class="el" href="string_8h-source.html">string.h</a>></code><br> <code>#include "<a class="el" href="kprintf_8h-source.html">lib/kprintf.h</a>"</code><br> <p> Include dependency graph for net.c:<p><center><img src="net_8c__incl.png" border="0" usemap="#src/sys/lib/net.c_map" alt=""></center> <map name="src/sys/lib/net.c_map"> <area href="types_8h.html" shape="rect" coords="343,107,463,133" alt=""> <area href="string_8h.html" shape="rect" coords="201,107,273,133" alt=""> <area href="kprintf_8h.html" shape="rect" coords="188,157,287,184" alt=""> <area href="__types_8h.html" shape="rect" coords="513,107,617,133" alt=""> </map> <p> <a href="net_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Typedefs</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="net_8c.html#8713edfd5a984843afe38b50d22c50a5">in_addr_t</a></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="net_8c.html#04bffce8d62dbb1e8e4e80a5fcdfed9a">bcopy</a> (const void *src, void *dest, int len)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="net_8c.html#dd5fdbef65776341fa73044b6d579279">bzero</a> (void *data, int n)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="net_8c.html#d5bd59ef607c94932ced92e726cc3a09">htonl</a> (<a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> n)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="net_8c.html#9eb6276a14294cbd10be630d1136220a">htons</a> (<a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> n)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="net_8c.html#a9e522808a681d651832da7d16ff1ebb">inet_aton</a> (char *cp, struct in_addr *addr) const</td></tr> </table> <hr><h2>Typedef Documentation</h2> <a class="anchor" name="8713edfd5a984843afe38b50d22c50a5"></a><!-- doxytag: member="net.c::in_addr_t" ref="8713edfd5a984843afe38b50d22c50a5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> <a class="el" href="net_8c.html#8713edfd5a984843afe38b50d22c50a5">in_addr_t</a> </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="net_8c-source.html#l00084">84</a> of file <a class="el" href="net_8c-source.html">net.c</a>. </div> </div><p> <hr><h2>Function Documentation</h2> <a class="anchor" name="04bffce8d62dbb1e8e4e80a5fcdfed9a"></a><!-- doxytag: member="net.c::bcopy" ref="04bffce8d62dbb1e8e4e80a5fcdfed9a" args="(const void *src, void *dest, int len)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void bcopy </td> <td>(</td> <td class="paramtype">const void * </td> <td class="paramname"> <em>src</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> <em>dest</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>len</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="net_8c-source.html#l00103">103</a> of file <a class="el" href="net_8c-source.html">net.c</a>. <p> References <a class="el" href="lib_2string_8h.html#e33b18edb618c656b9b795b9fce2316c">memcpy()</a>. <p> Here is the call graph for this function:<p><center><img src="net_8c_04bffce8d62dbb1e8e4e80a5fcdfed9a_cgraph.png" border="0" usemap="#net_8c_04bffce8d62dbb1e8e4e80a5fcdfed9a_cgraph_map" alt=""></center> <map name="net_8c_04bffce8d62dbb1e8e4e80a5fcdfed9a_cgraph_map"> <area href="lib_2string_8h.html#e33b18edb618c656b9b795b9fce2316c" shape="rect" coords="119,5,199,32" alt=""> </map> </div> </div><p> <a class="anchor" name="dd5fdbef65776341fa73044b6d579279"></a><!-- doxytag: member="net.c::bzero" ref="dd5fdbef65776341fa73044b6d579279" args="(void *data, int n)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void bzero </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>n</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="net_8c-source.html#l00107">107</a> of file <a class="el" href="net_8c-source.html">net.c</a>. <p> References <a class="el" href="memset_8c-source.html#l00037">memset()</a>. <p> Here is the call graph for this function:<p><center><img src="net_8c_dd5fdbef65776341fa73044b6d579279_cgraph.png" border="0" usemap="#net_8c_dd5fdbef65776341fa73044b6d579279_cgraph_map" alt=""></center> <map name="net_8c_dd5fdbef65776341fa73044b6d579279_cgraph_map"> <area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="115,5,192,32" alt=""> </map> </div> </div><p> <a class="anchor" name="d5bd59ef607c94932ced92e726cc3a09"></a><!-- doxytag: member="net.c::htonl" ref="d5bd59ef607c94932ced92e726cc3a09" args="(uInt32 n)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> htonl </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td> <td class="paramname"> <em>n</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="net_8c-source.html#l00088">88</a> of file <a class="el" href="net_8c-source.html">net.c</a>. <p> Referenced by <a class="el" href="net_8c-source.html#l00112">inet_aton()</a>. </div> </div><p> <a class="anchor" name="9eb6276a14294cbd10be630d1136220a"></a><!-- doxytag: member="net.c::htons" ref="9eb6276a14294cbd10be630d1136220a" args="(uInt32 n)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> htons </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td> <td class="paramname"> <em>n</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="net_8c-source.html#l00097">97</a> of file <a class="el" href="net_8c-source.html">net.c</a>. </div> </div><p> <a class="anchor" name="a9e522808a681d651832da7d16ff1ebb"></a><!-- doxytag: member="net.c::inet_aton" ref="a9e522808a681d651832da7d16ff1ebb" args="(char *cp, struct in_addr *addr) const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int inet_aton </td> <td>(</td> <td class="paramtype">char * </td> <td class="paramname"> <em>cp</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">struct in_addr * </td> <td class="paramname"> <em>addr</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="net_8c-source.html#l00112">112</a> of file <a class="el" href="net_8c-source.html">net.c</a>. <p> References <a class="el" href="net_8c-source.html#l00088">htonl()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="types_8h-source.html#l00036">NULL</a>, and <a class="el" href="strtol_8c-source.html#l00012">strtol()</a>. <p> Here is the call graph for this function:<p><center><img src="net_8c_a9e522808a681d651832da7d16ff1ebb_cgraph.png" border="0" usemap="#net_8c_a9e522808a681d651832da7d16ff1ebb_cgraph_map" alt=""></center> <map name="net_8c_a9e522808a681d651832da7d16ff1ebb_cgraph_map"> <area href="net_8c.html#d5bd59ef607c94932ced92e726cc3a09" shape="rect" coords="144,6,200,32" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="139,56,206,83" alt=""> <area href="string_8h.html#23a80e470a9dae66d16e7d25fbba122a" shape="rect" coords="144,107,200,134" alt=""> </map> </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:24:48 2006 for UbixOS V2 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address> </body> </html>